mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Support for Soundboard and VC effects
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user