Document NotFound exception raise in message deletion endpoints
This commit is contained in:
parent
a2b241446e
commit
a1d41f16d8
@ -224,7 +224,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
|||||||
Raises
|
Raises
|
||||||
------
|
------
|
||||||
InvalidArgument
|
InvalidArgument
|
||||||
If position is less than 0 or greater than the number of channels, or if
|
If position is less than 0 or greater than the number of channels, or if
|
||||||
the permission overwrite information is not in proper form.
|
the permission overwrite information is not in proper form.
|
||||||
Forbidden
|
Forbidden
|
||||||
You do not have permissions to edit the channel.
|
You do not have permissions to edit the channel.
|
||||||
@ -272,6 +272,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
|||||||
Forbidden
|
Forbidden
|
||||||
You do not have proper permissions to delete the messages or
|
You do not have proper permissions to delete the messages or
|
||||||
you're not using a bot account.
|
you're not using a bot account.
|
||||||
|
NotFound
|
||||||
|
If single delete, then the message was already deleted.
|
||||||
HTTPException
|
HTTPException
|
||||||
Deleting the messages failed.
|
Deleting the messages failed.
|
||||||
"""
|
"""
|
||||||
@ -948,14 +950,14 @@ class StoreChannel(discord.abc.GuildChannel, Hashable):
|
|||||||
The reason for editing this channel. Shows up on the audit log.
|
The reason for editing this channel. Shows up on the audit log.
|
||||||
overwrites: :class:`dict`
|
overwrites: :class:`dict`
|
||||||
A :class:`dict` of target (either a role or a member) to
|
A :class:`dict` of target (either a role or a member) to
|
||||||
:class:`PermissionOverwrite` to apply to the channel.
|
:class:`PermissionOverwrite` to apply to the channel.
|
||||||
|
|
||||||
.. versionadded:: 1.3
|
.. versionadded:: 1.3
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
------
|
------
|
||||||
InvalidArgument
|
InvalidArgument
|
||||||
If position is less than 0 or greater than the number of channels, or if
|
If position is less than 0 or greater than the number of channels, or if
|
||||||
the permission overwrite information is not in proper form.
|
the permission overwrite information is not in proper form.
|
||||||
Forbidden
|
Forbidden
|
||||||
You do not have permissions to edit the channel.
|
You do not have permissions to edit the channel.
|
||||||
|
@ -740,6 +740,8 @@ class Message:
|
|||||||
------
|
------
|
||||||
Forbidden
|
Forbidden
|
||||||
You do not have proper permissions to delete the message.
|
You do not have proper permissions to delete the message.
|
||||||
|
NotFound
|
||||||
|
The message was deleted already
|
||||||
HTTPException
|
HTTPException
|
||||||
Deleting the message failed.
|
Deleting the message failed.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user