From 9b94fe1ce0a6791d7edeea766213eb5737e69f16 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 11 Apr 2021 22:13:48 -0400 Subject: Remove superfluous unused payload parameter --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/channel.py') 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'' @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 -- cgit v1.2.3