aboutsummaryrefslogtreecommitdiff
path: root/discord/audit_logs.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-29 05:49:19 -0400
committerRapptz <[email protected]>2021-05-29 05:49:19 -0400
commitd78e5d979d143648bb3514b12ae4d025d758b900 (patch)
tree0dc48a7b92abf6a11e890fa8c0a79d3b55b44bfe /discord/audit_logs.py
parentTypehint AllowedMentions (diff)
downloaddiscord.py-d78e5d979d143648bb3514b12ae4d025d758b900.tar.xz
discord.py-d78e5d979d143648bb3514b12ae4d025d758b900.zip
Refactor and type hint invites
Diffstat (limited to 'discord/audit_logs.py')
-rw-r--r--discord/audit_logs.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/audit_logs.py b/discord/audit_logs.py
index d05c8a67..f6a93150 100644
--- a/discord/audit_logs.py
+++ b/discord/audit_logs.py
@@ -441,12 +441,10 @@ class AuditLogEntry(Hashable):
'max_uses': changeset.max_uses,
'code': changeset.code,
'temporary': changeset.temporary,
- 'channel': changeset.channel,
'uses': changeset.uses,
- 'guild': self.guild,
}
- obj = Invite(state=self._state, data=fake_payload)
+ obj = Invite(state=self._state, data=fake_payload, guild=self.guild, channel=changeset.channel)
try:
obj.inviter = changeset.inviter
except AttributeError: