Skip to content

Commit

Permalink
revert: undo documentation changes on bot methods, since change does …
Browse files Browse the repository at this point in the history
…not apply to bots yet
  • Loading branch information
shiftinv committed Nov 22, 2023
1 parent dc82a60 commit 5eecc67
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
7 changes: 1 addition & 6 deletions disnake/emoji.py
Expand Up @@ -70,8 +70,7 @@ class Emoji(_EmojiTag, AssetMixin):
user: Optional[:class:`User`]
The user that created this emoji. This can only be retrieved using
:meth:`Guild.fetch_emoji`/:meth:`Guild.fetch_emojis` while
having the :attr:`~Permissions.create_guild_expressions` or
:attr:`~Permissions.manage_guild_expressions` permission.
having the :attr:`~Permissions.manage_guild_expressions` permission.
"""

__slots__: Tuple[str, ...] = (
Expand Down Expand Up @@ -184,8 +183,6 @@ async def delete(self, *, reason: Optional[str] = None) -> None:
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
If this emoji was created by you, :attr:`~Permissions.create_guild_expressions`
permission is also sufficient.
Parameters
----------
Expand All @@ -210,8 +207,6 @@ async def edit(
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
If this emoji was created by you, :attr:`~Permissions.create_guild_expressions`
permission is also sufficient.
.. versionchanged:: 2.0
The newly updated emoji is returned.
Expand Down
10 changes: 3 additions & 7 deletions disnake/guild.py
Expand Up @@ -2387,7 +2387,7 @@ async def create_scheduled_event(
Creates a :class:`GuildScheduledEvent`.
You must have :attr:`~Permissions.create_events` permission to do this.
You must have :attr:`~Permissions.manage_events` permission to do this.
Based on the channel/entity type, there are different restrictions regarding
other parameter values, as shown in this table:
Expand Down Expand Up @@ -3209,7 +3209,7 @@ async def create_sticker(
Creates a :class:`Sticker` for the guild.
You must have :attr:`~Permissions.create_guild_expressions` permission to
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
.. versionadded:: 2.0
Expand Down Expand Up @@ -3261,8 +3261,6 @@ async def delete_sticker(self, sticker: Snowflake, *, reason: Optional[str] = No
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
If this sticker was created by you, :attr:`~Permissions.create_guild_expressions`
permission is also sufficient.
.. versionadded:: 2.0
Expand Down Expand Up @@ -3360,7 +3358,7 @@ async def create_custom_emoji(
Emojis with subscription roles (see ``roles`` below) are considered premium emoji,
and count towards a separate limit of 25 emojis.
You must have :attr:`~Permissions.create_guild_expressions` permission to
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
Parameters
Expand Down Expand Up @@ -3420,8 +3418,6 @@ async def delete_emoji(self, emoji: Snowflake, *, reason: Optional[str] = None)
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
If this emoji was created by you, :attr:`~Permissions.create_guild_expressions`
permission is also sufficient.
Parameters
----------
Expand Down
10 changes: 0 additions & 10 deletions disnake/guild_scheduled_event.py
Expand Up @@ -254,8 +254,6 @@ async def delete(self) -> None:
Deletes the guild scheduled event.
You must have :attr:`~Permissions.manage_events` permission to do this.
If this event was created by you, :attr:`~Permissions.create_events`
permission is also sufficient.
Raises
------
Expand Down Expand Up @@ -385,8 +383,6 @@ async def edit(
Edits the guild scheduled event.
You must have :attr:`~Permissions.manage_events` permission to do this.
If this event was created by you, :attr:`~Permissions.create_events`
permission is also sufficient.
.. versionchanged:: 2.6
Updates must follow requirements of :func:`Guild.create_scheduled_event`
Expand Down Expand Up @@ -541,8 +537,6 @@ async def start(self, *, reason: Optional[str] = None) -> GuildScheduledEvent:
Changes the event status to :attr:`~GuildScheduledEventStatus.active`.
You must have :attr:`~Permissions.manage_events` permission to do this.
If this event was created by you, :attr:`~Permissions.create_events`
permission is also sufficient.
.. versionadded:: 2.7
Expand Down Expand Up @@ -577,8 +571,6 @@ async def end(self, *, reason: Optional[str] = None) -> GuildScheduledEvent:
Changes the event status to :attr:`~GuildScheduledEventStatus.completed`.
You must have :attr:`~Permissions.manage_events` permission to do this.
If this event was created by you, :attr:`~Permissions.create_events`
permission is also sufficient.
.. versionadded:: 2.7
Expand Down Expand Up @@ -613,8 +605,6 @@ async def cancel(self, *, reason: Optional[str] = None) -> GuildScheduledEvent:
Changes the event status to :attr:`~GuildScheduledEventStatus.cancelled`.
You must have :attr:`~Permissions.manage_events` permission to do this.
If this event was created by you, :attr:`~Permissions.create_events`
permission is also sufficient.
.. versionadded:: 2.7
Expand Down
7 changes: 1 addition & 6 deletions disnake/sticker.py
Expand Up @@ -393,8 +393,7 @@ class GuildSticker(Sticker):
user: Optional[:class:`User`]
The user that created this sticker. This can only be retrieved using
:meth:`Guild.fetch_sticker`/:meth:`Guild.fetch_stickers` while
having the :attr:`~Permissions.create_guild_expressions` or
:attr:`~Permissions.manage_guild_expressions` permission.
having the :attr:`~Permissions.manage_guild_expressions` permission.
emoji: :class:`str`
The name of a unicode emoji that represents this sticker.
"""
Expand Down Expand Up @@ -436,8 +435,6 @@ async def edit(
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
If this sticker was created by you, :attr:`~Permissions.create_guild_expressions`
permission is also sufficient.
Parameters
----------
Expand Down Expand Up @@ -492,8 +489,6 @@ async def delete(self, *, reason: Optional[str] = None) -> None:
You must have :attr:`~Permissions.manage_guild_expressions` permission to
do this.
If this sticker was created by you, :attr:`~Permissions.create_guild_expressions`
permission is also sufficient.
Parameters
----------
Expand Down

0 comments on commit 5eecc67

Please sign in to comment.