-
Notifications
You must be signed in to change notification settings - Fork 0
/
discord.yaml
4850 lines (4850 loc) · 134 KB
/
discord.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: Discord HTTP API (Preview)
description: Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details.
termsOfService: https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service
license:
name: MIT
identifier: MIT
version: '10'
externalDocs:
url: https://discord.com/developers/docs
description: Discord Developer Documentation
servers:
- url: https://discord.com/api/v10
paths:
"/channels/{channel_id}/messages/{message_id}":
parameters:
- name: channel_id
in: path
schema:
"$ref": "#/components/schemas/SnowflakeType"
required: true
- name: message_id
in: path
schema:
"$ref": "#/components/schemas/SnowflakeType"
required: true
get:
operationId: get_message
responses:
'200':
description: 200 response for get_message
content:
application/json:
schema:
"$ref": "#/components/schemas/MessageResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
patch:
operationId: update_message
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/MessageEditRequestPartial"
required: true
responses:
'200':
description: 200 response for update_message
content:
application/json:
schema:
"$ref": "#/components/schemas/MessageResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
"/channels/{channel_id}/messages":
parameters:
- name: channel_id
in: path
schema:
"$ref": "#/components/schemas/SnowflakeType"
required: true
get:
operationId: list_messages
parameters:
- name: around
in: query
schema:
"$ref": "#/components/schemas/SnowflakeType"
- name: before
in: query
schema:
"$ref": "#/components/schemas/SnowflakeType"
- name: after
in: query
schema:
"$ref": "#/components/schemas/SnowflakeType"
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
responses:
'200':
description: 200 response for list_messages
content:
application/json:
schema:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/MessageResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
"/channels/{channel_id}/invites":
parameters:
- name: channel_id
in: path
schema:
"$ref": "#/components/schemas/SnowflakeType"
required: true
get:
operationId: list_channel_invites
responses:
'200':
description: 200 response for list_channel_invites
content:
application/json:
schema:
type:
- array
- 'null'
items:
anyOf:
- "$ref": "#/components/schemas/FriendInviteResponse"
- "$ref": "#/components/schemas/GroupDMInviteResponse"
- "$ref": "#/components/schemas/GuildInviteResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
"/channels/{channel_id}/threads":
parameters:
- name: channel_id
in: path
schema:
"$ref": "#/components/schemas/SnowflakeType"
required: true
post:
operationId: create_thread
requestBody:
content:
application/json:
schema:
anyOf:
- "$ref": "#/components/schemas/CreateForumThreadRequest"
- "$ref": "#/components/schemas/CreateTextThreadWithoutMessageRequest"
x-discord-union: oneOf
required: true
responses:
'201':
description: 201 response for create_thread
content:
application/json:
schema:
"$ref": "#/components/schemas/CreatedThreadResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
"/channels/{channel_id}":
parameters:
- name: channel_id
in: path
schema:
"$ref": "#/components/schemas/SnowflakeType"
required: true
get:
operationId: get_channel
responses:
'200':
description: 200 response for get_channel
content:
application/json:
schema:
oneOf:
- "$ref": "#/components/schemas/GuildChannelResponse"
- "$ref": "#/components/schemas/PrivateChannelResponse"
- "$ref": "#/components/schemas/PrivateGroupChannelResponse"
- "$ref": "#/components/schemas/ThreadResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
delete:
operationId: delete_channel
responses:
'200':
description: 200 response for delete_channel
content:
application/json:
schema:
oneOf:
- "$ref": "#/components/schemas/GuildChannelResponse"
- "$ref": "#/components/schemas/PrivateChannelResponse"
- "$ref": "#/components/schemas/PrivateGroupChannelResponse"
- "$ref": "#/components/schemas/ThreadResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
patch:
operationId: update_channel
requestBody:
content:
application/json:
schema:
anyOf:
- "$ref": "#/components/schemas/PrivateChannelRequestPartial"
- "$ref": "#/components/schemas/UpdateGuildChannelRequestPartial"
- "$ref": "#/components/schemas/UpdateThreadRequestPartial"
x-discord-union: oneOf
required: true
responses:
'200':
description: 200 response for update_channel
content:
application/json:
schema:
oneOf:
- "$ref": "#/components/schemas/GuildChannelResponse"
- "$ref": "#/components/schemas/PrivateChannelResponse"
- "$ref": "#/components/schemas/PrivateGroupChannelResponse"
- "$ref": "#/components/schemas/ThreadResponse"
4XX:
"$ref": "#/components/responses/ClientErrorResponse"
security:
- BotToken: []
components:
schemas:
ActionRow:
type: object
properties:
type:
type: integer
enum:
- 1
allOf:
- "$ref": "#/components/schemas/MessageComponentTypes"
format: int32
components:
type: array
items:
oneOf:
- "$ref": "#/components/schemas/Button"
- "$ref": "#/components/schemas/ChannelSelect"
- "$ref": "#/components/schemas/InputText"
- "$ref": "#/components/schemas/MentionableSelect"
- "$ref": "#/components/schemas/RoleSelect"
- "$ref": "#/components/schemas/StringSelect"
- "$ref": "#/components/schemas/UserSelect"
minItems: 1
maxItems: 5
required:
- type
- components
AllowedMentionTypes:
type: string
oneOf:
- title: USERS
description: Controls role mentions
const: users
- title: ROLES
description: Controls user mentions
const: roles
- title: EVERYONE
description: Controls @everyone and @here mentions
const: everyone
ApplicationCommandInteractionMetadataResponse:
type: object
properties:
id:
"$ref": "#/components/schemas/SnowflakeType"
type:
type: integer
enum:
- 2
allOf:
- "$ref": "#/components/schemas/InteractionTypes"
format: int32
user:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/UserResponse"
authorizing_integration_owners:
type: object
additionalProperties:
"$ref": "#/components/schemas/SnowflakeType"
original_response_message_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
required:
- id
- type
- authorizing_integration_owners
ApplicationIntegrationTypeConfigurationResponse:
type: object
ApplicationOAuth2InstallParamsResponse:
type: object
properties:
scopes:
type: array
items:
type: string
enum:
- applications.commands
- bot
allOf:
- "$ref": "#/components/schemas/OAuth2Scopes"
uniqueItems: true
permissions:
type: string
required:
- scopes
- permissions
ApplicationResponse:
type: object
properties:
id:
"$ref": "#/components/schemas/SnowflakeType"
name:
type: string
icon:
type:
- string
- 'null'
description:
type: string
type:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ApplicationTypes"
cover_image:
type:
- string
- 'null'
primary_sku_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
bot:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/UserResponse"
slug:
type:
- string
- 'null'
guild_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
rpc_origins:
type:
- array
- 'null'
items:
type:
- string
- 'null'
bot_public:
type:
- boolean
- 'null'
bot_require_code_grant:
type:
- boolean
- 'null'
terms_of_service_url:
type:
- string
- 'null'
format: uri
privacy_policy_url:
type:
- string
- 'null'
format: uri
custom_install_url:
type:
- string
- 'null'
format: uri
install_params:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ApplicationOAuth2InstallParamsResponse"
integration_types_config:
type:
- object
- 'null'
additionalProperties:
"$ref": "#/components/schemas/ApplicationIntegrationTypeConfigurationResponse"
verify_key:
type: string
flags:
type: integer
format: int32
max_participants:
type:
- integer
- 'null'
format: int32
tags:
type:
- array
- 'null'
items:
type: string
uniqueItems: true
required:
- id
- name
- description
- verify_key
- flags
ApplicationTypes:
type: integer
oneOf:
- title: GUILD_ROLE_SUBSCRIPTIONS
const: 4
format: int32
BaseCreateMessageCreateRequest:
type: object
properties:
content:
type:
- string
- 'null'
maxLength: 4000
embeds:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/RichEmbed"
maxItems: 10
allowed_mentions:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageAllowedMentionsRequest"
sticker_ids:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/SnowflakeType"
maxItems: 3
components:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/ActionRow"
maxItems: 5
flags:
type:
- integer
- 'null'
attachments:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/MessageAttachmentRequest"
maxItems: 10
BasicApplicationResponse:
type: object
properties:
id:
"$ref": "#/components/schemas/SnowflakeType"
name:
type: string
icon:
type:
- string
- 'null'
description:
type: string
type:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ApplicationTypes"
cover_image:
type:
- string
- 'null'
primary_sku_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
bot:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/UserResponse"
required:
- id
- name
- description
BasicMessageResponse:
type: object
properties:
type:
"$ref": "#/components/schemas/MessageType"
content:
type: string
mentions:
type: array
items:
"$ref": "#/components/schemas/UserResponse"
mention_roles:
type: array
items:
"$ref": "#/components/schemas/SnowflakeType"
uniqueItems: true
attachments:
type: array
items:
"$ref": "#/components/schemas/MessageAttachmentResponse"
embeds:
type: array
items:
"$ref": "#/components/schemas/MessageEmbedResponse"
timestamp:
type: string
format: date-time
edited_timestamp:
type:
- string
- 'null'
format: date-time
flags:
type: integer
format: int32
components:
type: array
items:
oneOf:
- "$ref": "#/components/schemas/MessageComponentActionRowResponse"
- "$ref": "#/components/schemas/MessageComponentButtonResponse"
- "$ref": "#/components/schemas/MessageComponentChannelSelectResponse"
- "$ref": "#/components/schemas/MessageComponentInputTextResponse"
- "$ref": "#/components/schemas/MessageComponentMentionableSelectResponse"
- "$ref": "#/components/schemas/MessageComponentRoleSelectResponse"
- "$ref": "#/components/schemas/MessageComponentStringSelectResponse"
- "$ref": "#/components/schemas/MessageComponentUserSelectResponse"
resolved:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ResolvedObjectsResponse"
stickers:
type:
- array
- 'null'
items:
oneOf:
- "$ref": "#/components/schemas/GuildStickerResponse"
- "$ref": "#/components/schemas/StandardStickerResponse"
sticker_items:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/MessageStickerItemResponse"
id:
"$ref": "#/components/schemas/SnowflakeType"
channel_id:
"$ref": "#/components/schemas/SnowflakeType"
author:
"$ref": "#/components/schemas/UserResponse"
pinned:
type: boolean
mention_everyone:
type: boolean
tts:
type: boolean
call:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageCallResponse"
activity:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageActivityResponse"
application:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/BasicApplicationResponse"
application_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
interaction:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageInteractionResponse"
nonce:
oneOf:
- type: integer
minimum: !!int -9223372036854776000
maximum: 9223372036854776000
format: int64
- type: string
maxLength: 25
format: nonce
- type: 'null'
webhook_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
message_reference:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageReferenceResponse"
thread:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ThreadResponse"
mention_channels:
type:
- array
- 'null'
items:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageMentionChannelResponse"
role_subscription_data:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/MessageRoleSubscriptionDataResponse"
purchase_notification:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/PurchaseNotificationResponse"
position:
type:
- integer
- 'null'
format: int32
interaction_metadata:
oneOf:
- "$ref": "#/components/schemas/ApplicationCommandInteractionMetadataResponse"
- "$ref": "#/components/schemas/MessageComponentInteractionMetadataResponse"
- "$ref": "#/components/schemas/ModalSubmitInteractionMetadataResponse"
- type: 'null'
required:
- type
- content
- mentions
- mention_roles
- attachments
- embeds
- timestamp
- flags
- components
- id
- channel_id
- author
- pinned
- mention_everyone
- tts
Button:
type: object
properties:
type:
type: integer
enum:
- 2
allOf:
- "$ref": "#/components/schemas/MessageComponentTypes"
format: int32
custom_id:
type:
- string
- 'null'
maxLength: 100
style:
"$ref": "#/components/schemas/ButtonStyleTypes"
label:
type:
- string
- 'null'
maxLength: 80
disabled:
type:
- boolean
- 'null'
emoji:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/Emoji"
url:
type:
- string
- 'null'
maxLength: 512
format: uri
sku_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
required:
- type
- style
ButtonStyleTypes:
type: integer
oneOf:
- title: PRIMARY
const: 1
- title: SECONDARY
const: 2
- title: SUCCESS
const: 3
- title: DANGER
const: 4
- title: LINK
const: 5
- title: PREMIUM
const: 6
format: int32
ByNWeekdayResponse:
type: object
properties:
"n":
type: integer
format: int32
day:
"$ref": "#/components/schemas/RecurrenceRuleWeekdays"
required:
- "n"
- day
ChannelPermissionOverwriteRequest:
type: object
properties:
id:
"$ref": "#/components/schemas/SnowflakeType"
type:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ChannelPermissionOverwrites"
allow:
type:
- integer
- 'null'
deny:
type:
- integer
- 'null'
required:
- id
ChannelPermissionOverwriteResponse:
type: object
properties:
id:
"$ref": "#/components/schemas/SnowflakeType"
type:
"$ref": "#/components/schemas/ChannelPermissionOverwrites"
allow:
type: string
deny:
type: string
required:
- id
- type
- allow
- deny
ChannelPermissionOverwrites:
type: integer
oneOf:
- title: ROLE
const: 0
- title: MEMBER
const: 1
format: int32
ChannelSelect:
type: object
properties:
type:
type: integer
enum:
- 8
allOf:
- "$ref": "#/components/schemas/MessageComponentTypes"
format: int32
custom_id:
type: string
maxLength: 100
placeholder:
type:
- string
- 'null'
maxLength: 150
min_values:
type:
- integer
- 'null'
minimum: 0
maximum: 25
max_values:
type:
- integer
- 'null'
minimum: 1
maximum: 25
disabled:
type:
- boolean
- 'null'
default_values:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/ChannelSelectDefaultValue"
maxItems: 25
channel_types:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/ChannelTypes"
uniqueItems: true
required:
- type
- custom_id
ChannelSelectDefaultValue:
type: object
properties:
type:
type: string
enum:
- channel
allOf:
- "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes"
id:
"$ref": "#/components/schemas/SnowflakeType"
required:
- type
- id
ChannelTypes:
type: integer
oneOf:
- title: DM
description: A direct message between users
const: 1
- title: GROUP_DM
description: A direct message between multiple users
const: 3
- title: GUILD_TEXT
description: A text channel within a server
const: 0
- title: GUILD_VOICE
description: A voice channel within a server
const: 2
- title: GUILD_CATEGORY
description: An organizational category that contains up to 50 channels
const: 4
- title: GUILD_ANNOUNCEMENT
description: A channel that users can follow and crosspost into their own server (formerly news channels)
const: 5
- title: ANNOUNCEMENT_THREAD
description: A temporary sub-channel within a GUILD_ANNOUNCEMENT channel
const: 10
- title: PUBLIC_THREAD
description: A temporary sub-channel within a GUILD_TEXT or GUILD_THREADS_ONLY channel type set
const: 11
- title: PRIVATE_THREAD
description: A temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission
const: 12
- title: GUILD_STAGE_VOICE
description: A voice channel for hosting events with an audience
const: 13
- title: GUILD_DIRECTORY
description: The channel in a hub containing the listed servers
const: 14
- title: GUILD_FORUM
description: Channel that can only contain threads
const: 15
- title: GUILD_MEDIA
description: Channel that can only contain media threads
const: 16
format: int32
CreateForumThreadRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
auto_archive_duration:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ThreadAutoArchiveDuration"
rate_limit_per_user:
type:
- integer
- 'null'
minimum: 0
maximum: 21600
applied_tags:
type:
- array
- 'null'
items:
"$ref": "#/components/schemas/SnowflakeType"
maxItems: 5
message:
"$ref": "#/components/schemas/BaseCreateMessageCreateRequest"
required:
- name
- message
CreateTextThreadWithoutMessageRequest:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
auto_archive_duration:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ThreadAutoArchiveDuration"
rate_limit_per_user:
type:
- integer
- 'null'
minimum: 0
maximum: 21600
type:
oneOf:
- type: 'null'
- type: integer
enum:
- 10
- 11
- 12
allOf:
- "$ref": "#/components/schemas/ChannelTypes"
format: int32
invitable:
type:
- boolean
- 'null'
required:
- name
CreatedThreadResponse:
type: object
properties:
id:
"$ref": "#/components/schemas/SnowflakeType"
type:
type: integer
enum:
- 10
- 11
- 12
allOf:
- "$ref": "#/components/schemas/ChannelTypes"
format: int32
last_message_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
flags:
type: integer
format: int32
last_pin_timestamp:
type:
- string
- 'null'
format: date-time
guild_id:
"$ref": "#/components/schemas/SnowflakeType"
name:
type: string
parent_id:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/SnowflakeType"
rate_limit_per_user:
type:
- integer
- 'null'
format: int32
bitrate:
type:
- integer
- 'null'
format: int32
user_limit:
type:
- integer
- 'null'
format: int32
rtc_region:
type:
- string
- 'null'
video_quality_mode:
oneOf:
- type: 'null'