mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-28 14:05:05 +00:00
Fallback to None for AuditLogAction.category
This commit is contained in:
parent
9bda89b0d6
commit
0b7d30bbe3
@ -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]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user