From 8f9213cf00cb933d4ba580cf2bff82ddc245a939 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Sat, 12 Oct 2024 18:15:43 -0500 Subject: [PATCH] fix: fix `GUILD_SOUNDBOARD_SOUNDS_UPDATE` event being parsed wrong --- discord_http/gateway/parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord_http/gateway/parser.py b/discord_http/gateway/parser.py index 2c3dfa5..405838a 100644 --- a/discord_http/gateway/parser.py +++ b/discord_http/gateway/parser.py @@ -247,8 +247,8 @@ def guild_soundboard_sound_delete(self, data: dict) -> tuple[PartialSoundboardSo ), ) - def guild_soundboard_sounds_update(self, data: list[dict]) -> tuple[PartialGuild, list[SoundboardSound]]: - _guild = self._get_guild_or_partial(int(data[0]["guild_id"])) + def guild_soundboard_sounds_update(self, data: dict) -> tuple[PartialGuild, list[SoundboardSound]]: + _guild = self._get_guild_or_partial(int(data["guild_id"])) return ( _guild, @@ -258,7 +258,7 @@ def guild_soundboard_sounds_update(self, data: list[dict]) -> tuple[PartialGuild guild=_guild, data=e ) - for e in data + for e in data["soundboard_sounds"] ] )