Browse Source

Document NotFound exception raise in message deletion endpoints

pull/2514/head
Rapptz 5 years ago
parent
commit
a1d41f16d8
  1. 2
      discord/channel.py
  2. 2
      discord/message.py

2
discord/channel.py

@ -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.
"""

2
discord/message.py

@ -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.
"""

Loading…
Cancel
Save