Browse Source

Fallback to None for AuditLogAction.category

v2.6.x
Rapptz 2 weeks ago
parent
commit
cb364ea113
  1. 2
      discord/enums.py

2
discord/enums.py

@ -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…
Cancel
Save