From acadcd4c7c5fd4a95ef33595b3f8c449af8274fd Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Wed, 28 Jun 2023 16:10:22 +0200 Subject: [PATCH 01/12] Add GuildVoiceChannelEffectSend --- discord/soundboard.go | 8 ++++++++ events/guild_voice_events.go | 5 +++++ gateway/gateway_event_type.go | 1 + gateway/gateway_events.go | 15 +++++++++++++++ gateway/gateway_messages.go | 5 +++++ handlers/all_handlers.go | 1 + handlers/voice_handlers.go | 7 +++++++ 7 files changed, 42 insertions(+) create mode 100644 discord/soundboard.go diff --git a/discord/soundboard.go b/discord/soundboard.go new file mode 100644 index 000000000..a18b3a09f --- /dev/null +++ b/discord/soundboard.go @@ -0,0 +1,8 @@ +package discord + +type SoundboardAnimationType int + +const ( + SoundboardAnimationTypePremium SoundboardAnimationType = iota + SoundboardAnimationTypeBasic +) diff --git a/events/guild_voice_events.go b/events/guild_voice_events.go index bc3a5cbbb..cc1aba9f8 100644 --- a/events/guild_voice_events.go +++ b/events/guild_voice_events.go @@ -5,6 +5,11 @@ import ( "github.com/disgoorg/disgo/gateway" ) +type GuildVoiceChannelEffectSend struct { + *GenericEvent + gateway.EventVoiceChannelEffectSend +} + // GenericGuildVoiceState is called upon receiving GuildVoiceJoin , GuildVoiceMove , GuildVoiceLeave type GenericGuildVoiceState struct { *GenericEvent diff --git a/gateway/gateway_event_type.go b/gateway/gateway_event_type.go index 88ebd49c4..33d0402a8 100644 --- a/gateway/gateway_event_type.go +++ b/gateway/gateway_event_type.go @@ -66,6 +66,7 @@ const ( EventTypeStageInstanceUpdate EventType = "STAGE_INSTANCE_UPDATE" EventTypeTypingStart EventType = "TYPING_START" EventTypeUserUpdate EventType = "USER_UPDATE" + EventTypeVoiceChannelEffectSend EventType = "VOICE_CHANNEL_EFFECT_SEND" EventTypeVoiceStateUpdate EventType = "VOICE_STATE_UPDATE" EventTypeVoiceServerUpdate EventType = "VOICE_SERVER_UPDATE" EventTypeWebhooksUpdate EventType = "WEBHOOKS_UPDATE" diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index 3793f8050..5011c2e6c 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -563,6 +563,21 @@ type EventUserUpdate struct { 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.SoundboardAnimationType `json:"animation_type,omitempty"` + AnimationID *int `json:"animation_id,omitempty"` + SoundID *snowflake.ID `json:"sound_id,omitempty"` + SoundOverridePath *string `json:"sound_override_path"` + SoundVolume *float64 `json:"sound_volume,omitempty"` +} + +func (EventVoiceChannelEffectSend) messageData() {} +func (EventVoiceChannelEffectSend) eventData() {} + type EventVoiceStateUpdate struct { discord.VoiceState Member discord.Member `json:"member"` diff --git a/gateway/gateway_messages.go b/gateway/gateway_messages.go index 686d6d06f..4866eaac0 100644 --- a/gateway/gateway_messages.go +++ b/gateway/gateway_messages.go @@ -394,6 +394,11 @@ func UnmarshalEventData(data []byte, eventType EventType) (EventData, error) { err = json.Unmarshal(data, &d) eventData = d + case EventTypeVoiceChannelEffectSend: + var d EventVoiceChannelEffectSend + err = json.Unmarshal(data, &d) + eventData = d + case EventTypeVoiceStateUpdate: var d EventVoiceStateUpdate err = json.Unmarshal(data, &d) diff --git a/handlers/all_handlers.go b/handlers/all_handlers.go index 5e1f2b5b0..26bc2131a 100644 --- a/handlers/all_handlers.go +++ b/handlers/all_handlers.go @@ -111,6 +111,7 @@ var allEventHandlers = []bot.GatewayEventHandler{ bot.NewGatewayEventHandler(gateway.EventTypeTypingStart, gatewayHandlerTypingStart), bot.NewGatewayEventHandler(gateway.EventTypeUserUpdate, gatewayHandlerUserUpdate), + bot.NewGatewayEventHandler(gateway.EventTypeVoiceChannelEffectSend, gatewayHandlerVoiceChannelEffectSend), bot.NewGatewayEventHandler(gateway.EventTypeVoiceStateUpdate, gatewayHandlerVoiceStateUpdate), bot.NewGatewayEventHandler(gateway.EventTypeVoiceServerUpdate, gatewayHandlerVoiceServerUpdate), diff --git a/handlers/voice_handlers.go b/handlers/voice_handlers.go index ea906ccc3..687f64f8c 100644 --- a/handlers/voice_handlers.go +++ b/handlers/voice_handlers.go @@ -6,6 +6,13 @@ import ( "github.com/disgoorg/disgo/gateway" ) +func gatewayHandlerVoiceChannelEffectSend(client bot.Client, sequenceNumber int, shardID int, event gateway.EventVoiceChannelEffectSend) { + client.EventManager().DispatchEvent(&events.GuildVoiceChannelEffectSend{ + GenericEvent: events.NewGenericEvent(client, sequenceNumber, shardID), + EventVoiceChannelEffectSend: event, + }) +} + func gatewayHandlerVoiceStateUpdate(client bot.Client, sequenceNumber int, shardID int, event gateway.EventVoiceStateUpdate) { member := event.Member From 1b5d51d7aeba4fa9a2ee6ef9d71604234f1dd682 Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Wed, 28 Jun 2023 17:51:18 +0200 Subject: [PATCH 02/12] add event to ListenerAdapter --- events/listener_adapter.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/events/listener_adapter.go b/events/listener_adapter.go index ca82951ef..50cf37f0b 100644 --- a/events/listener_adapter.go +++ b/events/listener_adapter.go @@ -104,11 +104,12 @@ type ListenerAdapter struct { OnGuildMessageReactionRemoveAll func(event *GuildMessageReactionRemoveAll) // Guild Voice Events - OnVoiceServerUpdate func(event *VoiceServerUpdate) - OnGuildVoiceStateUpdate func(event *GuildVoiceStateUpdate) - OnGuildVoiceJoin func(event *GuildVoiceJoin) - OnGuildVoiceMove func(event *GuildVoiceMove) - OnGuildVoiceLeave func(event *GuildVoiceLeave) + OnVoiceServerUpdate func(event *VoiceServerUpdate) + OnGuildVoiceChannelEffectSend func(event *GuildVoiceChannelEffectSend) + OnGuildVoiceStateUpdate func(event *GuildVoiceStateUpdate) + OnGuildVoiceJoin func(event *GuildVoiceJoin) + OnGuildVoiceMove func(event *GuildVoiceMove) + OnGuildVoiceLeave func(event *GuildVoiceLeave) // Guild StageInstance Events OnStageInstanceCreate func(event *StageInstanceCreate) @@ -449,6 +450,10 @@ func (l *ListenerAdapter) OnEvent(event bot.Event) { if listener := l.OnVoiceServerUpdate; listener != nil { listener(e) } + case *GuildVoiceChannelEffectSend: + if listener := l.OnGuildVoiceChannelEffectSend; listener != nil { + listener(e) + } case *GuildVoiceStateUpdate: if listener := l.OnGuildVoiceStateUpdate; listener != nil { listener(e) From abefae701f9d986838bfbcc260229488b526d31b Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Wed, 28 Jun 2023 19:00:41 +0200 Subject: [PATCH 03/12] add docs for GuildVoiceChannelEffectSend --- events/guild_voice_events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/events/guild_voice_events.go b/events/guild_voice_events.go index cc1aba9f8..b9543ee9a 100644 --- a/events/guild_voice_events.go +++ b/events/guild_voice_events.go @@ -5,6 +5,7 @@ import ( "github.com/disgoorg/disgo/gateway" ) +// GuildVoiceChannelEffectSend indicates that a discord.User sent an effect in a discord.GuildVoiceChannel type GuildVoiceChannelEffectSend struct { *GenericEvent gateway.EventVoiceChannelEffectSend From 21a233ab2884af026af1b9c5b1afa71ef3737ea0 Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Wed, 28 Jun 2023 20:15:18 +0200 Subject: [PATCH 04/12] rename SoundboardAnimationType to SoundboardEffectAnimationType --- discord/soundboard.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/soundboard.go b/discord/soundboard.go index a18b3a09f..37f769d8d 100644 --- a/discord/soundboard.go +++ b/discord/soundboard.go @@ -1,8 +1,8 @@ package discord -type SoundboardAnimationType int +type SoundboardEffectAnimationType int const ( - SoundboardAnimationTypePremium SoundboardAnimationType = iota - SoundboardAnimationTypeBasic + SoundboardEffectAnimationTypePremium SoundboardEffectAnimationType = iota + SoundboardEffectAnimationTypeBasic ) From c5d2a69f88c70edce6d73440f11136bef5b93600 Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Wed, 28 Jun 2023 20:22:47 +0200 Subject: [PATCH 05/12] bruh --- gateway/gateway_events.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index 5011c2e6c..efc784f28 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -564,15 +564,15 @@ 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.SoundboardAnimationType `json:"animation_type,omitempty"` - AnimationID *int `json:"animation_id,omitempty"` - SoundID *snowflake.ID `json:"sound_id,omitempty"` - SoundOverridePath *string `json:"sound_override_path"` - 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.SoundboardEffectAnimationType `json:"animation_type,omitempty"` + AnimationID *int `json:"animation_id,omitempty"` + SoundID *snowflake.ID `json:"sound_id,omitempty"` + SoundOverridePath *string `json:"sound_override_path"` + SoundVolume *float64 `json:"sound_volume,omitempty"` } func (EventVoiceChannelEffectSend) messageData() {} From c1c843d0a4bf9408fc212ae0d8eae39d7210f00c Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Thu, 16 May 2024 17:57:31 +0200 Subject: [PATCH 06/12] remove SoundOverridePath --- gateway/gateway_events.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index efc784f28..a5d2a7dbf 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -564,15 +564,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"` - SoundOverridePath *string `json:"sound_override_path"` - 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.SoundboardEffectAnimationType `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() {} From d2253dd7020b8e99a10b487346b7d0274fcbfdf1 Mon Sep 17 00:00:00 2001 From: sebm253 <42180891+sebm253@users.noreply.github.com> Date: Fri, 16 Aug 2024 18:41:58 +0200 Subject: [PATCH 07/12] add required intent + fix docs --- events/guild_voice_events.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/events/guild_voice_events.go b/events/guild_voice_events.go index b9543ee9a..3f8d4593f 100644 --- a/events/guild_voice_events.go +++ b/events/guild_voice_events.go @@ -5,37 +5,37 @@ import ( "github.com/disgoorg/disgo/gateway" ) -// GuildVoiceChannelEffectSend indicates that a discord.User sent an effect in a discord.GuildVoiceChannel +// GuildVoiceChannelEffectSend indicates that a discord.Member sent an effect in a discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates) type GuildVoiceChannelEffectSend struct { *GenericEvent gateway.EventVoiceChannelEffectSend } -// GenericGuildVoiceState is called upon receiving GuildVoiceJoin , GuildVoiceMove , GuildVoiceLeave +// GenericGuildVoiceState is called upon receiving GuildVoiceJoin, GuildVoiceMove and GuildVoiceLeave type GenericGuildVoiceState struct { *GenericEvent VoiceState discord.VoiceState Member discord.Member } -// GuildVoiceStateUpdate indicates that the discord.VoiceState of a discord.Member has updated(requires gateway.IntentsGuildVoiceStates) +// GuildVoiceStateUpdate indicates that the discord.VoiceState of a discord.Member has updated (requires gateway.IntentGuildVoiceStates) type GuildVoiceStateUpdate struct { *GenericGuildVoiceState OldVoiceState discord.VoiceState } -// GuildVoiceJoin indicates that a discord.Member joined a discord.Channel(requires gateway.IntentsGuildVoiceStates) +// GuildVoiceJoin indicates that a discord.Member joined a discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates) type GuildVoiceJoin struct { *GenericGuildVoiceState } -// GuildVoiceMove indicates that a discord.Member moved a discord.Channel(requires gateway.IntentsGuildVoiceStates) +// GuildVoiceMove indicates that a discord.Member was moved to a different discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates) type GuildVoiceMove struct { *GenericGuildVoiceState OldVoiceState discord.VoiceState } -// GuildVoiceLeave indicates that a discord.Member left a discord.Channel(requires gateway.IntentsGuildVoiceStates) +// GuildVoiceLeave indicates that a discord.Member left a discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates) type GuildVoiceLeave struct { *GenericGuildVoiceState OldVoiceState discord.VoiceState 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 08/12] 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 37f769d8d..c8df7d907 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 4823ff269..a69726973 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() {} From 7957f483ca35650cc3d051f94b3f2b69f33b2f38 Mon Sep 17 00:00:00 2001 From: sebm253 <42180891+sebm253@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:56:21 +0200 Subject: [PATCH 09/12] oh man --- gateway/gateway_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index a69726973..45d1cf636 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -610,7 +610,7 @@ type EventVoiceChannelEffectSend struct { 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"` + SoundID *snowflake.ID `json:"sound_id,string"` SoundVolume *float64 `json:"sound_volume,omitempty"` } From 5d5e919289e1444f5c4545a7af698c49b68a543e Mon Sep 17 00:00:00 2001 From: sebm253 <42180891+sebm253@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:38:47 +0200 Subject: [PATCH 10/12] Revert "oh man" This reverts commit 7957f483ca35650cc3d051f94b3f2b69f33b2f38. --- gateway/gateway_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index 45d1cf636..a69726973 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -610,7 +610,7 @@ type EventVoiceChannelEffectSend struct { Emoji *discord.Emoji `json:"emoji"` AnimationType *discord.VoiceChannelEffectAnimationType `json:"animation_type,omitempty"` AnimationID *int `json:"animation_id,omitempty"` - SoundID *snowflake.ID `json:"sound_id,string"` + SoundID *snowflake.ID `json:"sound_id,omitempty"` SoundVolume *float64 `json:"sound_volume,omitempty"` } From df95c4b6b6e7d6a8378542b80209eb19a580047d Mon Sep 17 00:00:00 2001 From: sebm253 <42180891+sebm253@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:44:28 +0200 Subject: [PATCH 11/12] change SoundID type to int64 with ,string --- gateway/gateway_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index a69726973..dc897e5da 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -610,7 +610,7 @@ type EventVoiceChannelEffectSend struct { 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"` + SoundID *int64 `json:"sound_id,string"` SoundVolume *float64 `json:"sound_volume,omitempty"` } From 843e2b952a0cd438da2b032c38c8da6da1589bce Mon Sep 17 00:00:00 2001 From: sebm253 <42180891+sebm253@users.noreply.github.com> Date: Sat, 24 Aug 2024 21:20:33 +0200 Subject: [PATCH 12/12] add event umarshaler --- gateway/gateway_events.go | 23 ++++++++++++++++++++++- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/gateway/gateway_events.go b/gateway/gateway_events.go index dc897e5da..8afcee379 100644 --- a/gateway/gateway_events.go +++ b/gateway/gateway_events.go @@ -610,10 +610,31 @@ type EventVoiceChannelEffectSend struct { Emoji *discord.Emoji `json:"emoji"` AnimationType *discord.VoiceChannelEffectAnimationType `json:"animation_type,omitempty"` AnimationID *int `json:"animation_id,omitempty"` - SoundID *int64 `json:"sound_id,string"` + SoundID *int64 `json:"-"` SoundVolume *float64 `json:"sound_volume,omitempty"` } +func (e *EventVoiceChannelEffectSend) UnmarshalJSON(data []byte) error { + type eventVoiceChannelEffectSend EventVoiceChannelEffectSend + var v struct { + SoundID *json.Number `json:"sound_id"` + eventVoiceChannelEffectSend + } + if err := json.Unmarshal(data, &v); err != nil { + return err + } + *e = EventVoiceChannelEffectSend(v.eventVoiceChannelEffectSend) + if v.SoundID == nil { + return nil + } + i, err := v.SoundID.Int64() + if err != nil { + return err + } + e.SoundID = &i + return nil +} + func (EventVoiceChannelEffectSend) messageData() {} func (EventVoiceChannelEffectSend) eventData() {} diff --git a/go.mod b/go.mod index b0052dcab..22e68fb73 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/disgoorg/disgo go 1.21 require ( - github.com/disgoorg/json v1.1.0 + github.com/disgoorg/json v1.2.0 github.com/disgoorg/snowflake/v2 v2.0.3 github.com/gorilla/websocket v1.5.3 github.com/sasha-s/go-csync v0.0.0-20240107134140-fcbab37b09ad diff --git a/go.sum b/go.sum index 9d343049a..4d38e69da 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/disgoorg/json v1.1.0 h1:7xigHvomlVA9PQw9bMGO02PHGJJPqvX5AnwlYg/Tnys= -github.com/disgoorg/json v1.1.0/go.mod h1:BHDwdde0rpQFDVsRLKhma6Y7fTbQKub/zdGO5O9NqqA= +github.com/disgoorg/json v1.2.0 h1:6e/j4BCfSHIvucG1cd7tJPAOp1RgnnMFSqkvZUtEd1Y= +github.com/disgoorg/json v1.2.0/go.mod h1:BHDwdde0rpQFDVsRLKhma6Y7fTbQKub/zdGO5O9NqqA= github.com/disgoorg/snowflake/v2 v2.0.3 h1:3B+PpFjr7j4ad7oeJu4RlQ+nYOTadsKapJIzgvSI2Ro= github.com/disgoorg/snowflake/v2 v2.0.3/go.mod h1:W6r7NUA7DwfZLwr00km6G4UnZ0zcoLBRufhkFWgAc4c= github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=