Support for Soundboard and VC effects

This commit is contained in:
Andrin
2024-10-09 23:05:17 +02:00
committed by GitHub
parent 59f877fcf0
commit a70217a719
19 changed files with 1185 additions and 26 deletions

View File

@ -871,34 +871,52 @@ class Intents(BaseFlags):
@alias_flag_value
def emojis(self):
""":class:`bool`: Alias of :attr:`.emojis_and_stickers`.
""":class:`bool`: Alias of :attr:`.expressions`.
.. versionchanged:: 2.0
Changed to an alias.
"""
return 1 << 3
@flag_value
@alias_flag_value
def emojis_and_stickers(self):
""":class:`bool`: Whether guild emoji and sticker related events are enabled.
""":class:`bool`: Alias of :attr:`.expressions`.
.. versionadded:: 2.0
.. versionchanged:: 2.5
Changed to an alias.
"""
return 1 << 3
@flag_value
def expressions(self):
""":class:`bool`: Whether guild emoji, sticker, and soundboard sound related events are enabled.
.. versionadded:: 2.5
This corresponds to the following events:
- :func:`on_guild_emojis_update`
- :func:`on_guild_stickers_update`
- :func:`on_soundboard_sound_create`
- :func:`on_soundboard_sound_update`
- :func:`on_soundboard_sound_delete`
This also corresponds to the following attributes and classes in terms of cache:
- :class:`Emoji`
- :class:`GuildSticker`
- :class:`SoundboardSound`
- :meth:`Client.get_emoji`
- :meth:`Client.get_sticker`
- :meth:`Client.get_soundboard_sound`
- :meth:`Client.emojis`
- :meth:`Client.stickers`
- :meth:`Client.soundboard_sounds`
- :attr:`Guild.emojis`
- :attr:`Guild.stickers`
- :attr:`Guild.soundboard_sounds`
"""
return 1 << 3