mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
Add MessageType.is_deletable to fix Messageable.purge failing
Fix #10319
This commit is contained in:
@@ -1732,6 +1732,15 @@ of :class:`enum.Enum`.
|
||||
|
||||
Checks if two messages are not equal.
|
||||
|
||||
.. method:: is_deletable()
|
||||
|
||||
Checks if the message type is deletable, as some system messages cannot be deleted.
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
:return: A boolean denoting if the message type is deletable.
|
||||
:rtype: :class:`bool`
|
||||
|
||||
.. attribute:: default
|
||||
|
||||
The default message type. This is the same as regular messages.
|
||||
|
||||
Reference in New Issue
Block a user