fix: Upgrade discord.js to v14 and fix compatibility issues #12

Merged
phil merged 1 commit from upgrade-discordjs14 into main 2026-02-20 19:23:10 +01:00
Owner

Summary

This PR fixes the Cannot read properties of undefined (reading 'Guilds') error by upgrading discord.js from v13 to v14.

Changes

  • discord.js upgrade: Updated from v13.17.1 to v14.18.0 in package.json- Event deprecation fix: Changed ready event to clientReady in preparation for v15
  • File encoding fix: Removed BOM character from index.js

Root Cause

The code was written for discord.js v14 syntax (GatewayIntentBits, PermissionsBitField, etc.) but v13 was installed. These APIs don't exist in v13.

Testing- Bot starts successfully without errors

  • No deprecation warnings- Slash commands register correctly
## Summary This PR fixes the `Cannot read properties of undefined (reading 'Guilds')` error by upgrading discord.js from v13 to v14. ## Changes - **discord.js upgrade**: Updated from v13.17.1 to v14.18.0 in `package.json`- **Event deprecation fix**: Changed `ready` event to `clientReady` in preparation for v15 - **File encoding fix**: Removed BOM character from `index.js` ## Root Cause The code was written for discord.js v14 syntax (`GatewayIntentBits`, `PermissionsBitField`, etc.) but v13 was installed. These APIs don't exist in v13. ## Testing- Bot starts successfully without errors - No deprecation warnings- Slash commands register correctly
phil self-assigned this 2026-02-20 19:18:03 +01:00
phil requested review from ElZeckos 2026-02-20 19:18:07 +01:00
phil merged commit eb1cacfe8e into main 2026-02-20 19:23:10 +01:00
phil deleted branch upgrade-discordjs14 2026-02-20 19:23:10 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ElZeckos/Temp-Voice-URC!12
No description provided.