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 e250206 commit e17491cCopy full SHA for e17491c
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