Нет необходимости выходить из спойлера

This commit is contained in:
JonnyBro 2022-01-28 00:38:47 +05:00
parent 57c8db3fd8
commit 5d6a74e637
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
const { MessageEmbed, Util, Client, Collection } = require("discord.js"), const { MessageEmbed, Client, Collection } = require("discord.js"),
{ GiveawaysManager } = require("discord-giveaways"), { GiveawaysManager } = require("discord-giveaways"),
{ SoundCloudPlugin } = require("@distube/soundcloud"), { SoundCloudPlugin } = require("@distube/soundcloud"),
{ SpotifyPlugin } = require("@distube/spotify"); { SpotifyPlugin } = require("@distube/spotify");
@ -93,7 +93,7 @@ class JaBa extends Client {
.on("searchResult", (message, result) => { .on("searchResult", (message, result) => {
let i = 0; let i = 0;
const embed = new MessageEmbed() 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") }) .setFooter({ text: this.translate("music/play:RESULTS_FOOTER") })
.setColor(this.config.embed.color); .setColor(this.config.embed.color);
message.channel.send({ embeds: [embed] }); message.channel.send({ embeds: [embed] });

View file

@ -78,8 +78,8 @@ class Poll extends Command {
const error = this.client.customEmojis.error.split(":")[1]; const error = this.client.customEmojis.error.split(":")[1];
const emojis = [ const emojis = [
this.client.emojis.cache.find((e) => e.name === success), 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 === error)
]; ];
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()