Skip to content

Commit

Permalink
Update src/types/utils/opcode.rs
Browse files Browse the repository at this point in the history
Co-authored-by: kozabrada123 <[email protected]>
  • Loading branch information
bitfl0wer and kozabrada123 authored Oct 26, 2024
1 parent 92dd964 commit 68eeb3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/utils/opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ impl TryFrom<u16> for CloseCode {
#[repr(u16)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash, Serialize, Deserialize)]
/// When the voice gateway server closes your connection, it tells you what happened throught a close code.
///
/// # Reference
/// See <https://docs.discord.sex/topics/opcodes-and-status-codes#voice-close-event-codes>
pub enum VoiceCloseCode {
UnknownOpcode = 4001,
FailedToDecodePayload = 4002,
Expand Down

0 comments on commit 68eeb3d

Please sign in to comment.