diff options
| author | Rapptz <[email protected]> | 2021-04-11 22:13:48 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-11 22:13:48 -0400 |
| commit | 9b94fe1ce0a6791d7edeea766213eb5737e69f16 (patch) | |
| tree | 99cb8819c2c4d548bcba8efba5766d095d427d22 | |
| parent | Create temporary DMChannels from message create events (diff) | |
| download | discord.py-9b94fe1ce0a6791d7edeea766213eb5737e69f16.tar.xz discord.py-9b94fe1ce0a6791d7edeea766213eb5737e69f16.zip | |
Remove superfluous unused payload parameter
| -rw-r--r-- | discord/channel.py | 2 | ||||
| -rw-r--r-- | discord/state.py | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/discord/state.py b/discord/state.py index d922d210..c75babb9 100644 --- a/discord/state.py +++ b/discord/state.py @@ -371,7 +371,7 @@ class ConnectionState: try: guild = self._get_guild(int(data['guild_id'])) except KeyError: - channel = DMChannel._from_message(self, channel_id, data) + channel = DMChannel._from_message(self, channel_id) guild = None else: channel = guild and guild.get_channel(channel_id) |