Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
|
|
@ -85,6 +85,8 @@ __all__ = (
|
|||
'OnboardingMode',
|
||||
'SeparatorSpacing',
|
||||
'MediaItemLoadingState',
|
||||
'CollectibleType',
|
||||
'NameplatePalette',
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -275,6 +277,17 @@ class MessageType(Enum):
|
|||
guild_incident_report_false_alarm = 39
|
||||
purchase_notification = 44
|
||||
poll_result = 46
|
||||
emoji_added = 63
|
||||
|
||||
def is_deletable(self) -> bool:
|
||||
return self not in {
|
||||
MessageType.recipient_add,
|
||||
MessageType.recipient_remove,
|
||||
MessageType.call,
|
||||
MessageType.channel_name_change,
|
||||
MessageType.channel_icon_change,
|
||||
MessageType.thread_starter_message,
|
||||
}
|
||||
|
||||
|
||||
class SpeakingState(Enum):
|
||||
|
|
@ -680,6 +693,11 @@ class ComponentType(Enum):
|
|||
separator = 14
|
||||
container = 17
|
||||
label = 18
|
||||
file_upload = 19
|
||||
# checkpoint = 20
|
||||
radio_group = 21
|
||||
checkbox_group = 22
|
||||
checkbox = 23
|
||||
|
||||
def __int__(self) -> int:
|
||||
return self.value
|
||||
|
|
@ -970,6 +988,24 @@ class MediaItemLoadingState(Enum):
|
|||
not_found = 3
|
||||
|
||||
|
||||
class CollectibleType(Enum):
|
||||
nameplate = 'nameplate'
|
||||
|
||||
|
||||
class NameplatePalette(Enum):
|
||||
crimson = 'crimson'
|
||||
berry = 'berry'
|
||||
sky = 'sky'
|
||||
teal = 'teal'
|
||||
forest = 'forest'
|
||||
bubble_gum = 'bubble_gum'
|
||||
violet = 'violet'
|
||||
cobalt = 'cobalt'
|
||||
clover = 'clover'
|
||||
lemon = 'lemon'
|
||||
white = 'white'
|
||||
|
||||
|
||||
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}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue