diff options
| author | Rapptz <[email protected]> | 2017-08-17 18:20:28 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-17 18:20:28 -0400 |
| commit | 3b3b8a51509dbb696d73a2ae3e0c65854bd3b8e0 (patch) | |
| tree | 2189077d9536e673d50970582d809570055cef30 | |
| parent | Add support for Guild.system_channel (diff) | |
| download | discord.py-3b3b8a51509dbb696d73a2ae3e0c65854bd3b8e0.tar.xz discord.py-3b3b8a51509dbb696d73a2ae3e0c65854bd3b8e0.zip | |
Remove incorrect extraneous usage of reason keyword argument.
Fixes #726
| -rw-r--r-- | discord/channel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py index 14b55fe9..946ed3bc 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -202,7 +202,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): if len(messages) == 1: message_id = messages[0].id - yield from self._state.http.delete_message(self.id, message_id, reason=reason) + yield from self._state.http.delete_message(self.id, message_id) return if len(messages) > 100: |