From ae06f00b08b53dde89a902eea420d22435ce0e65 Mon Sep 17 00:00:00 2001 From: sebm253 <42180891+sebm253@users.noreply.github.com> Date: Fri, 16 Aug 2024 18:46:20 +0200 Subject: [PATCH] SoundboardEffectAnimationType -> VoiceChannelEffectAnimationType --- discord/soundboard.go | 6 +++--- gateway/gateway_events.go | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/discord/soundboard.go b/discord/soundboard.go index 37f769d8..c8df7d90 100644 --- a/discord/soundboard.go +++ b/discord/soundboard.go @@ -1,8 +1,8 @@ package discord -type SoundboardEffectAnimationType int +type VoiceChannelEffectAnimationType int const ( - SoundboardEffectAnimationTypePremium SoundboardEffectAnimationType = iota - SoundboardEffectAnimationTypeBasic + VoiceChannelEffectAnimationTypePremium VoiceChannelEffectAnimationType = iota + VoiceChannelEffectAnimationTypeBasic ) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index 4823ff26..a6972697 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -604,14 +604,14 @@ func (EventUserUpdate) messageData() {} func (EventUserUpdate) eventData() {} type EventVoiceChannelEffectSend struct { - ChannelID snowflake.ID `json:"channel_id"` - GuildID snowflake.ID `json:"guild_id"` - UserID snowflake.ID `json:"user_id"` - Emoji *discord.Emoji `json:"emoji"` - AnimationType *discord.SoundboardEffectAnimationType `json:"animation_type,omitempty"` - AnimationID *int `json:"animation_id,omitempty"` - SoundID *snowflake.ID `json:"sound_id,omitempty"` - SoundVolume *float64 `json:"sound_volume,omitempty"` + ChannelID snowflake.ID `json:"channel_id"` + GuildID snowflake.ID `json:"guild_id"` + UserID snowflake.ID `json:"user_id"` + Emoji *discord.Emoji `json:"emoji"` + AnimationType *discord.VoiceChannelEffectAnimationType `json:"animation_type,omitempty"` + AnimationID *int `json:"animation_id,omitempty"` + SoundID *snowflake.ID `json:"sound_id,omitempty"` + SoundVolume *float64 `json:"sound_volume,omitempty"` } func (EventVoiceChannelEffectSend) messageData() {}