Add support for new RPC Activity fields

This commit is contained in:
Soheab authored and GitHub committed 2025-07-30 17:03:15 -04:00
1 parent 348c7d7873
commit 6e7fc133d1
4 files changed
+65 -1

No files matched your search

+7
View File
@@ -78,6 +78,7 @@ __all__ = (
'VoiceChannelEffectAnimationType',
'SubscriptionStatus',
'MessageReferenceType',
'StatusDisplayType',
)
@@ -914,6 +915,12 @@ class SubscriptionStatus(Enum):
inactive = 2
class StatusDisplayType(Enum):
name = 0 # pyright: ignore[reportAssignmentType]
state = 1
details = 2
def create_unknown_value(cls: Type[E], val: Any) -> E:
value_cls = cls._enum_value_cls_ # type: ignore # This is narrowed below
name = f'unknown_{val}'