3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Make sure we always fetch full/fresh target message when applying reaction roles

This commit is contained in:
Dragory 2021-08-20 21:49:59 +03:00
parent d0b5dba98e
commit 4ce0fbc3dd

View file

@ -25,7 +25,7 @@ export async function applyReactionRoleReactionsToMessage(
let targetMessage;
try {
targetMessage = channel.messages.fetch(messageId);
targetMessage = channel.messages.fetch(messageId, { force: true });
} catch (e) {
if (isDiscordAPIError(e)) {
if (e.code === 10008) {