Make sure we always fetch full/fresh target message when applying reaction roles
This commit is contained in:
parent
41f8e190dd
commit
fe3de150a3
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export async function applyReactionRoleReactionsToMessage(
|
||||||
|
|
||||||
let targetMessage;
|
let targetMessage;
|
||||||
try {
|
try {
|
||||||
targetMessage = channel.messages.fetch(messageId);
|
targetMessage = channel.messages.fetch(messageId, { force: true });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (isDiscordAPIError(e)) {
|
if (isDiscordAPIError(e)) {
|
||||||
if (e.code === 10008) {
|
if (e.code === 10008) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue