Skip to content

Conversation

valzargaming
Copy link
Member

This pull request introduces a new method for updating the client's voice state in a guild and updates the opcode used when updating presence. These changes improve the Discord client functionality and ensure compatibility with updated Discord API requirements.

Voice State Management:

  • Added a new public method updateVoiceState to the Discord class, allowing the client to join, move, or disconnect from a voice channel, as well as set mute and deaf status. This method accepts both object and string IDs for guilds and channels.

Presence Update Compatibility:

  • Changed the opcode used in updatePresence from OP_PRESENCE_UPDATE to OP_UPDATE_PRESENCE to align with updated Discord API conventions.

@valzargaming
Copy link
Member Author

No need to further test this as usage won't be relevant until #1300 is merged.

@valzargaming valzargaming merged commit 4a6d0c6 into master Aug 7, 2025
2 checks passed
@valzargaming valzargaming deleted the discord-update-voice-state branch August 7, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant