Remove superfluous unused payload parameter
This commit is contained in:
parent
7bdaa793f6
commit
9b94fe1ce0
@ -1225,7 +1225,7 @@ class DMChannel(discord.abc.Messageable, Hashable):
|
|||||||
return f'<DMChannel id={self.id} recipient={self.recipient!r}>'
|
return f'<DMChannel id={self.id} recipient={self.recipient!r}>'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _from_message(cls, state, channel_id, payload):
|
def _from_message(cls, state, channel_id):
|
||||||
# The MESSAGE_CREATE payload no longer gives bots
|
# The MESSAGE_CREATE payload no longer gives bots
|
||||||
# an appropriate CHANNEL_CREATE.
|
# an appropriate CHANNEL_CREATE.
|
||||||
# However, it has enough data for us to pretend since
|
# However, it has enough data for us to pretend since
|
||||||
|
@ -371,7 +371,7 @@ class ConnectionState:
|
|||||||
try:
|
try:
|
||||||
guild = self._get_guild(int(data['guild_id']))
|
guild = self._get_guild(int(data['guild_id']))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
channel = DMChannel._from_message(self, channel_id, data)
|
channel = DMChannel._from_message(self, channel_id)
|
||||||
guild = None
|
guild = None
|
||||||
else:
|
else:
|
||||||
channel = guild and guild.get_channel(channel_id)
|
channel = guild and guild.get_channel(channel_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user