Fix missing await

This commit is contained in:
Dragory 2021-09-04 20:49:25 +03:00
parent e5fd91eac9
commit 2190523866
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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) {