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"] ] )