Remove reason keyword argument from message deletion.

Apparently this is unsupported.

Affected functions include:

* abc.Messageable.send
* Message.delete
* TextChannel.delete_messages
* TextChannel.purge
This commit is contained in:
Rapptz
2017-08-15 22:37:39 -04:00
parent adf99eb2cd
commit 63231ef033
3 changed files with 13 additions and 25 deletions

View File

@ -475,7 +475,7 @@ class Message:
return '{0.author.name} started a call \N{EM DASH} Join the call.'.format(self)
@asyncio.coroutine
def delete(self, *, reason=None):
def delete(self):
"""|coro|
Deletes the message.
@ -484,11 +484,6 @@ class Message:
delete other people's messages, you need the :attr:`~Permissions.manage_messages`
permission.
Parameters
------------
reason: Optional[str]
The reason for deleting this message. Shows up on the audit log.
Raises
------
Forbidden
@ -496,7 +491,7 @@ class Message:
HTTPException
Deleting the message failed.
"""
yield from self._state.http.delete_message(self.channel.id, self.id, reason=reason)
yield from self._state.http.delete_message(self.channel.id, self.id)
@asyncio.coroutine
def edit(self, **fields):