mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 22:24:58 +05:00
Нет необходимости выходить из спойлера
This commit is contained in:
parent
57c8db3fd8
commit
5d6a74e637
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
const { MessageEmbed, Util, Client, Collection } = require("discord.js"),
|
||||
const { MessageEmbed, Client, Collection } = require("discord.js"),
|
||||
{ GiveawaysManager } = require("discord-giveaways"),
|
||||
{ SoundCloudPlugin } = require("@distube/soundcloud"),
|
||||
{ SpotifyPlugin } = require("@distube/spotify");
|
||||
|
@ -93,7 +93,7 @@ class JaBa extends Client {
|
|||
.on("searchResult", (message, result) => {
|
||||
let i = 0;
|
||||
const embed = new MessageEmbed()
|
||||
.setDescription(Util.escapeSpoiler(result.map(song => `**${++i} -** ${song.name}`).join("\n")))
|
||||
.setDescription(result.map(song => `**${++i} -** ${song.name}`).join("\n"))
|
||||
.setFooter({ text: this.translate("music/play:RESULTS_FOOTER") })
|
||||
.setColor(this.config.embed.color);
|
||||
message.channel.send({ embeds: [embed] });
|
||||
|
|
|
@ -78,8 +78,8 @@ class Poll extends Command {
|
|||
const error = this.client.customEmojis.error.split(":")[1];
|
||||
|
||||
const emojis = [
|
||||
this.client.emojis.cache.find((e) => e.name === success),
|
||||
this.client.emojis.cache.find((e) => e.name === error)
|
||||
this.client.emojis.cache.find(e => e.name === success),
|
||||
this.client.emojis.cache.find(e => e.name === error)
|
||||
];
|
||||
|
||||
const embed = new Discord.MessageEmbed()
|
||||
|
|
Loading…
Reference in a new issue