Document NotFound exception raise in message deletion endpoints

This commit is contained in:
Rapptz 2020-01-18 21:37:06 -05:00
parent a2b241446e
commit a1d41f16d8
2 changed files with 7 additions and 3 deletions

View File

@ -272,6 +272,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
Forbidden
You do not have proper permissions to delete the messages or
you're not using a bot account.
NotFound
If single delete, then the message was already deleted.
HTTPException
Deleting the messages failed.
"""

View File

@ -740,6 +740,8 @@ class Message:
------
Forbidden
You do not have proper permissions to delete the message.
NotFound
The message was deleted already
HTTPException
Deleting the message failed.
"""