Skip to content

Commit

Permalink
refactor: rename intent to expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Aug 19, 2024
1 parent 3d4b02e commit f570110
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion changelog/1068.feature.1.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Rename :attr:`Intents.emojis_and_stickers` to :attr:`Intents.guild_expressions`. An alias is provided for backwards compatibility.
Rename :attr:`Intents.emojis_and_stickers` to :attr:`Intents.expressions`. An alias is provided for backwards compatibility.
8 changes: 4 additions & 4 deletions disnake/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ def __init__(
dm_typing: bool = ...,
emojis: bool = ...,
emojis_and_stickers: bool = ...,
guild_expressions: bool = ...,
expressions: bool = ...,
guild_messages: bool = ...,
guild_reactions: bool = ...,
guild_scheduled_events: bool = ...,
Expand Down Expand Up @@ -1186,7 +1186,7 @@ def bans(self):
return 1 << 2

@flag_value
def guild_expressions(self):
def expressions(self):
""":class:`bool`: Whether events related to guild emojis, stickers, and
soundboard sounds are enabled.
Expand Down Expand Up @@ -1217,7 +1217,7 @@ def guild_expressions(self):

@alias_flag_value
def emojis_and_stickers(self):
""":class:`bool`: Alias of :attr:`.guild_expressions`.
""":class:`bool`: Alias of :attr:`.expressions`.
.. versionadded:: 2.0
Expand All @@ -1228,7 +1228,7 @@ def emojis_and_stickers(self):

@alias_flag_value
def emojis(self):
""":class:`bool`: Alias of :attr:`.guild_expressions`.
""":class:`bool`: Alias of :attr:`.expressions`.
.. versionchanged:: 2.0
Changed to an alias.
Expand Down
6 changes: 3 additions & 3 deletions docs/api/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ Emojis

Called when a :class:`Guild` adds or removes :class:`Emoji`.

This requires :attr:`Intents.guild_expressions` to be enabled.
This requires :attr:`Intents.expressions` to be enabled.

:param guild: The guild who got their emojis updated.
:type guild: :class:`Guild`
Expand Down Expand Up @@ -985,7 +985,7 @@ Soundboard

Called when a :class:`Guild` updates its soundboard sounds.

This requires :attr:`Intents.guild_expressions` to be enabled.
This requires :attr:`Intents.expressions` to be enabled.

.. versionadded:: 2.10

Expand Down Expand Up @@ -1032,7 +1032,7 @@ Stickers

Called when a :class:`Guild` updates its stickers.

This requires :attr:`Intents.guild_expressions` to be enabled.
This requires :attr:`Intents.expressions` to be enabled.

.. versionadded:: 2.0

Expand Down

0 comments on commit f570110

Please sign in to comment.