Fix missing await
This commit is contained in:
parent
e5fd91eac9
commit
2190523866
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export async function applyReactionRoleReactionsToMessage(
|
|||
|
||||
let targetMessage;
|
||||
try {
|
||||
targetMessage = channel.messages.fetch(messageId, { force: true });
|
||||
targetMessage = await channel.messages.fetch(messageId, { force: true });
|
||||
} catch (e) {
|
||||
if (isDiscordAPIError(e)) {
|
||||
if (e.code === 10008) {
|
||||
|
|
Loading…
Add table
Reference in a new issue