From f950019c75c400676ab252d1647a5c0bfa290b45 Mon Sep 17 00:00:00 2001 From: Steve C Date: Thu, 12 Jan 2023 23:38:52 -0500 Subject: [PATCH] Fix 2 incorrect types for audit log converters --- discord/audit_logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/audit_logs.py b/discord/audit_logs.py index 772801764..0c797a0c8 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -749,7 +749,7 @@ class AuditLogEntry(Hashable): def _convert_target_channel(self, target_id: int) -> Union[abc.GuildChannel, Object]: return self.guild.get_channel(target_id) or Object(id=target_id) - def _convert_target_user(self, target_id: int) -> Union[Member, User, Object, None]: + def _convert_target_user(self, target_id: int) -> Union[Member, User, Object]: return self._get_member(target_id) or Object(id=target_id, type=Member) def _convert_target_role(self, target_id: int) -> Union[Role, Object]: @@ -779,7 +779,7 @@ class AuditLogEntry(Hashable): def _convert_target_emoji(self, target_id: int) -> Union[Emoji, Object]: return self._state.get_emoji(target_id) or Object(id=target_id, type=Emoji) - def _convert_target_message(self, target_id: int) -> Union[Member, User, Object, None]: + def _convert_target_message(self, target_id: int) -> Union[Member, User, Object]: return self._get_member(target_id) or Object(id=target_id, type=Member) def _convert_target_stage_instance(self, target_id: int) -> Union[StageInstance, Object]: