mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fallback to None for AuditLogAction.category
This commit is contained in:
1 parent
60fd97bfda
commit
cb364ea113
1 file changed
+1
-1
+1
-1
@@ -488,7 +488,7 @@ class AuditLogAction(Enum):
|
||||
AuditLogAction.home_settings_update: AuditLogActionCategory.update,
|
||||
}
|
||||
# fmt: on
|
||||
return lookup[self]
|
||||
return lookup.get(self, None)
|
||||
|
||||
@property
|
||||
def target_type(self) -> Optional[str]:
|
||||
|
||||
Reference in new issue
Block a user