Skip to content

Commit

Permalink
fix(docs): update event name
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Aug 19, 2024
1 parent d365768 commit 3d4b02e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog/1068.feature.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Implement soundboard features.
- Managing sounds:
- Get soundboard sounds using :attr:`Guild.soundboard_sounds`, :attr:`Client.get_soundboard_sound`, or fetch them using :meth:`Guild.fetch_soundboard_sound`, :meth:`Guild.fetch_soundboard_sounds`, or :meth:`Client.fetch_default_soundboard_sounds`
- New sounds can be created with :meth:`Guild.create_soundboard_sound`
- Handle guild soundboard sound updates using the :attr:`~Event.soundboard_sounds_update` event
- Handle guild soundboard sound updates using the :attr:`~Event.guild_soundboard_sounds_update` event
- Send sounds using :meth:`VoiceChannel.send_soundboard_sound`
- New attributes: :attr:`Guild.soundboard_limit`, :attr:`VoiceChannelEffect.sound`, :attr:`Client.soundboard_sounds`
- New audit log actions: :attr:`AuditLogAction.soundboard_sound_create`, :attr:`~AuditLogAction.soundboard_sound_update`, :attr:`~AuditLogAction.soundboard_sound_delete`
1 change: 0 additions & 1 deletion disnake/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ def _from_data(self, guild: GuildPayload) -> None:
self.stickers: Tuple[GuildSticker, ...] = tuple(
state.store_sticker(self, d) for d in guild.get("stickers", [])
)
# TODO: rest methods
self.soundboard_sounds: Tuple[GuildSoundboardSound, ...] = tuple(
state.store_soundboard_sound(self, d) for d in guild.get("soundboard_sounds", [])
)
Expand Down
2 changes: 1 addition & 1 deletion docs/api/soundboard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ GuildSoundboardSound
Events
------

- :func:`on_soundboard_sounds_update(guild, before, after) <disnake.on_soundboard_sounds_update>`
- :func:`on_guild_soundboard_sounds_update(guild, before, after) <disnake.on_guild_soundboard_sounds_update>`

0 comments on commit 3d4b02e

Please sign in to comment.