aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-08-17 18:20:28 -0400
committerRapptz <[email protected]>2017-08-17 18:20:28 -0400
commit3b3b8a51509dbb696d73a2ae3e0c65854bd3b8e0 (patch)
tree2189077d9536e673d50970582d809570055cef30
parentAdd support for Guild.system_channel (diff)
downloaddiscord.py-3b3b8a51509dbb696d73a2ae3e0c65854bd3b8e0.tar.xz
discord.py-3b3b8a51509dbb696d73a2ae3e0c65854bd3b8e0.zip
Remove incorrect extraneous usage of reason keyword argument.
Fixes #726
-rw-r--r--discord/channel.py2
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: