add silent feature back to delete() function

latest commit removed the silent kwarg from the delete function so I'm adding it back
This commit is contained in:
Moksej 2021-04-17 16:46:06 +02:00 committed by GitHub
parent a453266cd4
commit cdfd918604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,7 +369,6 @@ class MessageReference:
"""
self = cls(message_id=message.id, channel_id=message.channel.id, guild_id=getattr(message.guild, 'id', None), fail_if_not_exists=fail_if_not_exists)
self._state = message._state
return self
@classmethod
def from_message(cls, message):
@ -963,7 +962,7 @@ class Message(Hashable):
if self.type is MessageType.guild_discovery_grace_period_final_warning:
return 'This server has failed Discovery activity requirements for 3 weeks in a row. If this server fails for 1 more week, it will be removed from Discovery.'
async def delete(self, *, delay=None):
async def delete(self, *, delay=None, silent=False):
"""|coro|
Deletes the message.