Add default impl for voicegatewayerror

This commit is contained in:
kozabrada123 2023-10-14 10:25:28 +02:00
parent e4f0a3840a
commit 1639d4e00f
1 changed files with 2 additions and 1 deletions

View File

@ -91,9 +91,10 @@ custom_error! {
/// Similar to [GatewayError]. /// Similar to [GatewayError].
/// ///
/// See https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice; /// See https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice;
#[derive(Clone, PartialEq, Eq)] #[derive(Clone, Default, PartialEq, Eq)]
pub VoiceGatewayError pub VoiceGatewayError
// Errors we receive // Errors we receive
#[default]
UnknownOpcode = "You sent an invalid opcode", UnknownOpcode = "You sent an invalid opcode",
FailedToDecodePayload = "You sent an invalid payload in your identifying to the (Webrtc) Gateway", FailedToDecodePayload = "You sent an invalid payload in your identifying to the (Webrtc) Gateway",
NotAuthenticated = "You sent a payload before identifying with the (Webrtc) Gateway", NotAuthenticated = "You sent a payload before identifying with the (Webrtc) Gateway",