mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
Fix embeds
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = class AnimeScoreCommand extends Command {
|
||||
.setTitle(anime.title.english || anime.title.romaji)
|
||||
.setDescription(`_${anime.startDate.year}, ${formats[anime.format]}_`)
|
||||
.setFooter(anime.id.toString());
|
||||
await msg.reply('**You have 15 seconds, what score do you think this anime has?**', { embed });
|
||||
await msg.reply('**You have 15 seconds, what score do you think this anime has?**', { embeds: [embed] });
|
||||
const filter = res => {
|
||||
if (res.author.id !== msg.author.id) return false;
|
||||
return Boolean(Number.parseInt(res.content, 10));
|
||||
|
||||
@@ -47,7 +47,7 @@ module.exports = class ReportRespondCommand extends Command {
|
||||
.setTimestamp()
|
||||
.setColor(typesColors[type]);
|
||||
try {
|
||||
await user.send('Your report has been evaluated with the following message:', { embed });
|
||||
await user.send('Your report has been evaluated with the following message:', { embeds: [embed] });
|
||||
return msg.say(`${displaytypes[type]} sent to ${user.tag}.`);
|
||||
} catch {
|
||||
return msg.say(`Could not send ${displaytypes[type]} to ${user.tag}. Probably blocked me.`);
|
||||
|
||||
Reference in New Issue
Block a user