forked from Supositware/Haha-Yes
make async
This commit is contained in:
parent
2d8c062dce
commit
2339a79877
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class MessageReactionAddListener extends Listener {
|
|||
}
|
||||
}
|
||||
|
||||
function sendEmbed(name, emote, client) {
|
||||
async function sendEmbed(name, emote, client) {
|
||||
let channel;
|
||||
if (name == 'starboard') {
|
||||
channel = client.channels.get(starboardChannel['starboard']);
|
||||
|
@ -78,7 +78,7 @@ class MessageReactionAddListener extends Listener {
|
|||
} else {
|
||||
Embed.setDescription(messageContent);
|
||||
return channel.send({files: messageAttachments, embed: Embed})
|
||||
.catch(() => channel.send(messageAttachments, { embed: Embed}));
|
||||
.catch(async () => channel.send(messageAttachments, { embed: Embed}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue