Browse Source

Fix Sticker Objects type being StageInstance

pull/8324/head
z03h 3 years ago
committed by GitHub
parent
commit
afcec46dfd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/audit_logs.py

2
discord/audit_logs.py

@ -716,7 +716,7 @@ class AuditLogEntry(Hashable):
return self.guild.get_stage_instance(target_id) or Object(id=target_id, type=StageInstance)
def _convert_target_sticker(self, target_id: int) -> Union[GuildSticker, Object]:
return self._state.get_sticker(target_id) or Object(id=target_id, type=StageInstance)
return self._state.get_sticker(target_id) or Object(id=target_id, type=GuildSticker)
def _convert_target_thread(self, target_id: int) -> Union[Thread, Object]:
return self.guild.get_thread(target_id) or Object(id=target_id, type=Thread)

Loading…
Cancel
Save