@@ -210,6 +210,8 @@ def try_value(cls, value):
210
210
211
211
212
212
class ChannelType (Enum ):
213
+ """Channel type"""
214
+
213
215
text = 0
214
216
private = 1
215
217
voice = 2
@@ -228,6 +230,8 @@ def __str__(self):
228
230
229
231
230
232
class MessageType (Enum ):
233
+ """Message type"""
234
+
231
235
default = 0
232
236
recipient_add = 1
233
237
recipient_remove = 2
@@ -256,6 +260,8 @@ class MessageType(Enum):
256
260
257
261
258
262
class VoiceRegion (Enum ):
263
+ """Voice region"""
264
+
259
265
us_west = "us-west"
260
266
us_east = "us-east"
261
267
us_south = "us-south"
@@ -285,6 +291,8 @@ def __str__(self):
285
291
286
292
287
293
class SpeakingState (Enum ):
294
+ """Speaking state"""
295
+
288
296
none = 0
289
297
voice = 1
290
298
soundshare = 2
@@ -298,6 +306,8 @@ def __int__(self):
298
306
299
307
300
308
class VerificationLevel (Enum , comparable = True ):
309
+ """Verification level"""
310
+
301
311
none = 0
302
312
low = 1
303
313
medium = 2
@@ -309,6 +319,8 @@ def __str__(self):
309
319
310
320
311
321
class ContentFilter (Enum , comparable = True ):
322
+ """Content Filter"""
323
+
312
324
disabled = 0
313
325
no_role = 1
314
326
all_members = 2
@@ -318,6 +330,8 @@ def __str__(self):
318
330
319
331
320
332
class Status (Enum ):
333
+ """Status"""
334
+
321
335
online = "online"
322
336
offline = "offline"
323
337
idle = "idle"
@@ -331,6 +345,8 @@ def __str__(self):
331
345
332
346
333
347
class DefaultAvatar (Enum ):
348
+ """Default avatar"""
349
+
334
350
blurple = 0
335
351
grey = 1
336
352
gray = 1
@@ -343,17 +359,23 @@ def __str__(self):
343
359
344
360
345
361
class NotificationLevel (Enum , comparable = True ):
362
+ """Notification level"""
363
+
346
364
all_messages = 0
347
365
only_mentions = 1
348
366
349
367
350
368
class AuditLogActionCategory (Enum ):
369
+ """Audit log action category"""
370
+
351
371
create = 1
352
372
delete = 2
353
373
update = 3
354
374
355
375
356
376
class AuditLogAction (Enum ):
377
+ """Audit log action"""
378
+
357
379
guild_update = 1
358
380
channel_create = 10
359
381
channel_update = 11
@@ -505,6 +527,8 @@ def target_type(self) -> Optional[str]:
505
527
506
528
507
529
class UserFlags (Enum ):
530
+ """User flags"""
531
+
508
532
staff = 1
509
533
partner = 2
510
534
hypesquad = 4
@@ -529,6 +553,8 @@ class UserFlags(Enum):
529
553
530
554
531
555
class ActivityType (Enum ):
556
+ """Activity type"""
557
+
532
558
unknown = - 1
533
559
playing = 0
534
560
streaming = 1
@@ -542,17 +568,23 @@ def __int__(self):
542
568
543
569
544
570
class TeamMembershipState (Enum ):
571
+ """Team membership state"""
572
+
545
573
invited = 1
546
574
accepted = 2
547
575
548
576
549
577
class WebhookType (Enum ):
578
+ """Webhook Type"""
579
+
550
580
incoming = 1
551
581
channel_follower = 2
552
582
application = 3
553
583
554
584
555
585
class ExpireBehaviour (Enum ):
586
+ """Expire Behaviour"""
587
+
556
588
remove_role = 0
557
589
kick = 1
558
590
@@ -561,11 +593,15 @@ class ExpireBehaviour(Enum):
561
593
562
594
563
595
class StickerType (Enum ):
596
+ """Sticker type"""
597
+
564
598
standard = 1
565
599
guild = 2
566
600
567
601
568
602
class StickerFormatType (Enum ):
603
+ """Sticker format Type"""
604
+
569
605
png = 1
570
606
apng = 2
571
607
lottie = 3
@@ -581,12 +617,16 @@ def file_extension(self) -> str:
581
617
582
618
583
619
class InviteTarget (Enum ):
620
+ """Invite target"""
621
+
584
622
unknown = 0
585
623
stream = 1
586
624
embedded_application = 2
587
625
588
626
589
627
class InteractionType (Enum ):
628
+ """Interaction type"""
629
+
590
630
ping = 1
591
631
application_command = 2
592
632
component = 3
@@ -595,6 +635,8 @@ class InteractionType(Enum):
595
635
596
636
597
637
class InteractionResponseType (Enum ):
638
+ """Interaction response type"""
639
+
598
640
pong = 1
599
641
# ack = 2 (deprecated)
600
642
# channel_message = 3 (deprecated)
@@ -607,6 +649,8 @@ class InteractionResponseType(Enum):
607
649
608
650
609
651
class VideoQualityMode (Enum ):
652
+ """Video quality mode"""
653
+
610
654
auto = 1
611
655
full = 2
612
656
@@ -615,6 +659,8 @@ def __int__(self):
615
659
616
660
617
661
class ComponentType (Enum ):
662
+ """Component type"""
663
+
618
664
action_row = 1
619
665
button = 2
620
666
select = 3
@@ -625,6 +671,8 @@ def __int__(self):
625
671
626
672
627
673
class ButtonStyle (Enum ):
674
+ """Button style"""
675
+
628
676
primary = 1
629
677
secondary = 2
630
678
success = 3
@@ -644,6 +692,8 @@ def __int__(self):
644
692
645
693
646
694
class InputTextStyle (Enum ):
695
+ """Input text style"""
696
+
647
697
short = 1
648
698
singleline = 1
649
699
paragraph = 2
@@ -652,26 +702,34 @@ class InputTextStyle(Enum):
652
702
653
703
654
704
class ApplicationType (Enum ):
705
+ """Application type"""
706
+
655
707
game = 1
656
708
music = 2
657
709
ticketed_events = 3
658
710
guild_role_subscriptions = 4
659
711
660
712
661
713
class StagePrivacyLevel (Enum ):
714
+ """Stage privacy level"""
715
+
662
716
# public = 1 (deprecated)
663
717
closed = 2
664
718
guild_only = 2
665
719
666
720
667
721
class NSFWLevel (Enum , comparable = True ):
722
+ """NSFW level"""
723
+
668
724
default = 0
669
725
explicit = 1
670
726
safe = 2
671
727
age_restricted = 3
672
728
673
729
674
730
class SlashCommandOptionType (Enum ):
731
+ """Slash command option type"""
732
+
675
733
sub_command = 1
676
734
sub_command_group = 2
677
735
string = 3
@@ -743,6 +801,8 @@ def from_datatype(cls, datatype):
743
801
744
802
745
803
class EmbeddedActivity (Enum ):
804
+ """Embedded activity"""
805
+
746
806
awkword = 879863881349087252
747
807
betrayal = 773336526917861400
748
808
checkers_in_the_park = 832013003968348200
@@ -777,6 +837,8 @@ class EmbeddedActivity(Enum):
777
837
778
838
779
839
class ScheduledEventStatus (Enum ):
840
+ """Scheduled event status"""
841
+
780
842
scheduled = 1
781
843
active = 2
782
844
completed = 3
@@ -788,36 +850,48 @@ def __int__(self):
788
850
789
851
790
852
class ScheduledEventPrivacyLevel (Enum ):
853
+ """Scheduled event privacy level"""
854
+
791
855
guild_only = 2
792
856
793
857
def __int__ (self ):
794
858
return self .value
795
859
796
860
797
861
class ScheduledEventLocationType (Enum ):
862
+ """Scheduled event location type"""
863
+
798
864
stage_instance = 1
799
865
voice = 2
800
866
external = 3
801
867
802
868
803
869
class AutoModTriggerType (Enum ):
870
+ """Automod trigger type"""
871
+
804
872
keyword = 1
805
873
harmful_link = 2
806
874
spam = 3
807
875
keyword_preset = 4
808
876
809
877
810
878
class AutoModEventType (Enum ):
879
+ """Automod event type"""
880
+
811
881
message_send = 1
812
882
813
883
814
884
class AutoModActionType (Enum ):
885
+ """Automod action type"""
886
+
815
887
block_message = 1
816
888
send_alert_message = 2
817
889
timeout = 3
818
890
819
891
820
892
class AutoModKeywordPresetType (Enum ):
893
+ """Automod keyword preset type"""
894
+
821
895
profanity = 1
822
896
sexual_content = 2
823
897
slurs = 3
0 commit comments