Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/events/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ export const readyEvent = createEvent(
console.log(`🔄 Starting guide sync to channel ${config.guides.channelId}...`);
await syncGuidesToChannel(client, config.guides.channelId);
} catch (error) {
console.error('❌ Failed to sync guides:', error);
if (error && typeof error === 'object' && 'code' in error) {
const discordError = error as { code: number; message?: string };
if (discordError.code === 50001) {
console.warn(
'⚠️ Bot does not have access to the guides channel. Please check bot permissions and channel ID.'
);
} else {
console.error('❌ Failed to sync guides:', error);
}
} else {
console.error('❌ Failed to sync guides:', error);
}
}
}
}
Expand Down