mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-18 04:00:39 +00:00
Fallback to None for AuditLogAction.category
This commit is contained in:
@@ -488,7 +488,7 @@ class AuditLogAction(Enum):
|
|||||||
AuditLogAction.home_settings_update: AuditLogActionCategory.update,
|
AuditLogAction.home_settings_update: AuditLogActionCategory.update,
|
||||||
}
|
}
|
||||||
# fmt: on
|
# fmt: on
|
||||||
return lookup[self]
|
return lookup.get(self, None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target_type(self) -> Optional[str]:
|
def target_type(self) -> Optional[str]:
|
||||||
|
Reference in New Issue
Block a user