We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 828ed18 commit e67068aCopy full SHA for e67068a
1 file changed
src/events/ready.ts
@@ -30,7 +30,18 @@ export const readyEvent = createEvent(
30
console.log(`🔄 Starting guide sync to channel ${config.guides.channelId}...`);
31
await syncGuidesToChannel(client, config.guides.channelId);
32
} catch (error) {
33
- console.error('❌ Failed to sync guides:', error);
+ if (error && typeof error === 'object' && 'code' in error) {
34
+ const discordError = error as { code: number; message?: string };
35
+ if (discordError.code === 50001) {
36
+ console.warn(
37
+ '⚠️ Bot does not have access to the guides channel. Please check bot permissions and channel ID.'
38
+ );
39
+ } else {
40
+ console.error('❌ Failed to sync guides:', error);
41
+ }
42
43
44
45
}
46
47
0 commit comments