aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-11 22:13:48 -0400
committerRapptz <[email protected]>2021-04-11 22:13:48 -0400
commit9b94fe1ce0a6791d7edeea766213eb5737e69f16 (patch)
tree99cb8819c2c4d548bcba8efba5766d095d427d22 /discord/channel.py
parentCreate temporary DMChannels from message create events (diff)
downloaddiscord.py-9b94fe1ce0a6791d7edeea766213eb5737e69f16.tar.xz
discord.py-9b94fe1ce0a6791d7edeea766213eb5737e69f16.zip
Remove superfluous unused payload parameter
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 7c99c0cb..2f637e2d 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -1225,7 +1225,7 @@ class DMChannel(discord.abc.Messageable, Hashable):
return f'<DMChannel id={self.id} recipient={self.recipient!r}>'
@classmethod
- def _from_message(cls, state, channel_id, payload):
+ def _from_message(cls, state, channel_id):
# The MESSAGE_CREATE payload no longer gives bots
# an appropriate CHANNEL_CREATE.
# However, it has enough data for us to pretend since