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 009d7b4 commit 92dd964
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 @@ -142,6 +142,9 @@ impl TryFrom<u8> for Opcode {
#[repr(u16)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Hash, Serialize, Deserialize)]
/// When the 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#gateway-close-event-codes>
pub enum CloseCode {
UnknownError = 4000,
UnknownOpcode = 4001,
Expand Down

0 comments on commit 92dd964

Please sign in to comment.