3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 01:25:02 +00:00

fix reactionroles

This commit is contained in:
metal 2021-09-04 17:51:30 +00:00 committed by GitHub
parent 8d84e8cb14
commit cea681aaf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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