We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b8dc2 commit eae7a91Copy full SHA for eae7a91
src/modules/autorole.ts
@@ -11,7 +11,7 @@ export async function autoroleModule({ client }: Bot) {
11
}
12
13
for (const ar of autorole) {
14
- const msg = await channel.messages.fetch(ar.msgID);
+ const msg = await channel.messages.fetch(ar.msgID).catch(() => null);
15
if (!msg) {
16
console.error(`Role message does not exist for ${ar.msgID}`);
17
0 commit comments