dfx 0.57.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/Cache/driver.d.ts +2 -2
  2. package/Cache/driver.d.ts.map +1 -1
  3. package/DiscordConfig.d.ts +3 -3
  4. package/DiscordConfig.d.ts.map +1 -1
  5. package/DiscordConfig.js +2 -2
  6. package/DiscordConfig.js.map +1 -1
  7. package/DiscordGateway/DiscordWS.d.ts +4 -4
  8. package/DiscordGateway/DiscordWS.d.ts.map +1 -1
  9. package/DiscordGateway/DiscordWS.js +3 -3
  10. package/DiscordGateway/DiscordWS.js.map +1 -1
  11. package/DiscordGateway/Shard/invalidSession.d.ts +2 -2
  12. package/DiscordGateway/Shard/invalidSession.d.ts.map +1 -1
  13. package/DiscordGateway/Shard/utils.d.ts +1 -1
  14. package/DiscordGateway/Shard/utils.d.ts.map +1 -1
  15. package/DiscordGateway/Shard.d.ts +2 -2
  16. package/DiscordGateway/WS.d.ts +0 -1
  17. package/DiscordGateway/WS.d.ts.map +1 -1
  18. package/DiscordGateway.d.ts +4 -4
  19. package/DiscordGateway.d.ts.map +1 -1
  20. package/Helpers/flags.d.ts +2 -2
  21. package/Helpers/flags.d.ts.map +1 -1
  22. package/Helpers/flags.js.map +1 -1
  23. package/Helpers/interactions.d.ts +4 -4
  24. package/Helpers/interactions.d.ts.map +1 -1
  25. package/Helpers/interactions.js +2 -2
  26. package/Helpers/interactions.js.map +1 -1
  27. package/Helpers/members.d.ts +2 -2
  28. package/Helpers/members.d.ts.map +1 -1
  29. package/Helpers/members.js.map +1 -1
  30. package/Helpers/permissions.d.ts +4 -4
  31. package/Helpers/permissions.d.ts.map +1 -1
  32. package/Helpers/permissions.js.map +1 -1
  33. package/Helpers/ui.d.ts +5 -4
  34. package/Helpers/ui.d.ts.map +1 -1
  35. package/Helpers/ui.js.map +1 -1
  36. package/Interactions/context.d.ts +5 -6
  37. package/Interactions/context.d.ts.map +1 -1
  38. package/Interactions/context.js.map +1 -1
  39. package/Interactions/definitions.d.ts +8 -8
  40. package/Interactions/definitions.d.ts.map +1 -1
  41. package/Interactions/handlers.d.ts +2 -2
  42. package/Interactions/handlers.d.ts.map +1 -1
  43. package/Interactions/handlers.js +1 -1
  44. package/Interactions/handlers.js.map +1 -1
  45. package/Interactions/utils.d.ts +2 -2
  46. package/Interactions/utils.d.ts.map +1 -1
  47. package/Interactions/webhook.d.ts +10 -10
  48. package/Interactions/webhook.d.ts.map +1 -1
  49. package/Interactions/webhook.js +9 -9
  50. package/Interactions/webhook.js.map +1 -1
  51. package/Log.d.ts +2 -2
  52. package/Log.d.ts.map +1 -1
  53. package/Log.js.map +1 -1
  54. package/RateLimit/memory.d.ts +1 -1
  55. package/RateLimit/memory.d.ts.map +1 -1
  56. package/RateLimit/utils.d.ts +1 -1
  57. package/RateLimit/utils.d.ts.map +1 -1
  58. package/RateLimit/utils.js.map +1 -1
  59. package/RateLimit.d.ts +1 -1
  60. package/RateLimit.d.ts.map +1 -1
  61. package/mjs/DiscordConfig.mjs +2 -2
  62. package/mjs/DiscordConfig.mjs.map +1 -1
  63. package/mjs/DiscordGateway/DiscordWS.mjs +3 -3
  64. package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
  65. package/mjs/Helpers/flags.mjs.map +1 -1
  66. package/mjs/Helpers/interactions.mjs +2 -2
  67. package/mjs/Helpers/interactions.mjs.map +1 -1
  68. package/mjs/Helpers/members.mjs.map +1 -1
  69. package/mjs/Helpers/permissions.mjs.map +1 -1
  70. package/mjs/Helpers/ui.mjs.map +1 -1
  71. package/mjs/Interactions/context.mjs.map +1 -1
  72. package/mjs/Interactions/handlers.mjs +1 -1
  73. package/mjs/Interactions/handlers.mjs.map +1 -1
  74. package/mjs/Interactions/webhook.mjs +9 -9
  75. package/mjs/Interactions/webhook.mjs.map +1 -1
  76. package/mjs/Log.mjs.map +1 -1
  77. package/mjs/RateLimit/utils.mjs.map +1 -1
  78. package/mjs/types.mjs.map +1 -1
  79. package/mjs/version.mjs +1 -1
  80. package/package.json +6 -6
  81. package/src/Cache/driver.ts +2 -2
  82. package/src/DiscordConfig.ts +4 -4
  83. package/src/DiscordGateway/DiscordWS.ts +4 -4
  84. package/src/DiscordGateway/Shard/invalidSession.ts +2 -2
  85. package/src/DiscordGateway/Shard/utils.ts +1 -1
  86. package/src/DiscordGateway.ts +4 -4
  87. package/src/Helpers/flags.ts +6 -6
  88. package/src/Helpers/interactions.ts +10 -10
  89. package/src/Helpers/members.ts +6 -5
  90. package/src/Helpers/permissions.ts +5 -5
  91. package/src/Helpers/ui.ts +5 -7
  92. package/src/Interactions/context.ts +4 -5
  93. package/src/Interactions/definitions.ts +5 -5
  94. package/src/Interactions/handlers.ts +3 -3
  95. package/src/Interactions/utils.ts +2 -2
  96. package/src/Interactions/webhook.ts +19 -17
  97. package/src/Log.ts +2 -2
  98. package/src/RateLimit/memory.ts +1 -1
  99. package/src/RateLimit/utils.ts +2 -1
  100. package/src/RateLimit.ts +1 -1
  101. package/src/types.ts +218 -202
  102. package/src/version.ts +1 -1
  103. package/types.d.ts +202 -202
  104. package/types.d.ts.map +1 -1
  105. package/types.js.map +1 -1
  106. package/version.d.ts +1 -1
  107. package/version.js +1 -1
package/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { RestResponse } from "dfx/DiscordREST/types"
1
+ import type { RestResponse } from "dfx/DiscordREST/types"
2
+
2
3
  export interface ActionMetadatum {
3
4
  /** SEND_ALERT_MESSAGE */
4
5
  readonly channel_id: Snowflake
@@ -11,7 +12,7 @@ export interface ActionRow {
11
12
  /** component type */
12
13
  readonly type: ComponentType
13
14
  /** a list of child components */
14
- readonly components: Component[]
15
+ readonly components: Array<Component>
15
16
  }
16
17
  export const enum ActionType {
17
18
  /** blocks a member's message and prevents it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked. */
@@ -51,7 +52,7 @@ export interface Activity {
51
52
  /** Activity flags ORd together, describes what the payload includes */
52
53
  readonly flags?: number
53
54
  /** Custom buttons shown in the Rich Presence (max 2) */
54
- readonly buttons?: ActivityButton[]
55
+ readonly buttons?: Array<ActivityButton>
55
56
  }
56
57
  export interface ActivityAsset {
57
58
  /** See Activity Asset Image */
@@ -92,7 +93,7 @@ export interface ActivityParty {
92
93
  /** ID of the party */
93
94
  readonly id?: string
94
95
  /** Used to show the party's current and maximum size */
95
- readonly size?: number[]
96
+ readonly size?: Array<number>
96
97
  }
97
98
  export interface ActivitySecret {
98
99
  /** Secret for joining a party */
@@ -122,7 +123,7 @@ export interface AddGuildMemberParams {
122
123
  /** value to set user's nickname to */
123
124
  readonly nick: string
124
125
  /** array of role ids the member is assigned */
125
- readonly roles: Snowflake[]
126
+ readonly roles: Array<Snowflake>
126
127
  /** whether the user is muted in voice channels */
127
128
  readonly mute: boolean
128
129
  /** whether the user is deafened in voice channels */
@@ -130,11 +131,11 @@ export interface AddGuildMemberParams {
130
131
  }
131
132
  export interface AllowedMention {
132
133
  /** An array of allowed mention types to parse from the content. */
133
- readonly parse: AllowedMentionType[]
134
+ readonly parse: Array<AllowedMentionType>
134
135
  /** Array of role_ids to mention (Max size of 100) */
135
- readonly roles: Snowflake[]
136
+ readonly roles: Array<Snowflake>
136
137
  /** Array of user_ids to mention (Max size of 100) */
137
- readonly users: Snowflake[]
138
+ readonly users: Array<Snowflake>
138
139
  /** For replies, whether to mention the author of the message being replied to (default false) */
139
140
  readonly replied_user: boolean
140
141
  }
@@ -156,7 +157,7 @@ export interface Application {
156
157
  /** the description of the app */
157
158
  readonly description: string
158
159
  /** an array of rpc origin urls, if rpc is enabled */
159
- readonly rpc_origins?: string[]
160
+ readonly rpc_origins?: Array<string>
160
161
  /** when false only app owner can join the app's bot to guilds */
161
162
  readonly bot_public: boolean
162
163
  /** when true the app's bot will only join upon completion of the full oauth2 code grant flow */
@@ -188,7 +189,7 @@ export interface Application {
188
189
  /** an approximate count of the app's guild membership. */
189
190
  readonly approximate_guild_count?: number
190
191
  /** up to 5 tags describing the content and functionality of the application */
191
- readonly tags?: string[]
192
+ readonly tags?: Array<string>
192
193
  /** settings for the application's default in-app authorization link, if enabled */
193
194
  readonly install_params?: InstallParam
194
195
  /** the application's default custom authorization link, if enabled */
@@ -214,7 +215,7 @@ export interface ApplicationCommand {
214
215
  /** Localization dictionary for description field. Values follow the same restrictions as description */
215
216
  readonly description_localizations?: Locale | null
216
217
  /** Parameters for the command, max of 25 */
217
- readonly options?: ApplicationCommandOption[]
218
+ readonly options?: Array<ApplicationCommandOption>
218
219
  /** Set of permissions represented as a bit set */
219
220
  readonly default_member_permissions?: string | null
220
221
  /** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
@@ -236,7 +237,7 @@ export interface ApplicationCommandDatum {
236
237
  /** converted users + roles + channels + attachments */
237
238
  readonly resolved?: ResolvedDatum
238
239
  /** the params + values from the user */
239
- readonly options?: ApplicationCommandInteractionDataOption[]
240
+ readonly options?: Array<ApplicationCommandInteractionDataOption>
240
241
  /** the id of the guild the command is registered to */
241
242
  readonly guild_id?: Snowflake
242
243
  /** id of the user or message targeted by a user or message command */
@@ -250,7 +251,7 @@ export interface ApplicationCommandInteractionDataOption {
250
251
  /** Value of the option resulting from user input */
251
252
  readonly value?: string
252
253
  /** Present if this option is a group or subcommand */
253
- readonly options?: ApplicationCommandInteractionDataOption[]
254
+ readonly options?: Array<ApplicationCommandInteractionDataOption>
254
255
  /** true if this option is the currently focused option for autocomplete */
255
256
  readonly focused?: boolean
256
257
  }
@@ -268,11 +269,11 @@ export interface ApplicationCommandOption {
268
269
  /** If the parameter is required or optional--default false */
269
270
  readonly required?: boolean
270
271
  /** Choices for STRING, INTEGER, and NUMBER types for the user to pick from, max 25 */
271
- readonly choices?: ApplicationCommandOptionChoice[]
272
+ readonly choices?: Array<ApplicationCommandOptionChoice>
272
273
  /** If the option is a subcommand or subcommand group type, these nested options will be the parameters */
273
- readonly options?: ApplicationCommandOption[]
274
+ readonly options?: Array<ApplicationCommandOption>
274
275
  /** If the option is a channel type, the channels shown will be restricted to these types */
275
- readonly channel_types?: ChannelType[]
276
+ readonly channel_types?: Array<ChannelType>
276
277
  /** If the option is an INTEGER or NUMBER type, the minimum value permitted */
277
278
  readonly min_value?: number
278
279
  /** If the option is an INTEGER or NUMBER type, the maximum value permitted */
@@ -448,21 +449,21 @@ export interface AuditEntryInfo {
448
449
  }
449
450
  export interface AuditLog {
450
451
  /** List of application commands referenced in the audit log */
451
- readonly application_commands: ApplicationCommand[]
452
+ readonly application_commands: Array<ApplicationCommand>
452
453
  /** List of audit log entries, sorted from most to least recent */
453
- readonly audit_log_entries: AuditLogEntry[]
454
+ readonly audit_log_entries: Array<AuditLogEntry>
454
455
  /** List of auto moderation rules referenced in the audit log */
455
- readonly auto_moderation_rules: AutoModerationRule[]
456
+ readonly auto_moderation_rules: Array<AutoModerationRule>
456
457
  /** List of guild scheduled events referenced in the audit log */
457
- readonly guild_scheduled_events: GuildScheduledEvent[]
458
+ readonly guild_scheduled_events: Array<GuildScheduledEvent>
458
459
  /** List of partial integration objects */
459
- readonly integrations: Integration[]
460
+ readonly integrations: Array<Integration>
460
461
  /** List of threads referenced in the audit log* */
461
- readonly threads: Channel[]
462
+ readonly threads: Array<Channel>
462
463
  /** List of users referenced in the audit log */
463
- readonly users: User[]
464
+ readonly users: Array<User>
464
465
  /** List of webhooks referenced in the audit log */
465
- readonly webhooks: Webhook[]
466
+ readonly webhooks: Array<Webhook>
466
467
  }
467
468
  export interface AuditLogChange {
468
469
  /** New value of the key */
@@ -476,7 +477,7 @@ export interface AuditLogEntry {
476
477
  /** ID of the affected entity (webhook, user, role, etc.) */
477
478
  readonly target_id?: string | null
478
479
  /** Changes made to the target_id */
479
- readonly changes?: AuditLogChange[]
480
+ readonly changes?: Array<AuditLogChange>
480
481
  /** User or app that made the changes */
481
482
  readonly user_id?: Snowflake | null
482
483
  /** ID of the entry */
@@ -648,13 +649,13 @@ export interface AutoModerationRule {
648
649
  /** the rule trigger metadata */
649
650
  readonly trigger_metadata: TriggerMetadatum
650
651
  /** the actions which will execute when the rule is triggered */
651
- readonly actions: AutoModerationAction[]
652
+ readonly actions: Array<AutoModerationAction>
652
653
  /** whether the rule is enabled */
653
654
  readonly enabled: boolean
654
655
  /** the role ids that should not be affected by the rule (Maximum of 20) */
655
- readonly exempt_roles: Snowflake[]
656
+ readonly exempt_roles: Array<Snowflake>
656
657
  /** the channel ids that should not be affected by the rule (Maximum of 50) */
657
- readonly exempt_channels: Snowflake[]
658
+ readonly exempt_channels: Array<Snowflake>
658
659
  }
659
660
  export type AutoModerationRuleCreateEvent = AutoModerationRule
660
661
  export type AutoModerationRuleDeleteEvent = AutoModerationRule
@@ -671,13 +672,13 @@ export interface BeginGuildPruneParams {
671
672
  /** whether pruned is returned, discouraged for large guilds */
672
673
  readonly compute_prune_count: boolean
673
674
  /** role(s) to include */
674
- readonly include_roles: Snowflake[]
675
+ readonly include_roles: Array<Snowflake>
675
676
  /** reason for the prune (deprecated) */
676
677
  readonly reason?: string
677
678
  }
678
679
  export interface BulkDeleteMessageParams {
679
680
  /** an array of message ids to delete (2-100) */
680
- readonly messages: Snowflake[]
681
+ readonly messages: Array<Snowflake>
681
682
  }
682
683
  export interface BulkOverwriteGuildApplicationCommandParams {
683
684
  /** ID of the command, if known */
@@ -691,7 +692,7 @@ export interface BulkOverwriteGuildApplicationCommandParams {
691
692
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
692
693
  readonly description_localizations?: Locale | null
693
694
  /** Parameters for the command */
694
- readonly options?: ApplicationCommandOption[]
695
+ readonly options?: Array<ApplicationCommandOption>
695
696
  /** Set of permissions represented as a bit set */
696
697
  readonly default_member_permissions?: string | null
697
698
  /** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
@@ -736,7 +737,7 @@ export interface Channel {
736
737
  /** sorting position of the channel */
737
738
  readonly position?: number
738
739
  /** explicit permission overwrites for members and roles */
739
- readonly permission_overwrites?: Overwrite[]
740
+ readonly permission_overwrites?: Array<Overwrite>
740
741
  /** the name of the channel (1-100 characters) */
741
742
  readonly name?: string | null
742
743
  /** the channel topic (0-4096 characters for GUILD_FORUM channels, 0-1024 characters for all others) */
@@ -752,7 +753,7 @@ export interface Channel {
752
753
  /** amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected */
753
754
  readonly rate_limit_per_user?: number
754
755
  /** the recipients of the DM */
755
- readonly recipients?: User[]
756
+ readonly recipients?: Array<User>
756
757
  /** icon hash of the group DM */
757
758
  readonly icon?: string | null
758
759
  /** id of the creator of the group DM or thread */
@@ -786,9 +787,9 @@ export interface Channel {
786
787
  /** number of messages ever sent in a thread, it's similar to message_count on message creation, but will not decrement the number when a message is deleted */
787
788
  readonly total_message_sent?: number
788
789
  /** the set of tags that can be used in a GUILD_FORUM channel */
789
- readonly available_tags?: ForumTag[]
790
+ readonly available_tags?: Array<ForumTag>
790
791
  /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
791
- readonly applied_tags?: Snowflake[]
792
+ readonly applied_tags?: Array<Snowflake>
792
793
  /** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
793
794
  readonly default_reaction_emoji?: DefaultReaction | null
794
795
  /** the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. */
@@ -888,7 +889,7 @@ export interface Connection {
888
889
  /** whether the connection is revoked */
889
890
  readonly revoked?: boolean
890
891
  /** an array of partial server integrations */
891
- readonly integrations?: Integration[]
892
+ readonly integrations?: Array<Integration>
892
893
  /** whether the connection is verified */
893
894
  readonly verified: boolean
894
895
  /** whether friend sync is enabled for this connection */
@@ -910,13 +911,13 @@ export interface CreateAutoModerationRuleParams {
910
911
  /** the trigger metadata */
911
912
  readonly trigger_metadata?: TriggerMetadatum
912
913
  /** the actions which will execute when the rule is triggered */
913
- readonly actions: AutoModerationAction[]
914
+ readonly actions: Array<AutoModerationAction>
914
915
  /** whether the rule is enabled (False by default) */
915
916
  readonly enabled?: boolean
916
917
  /** the role ids that should not be affected by the rule (Maximum of 20) */
917
- readonly exempt_roles?: Snowflake[]
918
+ readonly exempt_roles?: Array<Snowflake>
918
919
  /** the channel ids that should not be affected by the rule (Maximum of 50) */
919
- readonly exempt_channels?: Snowflake[]
920
+ readonly exempt_channels?: Array<Snowflake>
920
921
  }
921
922
  export interface CreateChannelInviteParams {
922
923
  /** duration of invite in seconds before expiry, or 0 for never. between 0 and 604800 (7 days) */
@@ -948,7 +949,7 @@ export interface CreateGlobalApplicationCommandParams {
948
949
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
949
950
  readonly description_localizations?: Locale | null
950
951
  /** the parameters for the command */
951
- readonly options?: ApplicationCommandOption[]
952
+ readonly options?: Array<ApplicationCommandOption>
952
953
  /** Set of permissions represented as a bit set */
953
954
  readonly default_member_permissions?: string | null
954
955
  /** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
@@ -962,7 +963,7 @@ export interface CreateGlobalApplicationCommandParams {
962
963
  }
963
964
  export interface CreateGroupDmParams {
964
965
  /** access tokens of users that have granted your app the gdm.join scope */
965
- readonly access_tokens: string[]
966
+ readonly access_tokens: Array<string>
966
967
  /** a dictionary of user ids to their respective nicknames */
967
968
  readonly nicks: Record<string, string>
968
969
  }
@@ -976,7 +977,7 @@ export interface CreateGuildApplicationCommandParams {
976
977
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
977
978
  readonly description_localizations?: Locale | null
978
979
  /** Parameters for the command */
979
- readonly options?: ApplicationCommandOption[]
980
+ readonly options?: Array<ApplicationCommandOption>
980
981
  /** Set of permissions represented as a bit set */
981
982
  readonly default_member_permissions?: string | null
982
983
  /** Replaced by default_member_permissions and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to true */
@@ -1008,7 +1009,7 @@ export interface CreateGuildChannelParams {
1008
1009
  /** sorting position of the channel */
1009
1010
  readonly position: number
1010
1011
  /** the channel's permission overwrites */
1011
- readonly permission_overwrites: Overwrite[]
1012
+ readonly permission_overwrites: Array<Overwrite>
1012
1013
  /** id of the parent category for a channel */
1013
1014
  readonly parent_id: Snowflake
1014
1015
  /** whether the channel is nsfw */
@@ -1022,7 +1023,7 @@ export interface CreateGuildChannelParams {
1022
1023
  /** emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
1023
1024
  readonly default_reaction_emoji: DefaultReaction
1024
1025
  /** set of tags that can be used in a GUILD_FORUM channel */
1025
- readonly available_tags: ForumTag[]
1026
+ readonly available_tags: Array<ForumTag>
1026
1027
  /** the default sort order type used to order posts in GUILD_FORUM channels */
1027
1028
  readonly default_sort_order: SortOrderType
1028
1029
  /** the default forum layout view used to display posts in GUILD_FORUM channels */
@@ -1034,7 +1035,7 @@ export interface CreateGuildEmojiParams {
1034
1035
  /** the 128x128 emoji image */
1035
1036
  readonly image: string
1036
1037
  /** roles allowed to use this emoji */
1037
- readonly roles: Snowflake[]
1038
+ readonly roles: Array<Snowflake>
1038
1039
  }
1039
1040
  export interface CreateGuildFromGuildTemplateParams {
1040
1041
  /** name of the guild (2-100 characters) */
@@ -1056,9 +1057,9 @@ export interface CreateGuildParams {
1056
1057
  /** explicit content filter level */
1057
1058
  readonly explicit_content_filter?: ExplicitContentFilterLevel
1058
1059
  /** new guild roles */
1059
- readonly roles?: Role[]
1060
+ readonly roles?: Array<Role>
1060
1061
  /** new guild's channels */
1061
- readonly channels?: Channel[]
1062
+ readonly channels?: Array<Channel>
1062
1063
  /** id for afk channel */
1063
1064
  readonly afk_channel_id?: Snowflake
1064
1065
  /** afk timeout in seconds, can be set to: 60, 300, 900, 1800, 3600 */
@@ -1128,21 +1129,21 @@ export interface CreateMessageParams {
1128
1129
  /** true if this is a TTS message */
1129
1130
  readonly tts?: boolean
1130
1131
  /** Up to 10 rich embeds (up to 6000 characters) */
1131
- readonly embeds?: Embed[]
1132
+ readonly embeds?: Array<Embed>
1132
1133
  /** Allowed mentions for the message */
1133
1134
  readonly allowed_mentions?: AllowedMention
1134
1135
  /** Include to make your message a reply */
1135
1136
  readonly message_reference?: MessageReference
1136
1137
  /** Components to include with the message */
1137
- readonly components?: Component[]
1138
+ readonly components?: Array<Component>
1138
1139
  /** IDs of up to 3 stickers in the server to send in the message */
1139
- readonly sticker_ids?: Snowflake[]
1140
+ readonly sticker_ids?: Array<Snowflake>
1140
1141
  /** Contents of the file being sent. See Uploading Files */
1141
1142
  readonly files?: string
1142
1143
  /** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
1143
1144
  readonly payload_json?: string
1144
1145
  /** Attachment objects with filename and description. See Uploading Files */
1145
- readonly attachments?: Attachment[]
1146
+ readonly attachments?: Array<Attachment>
1146
1147
  /** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
1147
1148
  readonly flags?: number
1148
1149
  }
@@ -2435,7 +2436,7 @@ export interface DeleteWebhookMessageParams {
2435
2436
  }
2436
2437
  export interface EditApplicationCommandPermissionParams {
2437
2438
  /** Permissions for the command in the guild */
2438
- readonly permissions: ApplicationCommandPermission[]
2439
+ readonly permissions: Array<ApplicationCommandPermission>
2439
2440
  }
2440
2441
  export interface EditChannelPermissionParams {
2441
2442
  /** the bitwise value of all allowed permissions (default "0") */
@@ -2455,7 +2456,7 @@ export interface EditGlobalApplicationCommandParams {
2455
2456
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
2456
2457
  readonly description_localizations?: Locale | null
2457
2458
  /** the parameters for the command */
2458
- readonly options?: ApplicationCommandOption[]
2459
+ readonly options?: Array<ApplicationCommandOption>
2459
2460
  /** Set of permissions represented as a bit set */
2460
2461
  readonly default_member_permissions?: string | null
2461
2462
  /** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
@@ -2475,7 +2476,7 @@ export interface EditGuildApplicationCommandParams {
2475
2476
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
2476
2477
  readonly description_localizations?: Locale | null
2477
2478
  /** Parameters for the command */
2478
- readonly options?: ApplicationCommandOption[]
2479
+ readonly options?: Array<ApplicationCommandOption>
2479
2480
  /** Set of permissions represented as a bit set */
2480
2481
  readonly default_member_permissions?: string | null
2481
2482
  /** Replaced by default_member_permissions and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to true */
@@ -2487,35 +2488,35 @@ export interface EditMessageParams {
2487
2488
  /** Message contents (up to 2000 characters) */
2488
2489
  readonly content: string
2489
2490
  /** Up to 10 rich embeds (up to 6000 characters) */
2490
- readonly embeds: Embed[]
2491
+ readonly embeds: Array<Embed>
2491
2492
  /** Edit the flags of a message (only SUPPRESS_EMBEDS can currently be set/unset) */
2492
2493
  readonly flags: number
2493
2494
  /** Allowed mentions for the message */
2494
2495
  readonly allowed_mentions: AllowedMention
2495
2496
  /** Components to include with the message */
2496
- readonly components: Component[]
2497
+ readonly components: Array<Component>
2497
2498
  /** Contents of the file being sent/edited. See Uploading Files */
2498
2499
  readonly files: string
2499
2500
  /** JSON-encoded body of non-file params (multipart/form-data only). See Uploading Files */
2500
2501
  readonly payload_json: string
2501
2502
  /** Attached files to keep and possible descriptions for new files. See Uploading Files */
2502
- readonly attachments: Attachment[]
2503
+ readonly attachments: Array<Attachment>
2503
2504
  }
2504
2505
  export interface EditWebhookMessageParams {
2505
2506
  /** the message contents (up to 2000 characters) */
2506
2507
  readonly content: string
2507
2508
  /** embedded rich content */
2508
- readonly embeds: Embed[]
2509
+ readonly embeds: Array<Embed>
2509
2510
  /** allowed mentions for the message */
2510
2511
  readonly allowed_mentions: AllowedMention
2511
2512
  /** the components to include with the message */
2512
- readonly components: Component[]
2513
+ readonly components: Array<Component>
2513
2514
  /** the contents of the file being sent/edited */
2514
2515
  readonly files: string
2515
2516
  /** JSON encoded body of non-file params (multipart/form-data only) */
2516
2517
  readonly payload_json: string
2517
2518
  /** attached files to keep and possible descriptions for new files */
2518
- readonly attachments: Attachment[]
2519
+ readonly attachments: Array<Attachment>
2519
2520
  }
2520
2521
  export interface Embed {
2521
2522
  /** title of embed */
@@ -2543,7 +2544,7 @@ export interface Embed {
2543
2544
  /** author information */
2544
2545
  readonly author?: EmbedAuthor
2545
2546
  /** fields information */
2546
- readonly fields?: EmbedField[]
2547
+ readonly fields?: Array<EmbedField>
2547
2548
  }
2548
2549
  export interface EmbedAuthor {
2549
2550
  /** name of author */
@@ -2627,7 +2628,7 @@ export interface Emoji {
2627
2628
  /** emoji name */
2628
2629
  readonly name?: string | null
2629
2630
  /** roles allowed to use this emoji */
2630
- readonly roles?: Snowflake[]
2631
+ readonly roles?: Array<Snowflake>
2631
2632
  /** user that created this emoji */
2632
2633
  readonly user?: User
2633
2634
  /** whether this emoji must be wrapped in colons */
@@ -2681,14 +2682,14 @@ export interface Endpoints<O> {
2681
2682
  bulkOverwriteGlobalApplicationCommands: (
2682
2683
  applicationId: string,
2683
2684
  options?: O,
2684
- ) => RestResponse<ApplicationCommand[]>
2685
+ ) => RestResponse<Array<ApplicationCommand>>
2685
2686
  /** Takes a list of application commands, overwriting the existing command list for this application for the targeted guild. Returns 200 and a list of application command objects. */
2686
2687
  bulkOverwriteGuildApplicationCommands: (
2687
2688
  applicationId: string,
2688
2689
  guildId: string,
2689
2690
  params?: Partial<BulkOverwriteGuildApplicationCommandParams>,
2690
2691
  options?: O,
2691
- ) => RestResponse<ApplicationCommand[]>
2692
+ ) => RestResponse<Array<ApplicationCommand>>
2692
2693
  /** Create a new rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Create Gateway event. */
2693
2694
  createAutoModerationRule: (
2694
2695
  guildId: string,
@@ -3048,7 +3049,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3048
3049
  getApplicationRoleConnectionMetadataRecords: (
3049
3050
  applicationId: string,
3050
3051
  options?: O,
3051
- ) => RestResponse<ApplicationRoleConnectionMetadatum[]>
3052
+ ) => RestResponse<Array<ApplicationRoleConnectionMetadatum>>
3052
3053
  /** Get a single rule. Returns an auto moderation rule object. */
3053
3054
  getAutoModerationRule: (
3054
3055
  guildId: string,
@@ -3058,7 +3059,10 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3058
3059
  /** Get a channel by ID. Returns a channel object. If the channel is a thread, a thread member object is included in the returned result. */
3059
3060
  getChannel: (channelId: string, options?: O) => RestResponse<Channel>
3060
3061
  /** Returns a list of invite objects (with invite metadata) for the channel. Only usable for guild channels. Requires the MANAGE_CHANNELS permission. */
3061
- getChannelInvites: (channelId: string, options?: O) => RestResponse<Invite[]>
3062
+ getChannelInvites: (
3063
+ channelId: string,
3064
+ options?: O,
3065
+ ) => RestResponse<Array<Invite>>
3062
3066
  /** Retrieves a specific message in the channel. Returns a message object on success. */
3063
3067
  getChannelMessage: (
3064
3068
  channelId: string,
@@ -3070,12 +3074,12 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3070
3074
  channelId: string,
3071
3075
  params?: Partial<GetChannelMessageParams>,
3072
3076
  options?: O,
3073
- ) => RestResponse<Message[]>
3077
+ ) => RestResponse<Array<Message>>
3074
3078
  /** Returns a list of channel webhook objects. Requires the MANAGE_WEBHOOKS permission. */
3075
3079
  getChannelWebhooks: (
3076
3080
  channelId: string,
3077
3081
  options?: O,
3078
- ) => RestResponse<Webhook[]>
3082
+ ) => RestResponse<Array<Webhook>>
3079
3083
  /** Returns the application object associated with the requesting bot user. */
3080
3084
  getCurrentApplication: (options?: O) => RestResponse<Application>
3081
3085
  /** Returns info about the current authorization. Requires authentication with a bearer token. */
@@ -3097,7 +3101,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3097
3101
  getCurrentUserGuilds: (
3098
3102
  params?: Partial<GetCurrentUserGuildParams>,
3099
3103
  options?: O,
3100
- ) => RestResponse<Guild[]>
3104
+ ) => RestResponse<Array<Guild>>
3101
3105
  /** Returns a followup message for an Interaction. Functions the same as Get Webhook Message. */
3102
3106
  getFollowupMessage: (
3103
3107
  applicationId: string,
@@ -3118,7 +3122,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3118
3122
  applicationId: string,
3119
3123
  params?: Partial<GetGlobalApplicationCommandParams>,
3120
3124
  options?: O,
3121
- ) => RestResponse<ApplicationCommand[]>
3125
+ ) => RestResponse<Array<ApplicationCommand>>
3122
3126
  /** Returns the guild object for the given id. If with_counts is set to true, this endpoint will also return approximate_member_count and approximate_presence_count for the guild. */
3123
3127
  getGuild: (
3124
3128
  guildId: string,
@@ -3137,13 +3141,13 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3137
3141
  applicationId: string,
3138
3142
  guildId: string,
3139
3143
  options?: O,
3140
- ) => RestResponse<GuildApplicationCommandPermission[]>
3144
+ ) => RestResponse<Array<GuildApplicationCommandPermission>>
3141
3145
  getGuildApplicationCommands: (
3142
3146
  applicationId: string,
3143
3147
  guildId: string,
3144
3148
  params?: Partial<GetGuildApplicationCommandParams>,
3145
3149
  options?: O,
3146
- ) => RestResponse<ApplicationCommand[]>
3150
+ ) => RestResponse<Array<ApplicationCommand>>
3147
3151
  /** Returns an audit log object for the guild. Requires the VIEW_AUDIT_LOG permission. */
3148
3152
  getGuildAuditLog: (
3149
3153
  guildId: string,
@@ -3161,9 +3165,12 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3161
3165
  guildId: string,
3162
3166
  params?: Partial<GetGuildBanParams>,
3163
3167
  options?: O,
3164
- ) => RestResponse<Ban[]>
3168
+ ) => RestResponse<Array<Ban>>
3165
3169
  /** Returns a list of guild channel objects. Does not include threads. */
3166
- getGuildChannels: (guildId: string, options?: O) => RestResponse<Channel[]>
3170
+ getGuildChannels: (
3171
+ guildId: string,
3172
+ options?: O,
3173
+ ) => RestResponse<Array<Channel>>
3167
3174
  /** Returns an emoji object for the given guild and emoji IDs. */
3168
3175
  getGuildEmoji: (
3169
3176
  guildId: string,
@@ -3174,9 +3181,9 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3174
3181
  getGuildIntegrations: (
3175
3182
  guildId: string,
3176
3183
  options?: O,
3177
- ) => RestResponse<Integration[]>
3184
+ ) => RestResponse<Array<Integration>>
3178
3185
  /** Returns a list of invite objects (with invite metadata) for the guild. Requires the MANAGE_GUILD permission. */
3179
- getGuildInvites: (guildId: string, options?: O) => RestResponse<Invite[]>
3186
+ getGuildInvites: (guildId: string, options?: O) => RestResponse<Array<Invite>>
3180
3187
  /** Returns a guild member object for the specified user. */
3181
3188
  getGuildMember: (
3182
3189
  guildId: string,
@@ -3198,7 +3205,7 @@ If the user is not in the guild, then the guild must be discoverable. */
3198
3205
  options?: O,
3199
3206
  ) => RestResponse<any>
3200
3207
  /** Returns a list of role objects for the guild. */
3201
- getGuildRoles: (guildId: string, options?: O) => RestResponse<Role[]>
3208
+ getGuildRoles: (guildId: string, options?: O) => RestResponse<Array<Role>>
3202
3209
  /** Get a guild scheduled event. Returns a guild scheduled event object on success. */
3203
3210
  getGuildScheduledEvent: (
3204
3211
  guildId: string,
@@ -3212,7 +3219,7 @@ If the user is not in the guild, then the guild must be discoverable. */
3212
3219
  guildScheduledEventId: string,
3213
3220
  params?: Partial<GetGuildScheduledEventUserParams>,
3214
3221
  options?: O,
3215
- ) => RestResponse<GuildScheduledEventUser[]>
3222
+ ) => RestResponse<Array<GuildScheduledEventUser>>
3216
3223
  /** Returns a sticker object for the given guild and sticker IDs. Includes the user field if the bot has the MANAGE_GUILD_EXPRESSIONS permission. */
3217
3224
  getGuildSticker: (
3218
3225
  guildId: string,
@@ -3228,16 +3235,19 @@ If the user is not in the guild, then the guild must be discoverable. */
3228
3235
  getGuildTemplates: (
3229
3236
  guildId: string,
3230
3237
  options?: O,
3231
- ) => RestResponse<GuildTemplate[]>
3238
+ ) => RestResponse<Array<GuildTemplate>>
3232
3239
  /** Returns a partial invite object for guilds with that feature enabled. Requires the MANAGE_GUILD permission. code will be null if a vanity url for the guild is not set. */
3233
3240
  getGuildVanityUrl: (guildId: string, options?: O) => RestResponse<Invite>
3234
3241
  /** Returns a list of voice region objects for the guild. Unlike the similar /voice route, this returns VIP servers when the guild is VIP-enabled. */
3235
3242
  getGuildVoiceRegions: (
3236
3243
  guildId: string,
3237
3244
  options?: O,
3238
- ) => RestResponse<VoiceRegion[]>
3245
+ ) => RestResponse<Array<VoiceRegion>>
3239
3246
  /** Returns a list of guild webhook objects. Requires the MANAGE_WEBHOOKS permission. */
3240
- getGuildWebhooks: (guildId: string, options?: O) => RestResponse<Webhook[]>
3247
+ getGuildWebhooks: (
3248
+ guildId: string,
3249
+ options?: O,
3250
+ ) => RestResponse<Array<Webhook>>
3241
3251
  /** Returns the Welcome Screen object for the guild. If the welcome screen is not enabled, the MANAGE_GUILD permission is required. */
3242
3252
  getGuildWelcomeScreen: (
3243
3253
  guildId: string,
@@ -3270,7 +3280,10 @@ If the user is not in the guild, then the guild must be discoverable. */
3270
3280
  options?: O,
3271
3281
  ) => RestResponse<Message>
3272
3282
  /** Returns all pinned messages in the channel as an array of message objects. */
3273
- getPinnedMessages: (channelId: string, options?: O) => RestResponse<Message[]>
3283
+ getPinnedMessages: (
3284
+ channelId: string,
3285
+ options?: O,
3286
+ ) => RestResponse<Array<Message>>
3274
3287
  /** Get a list of users that reacted with this emoji. Returns an array of user objects on success.
3275
3288
  The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id. */
3276
3289
  getReactions: (
@@ -3279,7 +3292,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3279
3292
  emoji: string,
3280
3293
  params?: Partial<GetReactionParams>,
3281
3294
  options?: O,
3282
- ) => RestResponse<User[]>
3295
+ ) => RestResponse<Array<User>>
3283
3296
  /** Gets the stage instance associated with the Stage channel, if it exists. */
3284
3297
  getStageInstance: (channelId: string, options?: O) => RestResponse<any>
3285
3298
  /** Returns a sticker object for the given sticker ID. */
@@ -3299,7 +3312,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3299
3312
  options?: O,
3300
3313
  ) => RestResponse<ApplicationRoleConnection>
3301
3314
  /** Returns a list of connection objects. Requires the connections OAuth2 scope. */
3302
- getUserConnections: (options?: O) => RestResponse<Connection[]>
3315
+ getUserConnections: (options?: O) => RestResponse<Array<Connection>>
3303
3316
  /** Returns the new webhook object for the given id. */
3304
3317
  getWebhook: (webhookId: string, options?: O) => RestResponse<Webhook>
3305
3318
  /** Returns a previously-sent webhook message from the same token. Returns a message object on success. */
@@ -3344,17 +3357,20 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3344
3357
  listAutoModerationRulesForGuild: (
3345
3358
  guildId: string,
3346
3359
  options?: O,
3347
- ) => RestResponse<AutoModerationRule[]>
3360
+ ) => RestResponse<Array<AutoModerationRule>>
3348
3361
  /** Returns a list of emoji objects for the given guild. */
3349
- listGuildEmojis: (guildId: string, options?: O) => RestResponse<Emoji[]>
3362
+ listGuildEmojis: (guildId: string, options?: O) => RestResponse<Array<Emoji>>
3350
3363
  /** Returns a list of guild member objects that are members of the guild. */
3351
3364
  listGuildMembers: (
3352
3365
  guildId: string,
3353
3366
  params?: Partial<ListGuildMemberParams>,
3354
3367
  options?: O,
3355
- ) => RestResponse<GuildMember[]>
3368
+ ) => RestResponse<Array<GuildMember>>
3356
3369
  /** Returns an array of sticker objects for the given guild. Includes user fields if the bot has the MANAGE_GUILD_EXPRESSIONS permission. */
3357
- listGuildStickers: (guildId: string, options?: O) => RestResponse<Sticker[]>
3370
+ listGuildStickers: (
3371
+ guildId: string,
3372
+ options?: O,
3373
+ ) => RestResponse<Array<Sticker>>
3358
3374
  /** Returns archived threads in the channel that are of type PRIVATE_THREAD, and the user has joined. Threads are ordered by their id, in descending order. Requires the READ_MESSAGE_HISTORY permission. */
3359
3375
  listJoinedPrivateArchivedThreads: (
3360
3376
  channelId: string,
@@ -3380,14 +3396,14 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3380
3396
  guildId: string,
3381
3397
  params?: Partial<ListScheduledEventsForGuildParams>,
3382
3398
  options?: O,
3383
- ) => RestResponse<GuildScheduledEvent[]>
3399
+ ) => RestResponse<Array<GuildScheduledEvent>>
3384
3400
  listThreadMembers: (
3385
3401
  channelId: string,
3386
3402
  params?: Partial<ListThreadMemberParams>,
3387
3403
  options?: O,
3388
- ) => RestResponse<ThreadMember[]>
3404
+ ) => RestResponse<Array<ThreadMember>>
3389
3405
  /** Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region. */
3390
- listVoiceRegions: (options?: O) => RestResponse<VoiceRegion[]>
3406
+ listVoiceRegions: (options?: O) => RestResponse<Array<VoiceRegion>>
3391
3407
  /** Modify an existing rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Update Gateway event. */
3392
3408
  modifyAutoModerationRule: (
3393
3409
  guildId: string,
@@ -3473,7 +3489,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3473
3489
  guildId: string,
3474
3490
  params?: Partial<ModifyGuildRolePositionParams>,
3475
3491
  options?: O,
3476
- ) => RestResponse<Role[]>
3492
+ ) => RestResponse<Array<Role>>
3477
3493
  /** Modify a guild scheduled event. Returns the modified guild scheduled event object on success. Fires a Guild Scheduled Event Update Gateway event. */
3478
3494
  modifyGuildScheduledEvent: (
3479
3495
  guildId: string,
@@ -3567,7 +3583,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3567
3583
  guildId: string,
3568
3584
  params?: Partial<SearchGuildMemberParams>,
3569
3585
  options?: O,
3570
- ) => RestResponse<GuildMember[]>
3586
+ ) => RestResponse<Array<GuildMember>>
3571
3587
  /** Creates a new thread from an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create and a Message Update Gateway event. */
3572
3588
  startThreadFromMessage: (
3573
3589
  channelId: string,
@@ -3605,7 +3621,7 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
3605
3621
  updateApplicationRoleConnectionMetadataRecords: (
3606
3622
  applicationId: string,
3607
3623
  options?: O,
3608
- ) => RestResponse<ApplicationRoleConnectionMetadatum[]>
3624
+ ) => RestResponse<Array<ApplicationRoleConnectionMetadatum>>
3609
3625
  /** Updates and returns the application role connection for the user. Requires an OAuth2 access token with role_connections.write scope for the application specified in the path. */
3610
3626
  updateUserApplicationRoleConnection: (
3611
3627
  applicationId: string,
@@ -3627,17 +3643,17 @@ export interface ExecuteWebhookParams {
3627
3643
  /** true if this is a TTS message */
3628
3644
  readonly tts: boolean
3629
3645
  /** embedded rich content */
3630
- readonly embeds: Embed[]
3646
+ readonly embeds: Array<Embed>
3631
3647
  /** allowed mentions for the message */
3632
3648
  readonly allowed_mentions: AllowedMention
3633
3649
  /** the components to include with the message */
3634
- readonly components: Component[]
3650
+ readonly components: Array<Component>
3635
3651
  /** the contents of the file being sent */
3636
3652
  readonly files: string
3637
3653
  /** JSON encoded body of non-file params */
3638
3654
  readonly payload_json: string
3639
3655
  /** attachment objects with filename and description */
3640
- readonly attachments: Attachment[]
3656
+ readonly attachments: Array<Attachment>
3641
3657
  /** message flags combined as a bitfield (only SUPPRESS_EMBEDS can be set) */
3642
3658
  readonly flags: number
3643
3659
  /** name of thread to create (requires the webhook channel to be a forum channel) */
@@ -3685,19 +3701,19 @@ export interface ForumThreadMessageParam {
3685
3701
  /** Message contents (up to 2000 characters) */
3686
3702
  readonly content?: string
3687
3703
  /** Up to 10 rich embeds (up to 6000 characters) */
3688
- readonly embeds?: Embed[]
3704
+ readonly embeds?: Array<Embed>
3689
3705
  /** Allowed mentions for the message */
3690
3706
  readonly allowed_mentions?: AllowedMention
3691
3707
  /** Components to include with the message */
3692
- readonly components?: Component[]
3708
+ readonly components?: Array<Component>
3693
3709
  /** IDs of up to 3 stickers in the server to send in the message */
3694
- readonly sticker_ids?: Snowflake[]
3710
+ readonly sticker_ids?: Array<Snowflake>
3695
3711
  /** Contents of the file being sent. See Uploading Files */
3696
3712
  readonly files: string
3697
3713
  /** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
3698
3714
  readonly payload_json?: string
3699
3715
  /** Attachment objects with filename and description. See Uploading Files */
3700
- readonly attachments?: Attachment[]
3716
+ readonly attachments?: Array<Attachment>
3701
3717
  /** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
3702
3718
  readonly flags?: number
3703
3719
  }
@@ -3778,7 +3794,7 @@ export interface GetCurrentAuthorizationInformationResponse {
3778
3794
  /** the current application */
3779
3795
  readonly application: Application
3780
3796
  /** the scopes the user has authorized the application for */
3781
- readonly scopes: string[]
3797
+ readonly scopes: Array<string>
3782
3798
  /** when the access token expires */
3783
3799
  readonly expires: string
3784
3800
  /** the user who has authorized, if the user has authorized with the identify scope */
@@ -3838,7 +3854,7 @@ export interface GetGuildPruneCountParams {
3838
3854
  /** number of days to count prune for (1-30) */
3839
3855
  readonly days: number
3840
3856
  /** role(s) to include */
3841
- readonly include_roles: Snowflake[]
3857
+ readonly include_roles: Array<Snowflake>
3842
3858
  }
3843
3859
  export interface GetGuildScheduledEventParams {
3844
3860
  /** include number of users subscribed to this event */
@@ -3922,11 +3938,11 @@ export interface Guild {
3922
3938
  /** explicit content filter level */
3923
3939
  readonly explicit_content_filter: ExplicitContentFilterLevel
3924
3940
  /** roles in the guild */
3925
- readonly roles: Role[]
3941
+ readonly roles: Array<Role>
3926
3942
  /** custom guild emojis */
3927
- readonly emojis: Emoji[]
3943
+ readonly emojis: Array<Emoji>
3928
3944
  /** enabled guild features */
3929
- readonly features: GuildFeature[]
3945
+ readonly features: Array<GuildFeature>
3930
3946
  /** required MFA level for the guild */
3931
3947
  readonly mfa_level: MfaLevel
3932
3948
  /** application id of the guild creator if it is bot-created */
@@ -3968,7 +3984,7 @@ export interface Guild {
3968
3984
  /** guild NSFW level */
3969
3985
  readonly nsfw_level: GuildNsfwLevel
3970
3986
  /** custom guild stickers */
3971
- readonly stickers?: Sticker[]
3987
+ readonly stickers?: Array<Sticker>
3972
3988
  /** whether the guild has the boost progress bar enabled */
3973
3989
  readonly premium_progress_bar_enabled: boolean
3974
3990
  /** the id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */
@@ -3982,7 +3998,7 @@ export interface GuildApplicationCommandPermission {
3982
3998
  /** ID of the guild */
3983
3999
  readonly guild_id: Snowflake
3984
4000
  /** Permissions for the command in the guild, max of 100 */
3985
- readonly permissions: ApplicationCommandPermission[]
4001
+ readonly permissions: Array<ApplicationCommandPermission>
3986
4002
  }
3987
4003
  export type GuildAuditLogEntryCreateEvent = AuditLogEntry
3988
4004
  export interface GuildBanAddEvent {
@@ -4008,26 +4024,26 @@ export interface GuildCreateExtra {
4008
4024
  /** Total number of members in this guild */
4009
4025
  readonly member_count: number
4010
4026
  /** States of members currently in voice channels; lacks the guild_id key */
4011
- readonly voice_states: VoiceState[]
4027
+ readonly voice_states: Array<VoiceState>
4012
4028
  /** Users in the guild */
4013
- readonly members: GuildMember[]
4029
+ readonly members: Array<GuildMember>
4014
4030
  /** Channels in the guild */
4015
- readonly channels: Channel[]
4031
+ readonly channels: Array<Channel>
4016
4032
  /** All active threads in the guild that current user has permission to view */
4017
- readonly threads: Channel[]
4033
+ readonly threads: Array<Channel>
4018
4034
  /** Presences of the members in the guild, will only include non-offline members if the size is greater than large threshold */
4019
- readonly presences: PresenceUpdateEvent[]
4035
+ readonly presences: Array<PresenceUpdateEvent>
4020
4036
  /** Stage instances in the guild */
4021
- readonly stage_instances: StageInstance[]
4037
+ readonly stage_instances: Array<StageInstance>
4022
4038
  /** Scheduled events in the guild */
4023
- readonly guild_scheduled_events: GuildScheduledEvent[]
4039
+ readonly guild_scheduled_events: Array<GuildScheduledEvent>
4024
4040
  }
4025
4041
  export type GuildDeleteEvent = UnavailableGuild
4026
4042
  export interface GuildEmojisUpdateEvent {
4027
4043
  /** ID of the guild */
4028
4044
  readonly guild_id: Snowflake
4029
4045
  /** Array of emojis */
4030
- readonly emojis: Emoji[]
4046
+ readonly emojis: Array<Emoji>
4031
4047
  }
4032
4048
  export const enum GuildFeature {
4033
4049
  /** guild has access to set an animated guild banner image */
@@ -4097,7 +4113,7 @@ export interface GuildMember {
4097
4113
  /** the member's guild avatar hash */
4098
4114
  readonly avatar?: string | null
4099
4115
  /** array of role object ids */
4100
- readonly roles: Snowflake[]
4116
+ readonly roles: Array<Snowflake>
4101
4117
  /** when the user joined the guild */
4102
4118
  readonly joined_at: string
4103
4119
  /** when the user started boosting the guild */
@@ -4140,15 +4156,15 @@ export interface GuildMembersChunkEvent {
4140
4156
  /** ID of the guild */
4141
4157
  readonly guild_id: Snowflake
4142
4158
  /** Set of guild members */
4143
- readonly members: GuildMember[]
4159
+ readonly members: Array<GuildMember>
4144
4160
  /** Chunk index in the expected chunks for this response (0 <= chunk_index < chunk_count) */
4145
4161
  readonly chunk_index: number
4146
4162
  /** Total number of expected chunks for this response */
4147
4163
  readonly chunk_count: number
4148
4164
  /** When passing an invalid ID to REQUEST_GUILD_MEMBERS, it will be returned here */
4149
- readonly not_found?: any[]
4165
+ readonly not_found?: Array<any>
4150
4166
  /** When passing true to REQUEST_GUILD_MEMBERS, presences of the returned members will be here */
4151
- readonly presences?: PresenceUpdateEvent[]
4167
+ readonly presences?: Array<PresenceUpdateEvent>
4152
4168
  /** Nonce used in the Guild Members Request */
4153
4169
  readonly nonce?: string
4154
4170
  }
@@ -4156,7 +4172,7 @@ export interface GuildMemberUpdateEvent {
4156
4172
  /** ID of the guild */
4157
4173
  readonly guild_id: Snowflake
4158
4174
  /** User role ids */
4159
- readonly roles: Snowflake[]
4175
+ readonly roles: Array<Snowflake>
4160
4176
  /** User */
4161
4177
  readonly user: User
4162
4178
  /** Nickname of the user in the guild */
@@ -4186,9 +4202,9 @@ export interface GuildOnboarding {
4186
4202
  /** ID of the guild this onboarding is part of */
4187
4203
  readonly guild_id: Snowflake
4188
4204
  /** Prompts shown during onboarding and in customize community */
4189
- readonly prompts: OnboardingPrompt[]
4205
+ readonly prompts: Array<OnboardingPrompt>
4190
4206
  /** Channel IDs that members get opted into automatically */
4191
- readonly default_channel_ids: Snowflake[]
4207
+ readonly default_channel_ids: Array<Snowflake>
4192
4208
  /** Whether onboarding is enabled in the guild */
4193
4209
  readonly enabled: boolean
4194
4210
  /** Current mode of onboarding */
@@ -4206,9 +4222,9 @@ export interface GuildPreview {
4206
4222
  /** discovery splash hash */
4207
4223
  readonly discovery_splash?: string | null
4208
4224
  /** custom guild emojis */
4209
- readonly emojis: Emoji[]
4225
+ readonly emojis: Array<Emoji>
4210
4226
  /** enabled guild features */
4211
- readonly features: GuildFeature[]
4227
+ readonly features: Array<GuildFeature>
4212
4228
  /** approximate number of members in this guild */
4213
4229
  readonly approximate_member_count: number
4214
4230
  /** approximate number of online members in this guild */
@@ -4216,7 +4232,7 @@ export interface GuildPreview {
4216
4232
  /** the description for the guild */
4217
4233
  readonly description?: string | null
4218
4234
  /** custom guild stickers */
4219
- readonly stickers: Sticker[]
4235
+ readonly stickers: Array<Sticker>
4220
4236
  }
4221
4237
  export interface GuildRoleCreateEvent {
4222
4238
  /** ID of the guild */
@@ -4320,7 +4336,7 @@ export interface GuildStickersUpdateEvent {
4320
4336
  /** ID of the guild */
4321
4337
  readonly guild_id: Snowflake
4322
4338
  /** Array of stickers */
4323
- readonly stickers: Sticker[]
4339
+ readonly stickers: Array<Sticker>
4324
4340
  }
4325
4341
  export interface GuildTemplate {
4326
4342
  /** the template code (unique ID) */
@@ -4355,9 +4371,9 @@ export interface GuildWidget {
4355
4371
  /** instant invite for the guilds specified widget invite channel */
4356
4372
  readonly instant_invite?: string | null
4357
4373
  /** voice and stage channels which are accessible by @everyone */
4358
- readonly channels: Channel[]
4374
+ readonly channels: Array<Channel>
4359
4375
  /** special widget user objects that includes users presence (Limit 100) */
4360
- readonly members: User[]
4376
+ readonly members: Array<User>
4361
4377
  /** number of online members in this guild */
4362
4378
  readonly presence_count: number
4363
4379
  }
@@ -4382,7 +4398,7 @@ export interface Identify {
4382
4398
  /** Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list */
4383
4399
  readonly large_threshold?: number
4384
4400
  /** Used for Guild Sharding */
4385
- readonly shard?: number[]
4401
+ readonly shard?: Array<number>
4386
4402
  /** Presence structure for initial presence information */
4387
4403
  readonly presence?: UpdatePresence
4388
4404
  /** Gateway Intents you wish to receive */
@@ -4398,7 +4414,7 @@ export interface IdentifyConnectionProperty {
4398
4414
  }
4399
4415
  export interface InstallParam {
4400
4416
  /** the scopes to add the application to the server with */
4401
- readonly scopes: OAuth2Scope[]
4417
+ readonly scopes: Array<OAuth2Scope>
4402
4418
  /** the permissions to request for the bot role */
4403
4419
  readonly permissions: string
4404
4420
  }
@@ -4434,7 +4450,7 @@ export interface Integration {
4434
4450
  /** The bot/OAuth2 application for discord integrations */
4435
4451
  readonly application?: IntegrationApplication
4436
4452
  /** the scopes the application has been authorized for */
4437
- readonly scopes?: OAuth2Scope[]
4453
+ readonly scopes?: Array<OAuth2Scope>
4438
4454
  }
4439
4455
  export interface IntegrationAccount {
4440
4456
  /** id of the account */
@@ -4512,7 +4528,7 @@ export interface Interaction {
4512
4528
  }
4513
4529
  export interface InteractionCallbackAutocomplete {
4514
4530
  /** autocomplete choices (max of 25 choices) */
4515
- readonly choices: ApplicationCommandOptionChoice[]
4531
+ readonly choices: Array<ApplicationCommandOptionChoice>
4516
4532
  }
4517
4533
  export type InteractionCallbackDatum =
4518
4534
  | InteractionCallbackAutocomplete
@@ -4524,15 +4540,15 @@ export interface InteractionCallbackMessage {
4524
4540
  /** message content */
4525
4541
  readonly content?: string
4526
4542
  /** supports up to 10 embeds */
4527
- readonly embeds?: Embed[]
4543
+ readonly embeds?: Array<Embed>
4528
4544
  /** allowed mentions object */
4529
4545
  readonly allowed_mentions?: AllowedMention
4530
4546
  /** message flags combined as a bitfield (only SUPPRESS_EMBEDS and EPHEMERAL can be set) */
4531
4547
  readonly flags?: number
4532
4548
  /** message components */
4533
- readonly components?: Component[]
4549
+ readonly components?: Array<Component>
4534
4550
  /** attachment objects with filename and description */
4535
- readonly attachments?: Attachment[]
4551
+ readonly attachments?: Array<Attachment>
4536
4552
  }
4537
4553
  export interface InteractionCallbackModal {
4538
4554
  /** a developer-defined identifier for the modal, max 100 characters */
@@ -4540,7 +4556,7 @@ export interface InteractionCallbackModal {
4540
4556
  /** the title of the popup modal, max 45 characters */
4541
4557
  readonly title: string
4542
4558
  /** between 1 and 5 (inclusive) components that make up the modal */
4543
- readonly components: Component[]
4559
+ readonly components: Array<Component>
4544
4560
  }
4545
4561
  export const enum InteractionCallbackType {
4546
4562
  /** ACK a Ping */
@@ -4651,7 +4667,7 @@ export interface InviteMetadatum {
4651
4667
  }
4652
4668
  export interface InviteStageInstance {
4653
4669
  /** the members speaking in the Stage */
4654
- readonly members: GuildMember[]
4670
+ readonly members: Array<GuildMember>
4655
4671
  /** the number of users in the Stage */
4656
4672
  readonly participant_count: number
4657
4673
  /** the number of users speaking in the Stage */
@@ -4673,9 +4689,9 @@ export const enum KeywordPresetType {
4673
4689
  }
4674
4690
  export interface ListActiveGuildThreadResponse {
4675
4691
  /** the active threads */
4676
- readonly threads: Channel[]
4692
+ readonly threads: Array<Channel>
4677
4693
  /** a thread member object for each returned thread the current user has joined */
4678
- readonly members: ThreadMember[]
4694
+ readonly members: Array<ThreadMember>
4679
4695
  }
4680
4696
  export interface ListGuildMemberParams {
4681
4697
  /** max number of members to return (1-1000) */
@@ -4691,9 +4707,9 @@ export interface ListJoinedPrivateArchivedThreadParams {
4691
4707
  }
4692
4708
  export interface ListJoinedPrivateArchivedThreadResponse {
4693
4709
  /** the private, archived threads the current user has joined */
4694
- readonly threads: Channel[]
4710
+ readonly threads: Array<Channel>
4695
4711
  /** a thread member object for each returned thread the current user has joined */
4696
- readonly members: ThreadMember[]
4712
+ readonly members: Array<ThreadMember>
4697
4713
  /** whether there are potentially additional threads that could be returned on a subsequent call */
4698
4714
  readonly has_more: boolean
4699
4715
  }
@@ -4705,9 +4721,9 @@ export interface ListPrivateArchivedThreadParams {
4705
4721
  }
4706
4722
  export interface ListPrivateArchivedThreadResponse {
4707
4723
  /** the private, archived threads */
4708
- readonly threads: Channel[]
4724
+ readonly threads: Array<Channel>
4709
4725
  /** a thread member object for each returned thread the current user has joined */
4710
- readonly members: ThreadMember[]
4726
+ readonly members: Array<ThreadMember>
4711
4727
  /** whether there are potentially additional threads that could be returned on a subsequent call */
4712
4728
  readonly has_more: boolean
4713
4729
  }
@@ -4719,9 +4735,9 @@ export interface ListPublicArchivedThreadParams {
4719
4735
  }
4720
4736
  export interface ListPublicArchivedThreadResponse {
4721
4737
  /** the public, archived threads */
4722
- readonly threads: Channel[]
4738
+ readonly threads: Array<Channel>
4723
4739
  /** a thread member object for each returned thread the current user has joined */
4724
- readonly members: ThreadMember[]
4740
+ readonly members: Array<ThreadMember>
4725
4741
  /** whether there are potentially additional threads that could be returned on a subsequent call */
4726
4742
  readonly has_more: boolean
4727
4743
  }
@@ -4821,17 +4837,17 @@ export interface Message {
4821
4837
  /** whether this message mentions everyone */
4822
4838
  readonly mention_everyone: boolean
4823
4839
  /** users specifically mentioned in the message */
4824
- readonly mentions: User[]
4840
+ readonly mentions: Array<User>
4825
4841
  /** roles specifically mentioned in this message */
4826
- readonly mention_roles: Snowflake[]
4842
+ readonly mention_roles: Array<Snowflake>
4827
4843
  /** channels specifically mentioned in this message */
4828
- readonly mention_channels?: ChannelMention[]
4844
+ readonly mention_channels?: Array<ChannelMention>
4829
4845
  /** any attached files */
4830
- readonly attachments: Attachment[]
4846
+ readonly attachments: Array<Attachment>
4831
4847
  /** any embedded content */
4832
- readonly embeds: Embed[]
4848
+ readonly embeds: Array<Embed>
4833
4849
  /** reactions to the message */
4834
- readonly reactions?: Reaction[]
4850
+ readonly reactions?: Array<Reaction>
4835
4851
  /** used for validating a message was sent */
4836
4852
  readonly nonce?: string
4837
4853
  /** whether this message is pinned */
@@ -4857,11 +4873,11 @@ export interface Message {
4857
4873
  /** the thread that was started from this message, includes thread member object */
4858
4874
  readonly thread?: Channel
4859
4875
  /** sent if the message contains components like buttons, action rows, or other interactive components */
4860
- readonly components?: Component[]
4876
+ readonly components?: Array<Component>
4861
4877
  /** sent if the message contains stickers */
4862
- readonly sticker_items?: StickerItem[]
4878
+ readonly sticker_items?: Array<StickerItem>
4863
4879
  /** Deprecated the stickers sent with the message */
4864
- readonly stickers?: Sticker[]
4880
+ readonly stickers?: Array<Sticker>
4865
4881
  /** A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread, it can be used to estimate the relative position of the message in a thread in company with total_message_sent on parent thread */
4866
4882
  readonly position?: number
4867
4883
  /** data of the role subscription purchase or renewal that prompted this ROLE_SUBSCRIPTION_PURCHASE message */
@@ -4885,7 +4901,7 @@ export interface MessageComponentDatum {
4885
4901
  /** the type of the component */
4886
4902
  readonly component_type: ComponentType
4887
4903
  /** values the user selected in a select menu component */
4888
- readonly values?: SelectOption[]
4904
+ readonly values?: Array<SelectOption>
4889
4905
  }
4890
4906
  export type MessageCreateEvent = Message & MessageCreateExtra
4891
4907
  export interface MessageCreateExtra {
@@ -4894,11 +4910,11 @@ export interface MessageCreateExtra {
4894
4910
  /** Member properties for this message's author. Missing for ephemeral messages and messages from webhooks */
4895
4911
  readonly member?: GuildMember
4896
4912
  /** Users specifically mentioned in the message */
4897
- readonly mentions: User[]
4913
+ readonly mentions: Array<User>
4898
4914
  }
4899
4915
  export interface MessageDeleteBulkEvent {
4900
4916
  /** IDs of the messages */
4901
- readonly ids: Snowflake[]
4917
+ readonly ids: Array<Snowflake>
4902
4918
  /** ID of the channel */
4903
4919
  readonly channel_id: Snowflake
4904
4920
  /** ID of the guild */
@@ -5048,7 +5064,7 @@ export interface ModalSubmitDatum {
5048
5064
  /** the custom_id of the modal */
5049
5065
  readonly custom_id: string
5050
5066
  /** the values submitted by the user */
5051
- readonly components: Component[]
5067
+ readonly components: Array<Component>
5052
5068
  }
5053
5069
  export interface ModifyAutoModerationRuleParams {
5054
5070
  /** the rule name */
@@ -5058,13 +5074,13 @@ export interface ModifyAutoModerationRuleParams {
5058
5074
  /** the trigger metadata */
5059
5075
  readonly trigger_metadata?: TriggerMetadatum
5060
5076
  /** the actions which will execute when the rule is triggered */
5061
- readonly actions: AutoModerationAction[]
5077
+ readonly actions: Array<AutoModerationAction>
5062
5078
  /** whether the rule is enabled */
5063
5079
  readonly enabled: boolean
5064
5080
  /** the role ids that should not be affected by the rule (Maximum of 20) */
5065
- readonly exempt_roles: Snowflake[]
5081
+ readonly exempt_roles: Array<Snowflake>
5066
5082
  /** the channel ids that should not be affected by the rule (Maximum of 50) */
5067
- readonly exempt_channels: Snowflake[]
5083
+ readonly exempt_channels: Array<Snowflake>
5068
5084
  }
5069
5085
  export interface ModifyChannelGroupDmParams {
5070
5086
  /** 1-100 character channel name */
@@ -5090,7 +5106,7 @@ export interface ModifyChannelGuildChannelParams {
5090
5106
  /** the user limit of the voice or stage channel, max 99 for voice channels and 10,000 for stage channels (0 refers to no limit) */
5091
5107
  readonly user_limit?: number | null
5092
5108
  /** channel or category-specific permissions */
5093
- readonly permission_overwrites?: Overwrite[] | null
5109
+ readonly permission_overwrites?: Array<Overwrite> | null
5094
5110
  /** id of the new parent category for a channel */
5095
5111
  readonly parent_id?: Snowflake | null
5096
5112
  /** channel voice region id, automatic when set to null */
@@ -5102,7 +5118,7 @@ export interface ModifyChannelGuildChannelParams {
5102
5118
  /** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported. */
5103
5119
  readonly flags?: number
5104
5120
  /** the set of tags that can be used in a GUILD_FORUM channel; limited to 20 */
5105
- readonly available_tags?: ForumTag[]
5121
+ readonly available_tags?: Array<ForumTag>
5106
5122
  /** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
5107
5123
  readonly default_reaction_emoji?: DefaultReaction | null
5108
5124
  /** the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. */
@@ -5132,7 +5148,7 @@ export interface ModifyChannelThreadParams {
5132
5148
  /** channel flags combined as a bitfield; PINNED can only be set for threads in forum channels */
5133
5149
  readonly flags?: number
5134
5150
  /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel; limited to 5 */
5135
- readonly applied_tags?: Snowflake[]
5151
+ readonly applied_tags?: Array<Snowflake>
5136
5152
  }
5137
5153
  export interface ModifyCurrentMemberParams {
5138
5154
  /** value to set user's nickname to */
@@ -5170,13 +5186,13 @@ export interface ModifyGuildEmojiParams {
5170
5186
  /** name of the emoji */
5171
5187
  readonly name: string
5172
5188
  /** roles allowed to use this emoji */
5173
- readonly roles?: Snowflake[] | null
5189
+ readonly roles?: Array<Snowflake> | null
5174
5190
  }
5175
5191
  export interface ModifyGuildMemberParams {
5176
5192
  /** value to set user's nickname to */
5177
5193
  readonly nick: string
5178
5194
  /** array of role ids the member is assigned */
5179
- readonly roles: Snowflake[]
5195
+ readonly roles: Array<Snowflake>
5180
5196
  /** whether the user is muted in voice channels. Will throw a 400 error if the user is not in a voice channel */
5181
5197
  readonly mute: boolean
5182
5198
  /** whether the user is deafened in voice channels. Will throw a 400 error if the user is not in a voice channel */
@@ -5194,9 +5210,9 @@ export interface ModifyGuildMfaLevelParams {
5194
5210
  }
5195
5211
  export interface ModifyGuildOnboardingParams {
5196
5212
  /** Prompts shown during onboarding and in customize community */
5197
- readonly prompts: OnboardingPrompt[]
5213
+ readonly prompts: Array<OnboardingPrompt>
5198
5214
  /** Channel IDs that members get opted into automatically */
5199
- readonly default_channel_ids: Snowflake[]
5215
+ readonly default_channel_ids: Array<Snowflake>
5200
5216
  /** Whether onboarding is enabled in the guild */
5201
5217
  readonly enabled: boolean
5202
5218
  /** Current mode of onboarding */
@@ -5238,7 +5254,7 @@ export interface ModifyGuildParams {
5238
5254
  /** the preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" */
5239
5255
  readonly preferred_locale?: string | null
5240
5256
  /** enabled guild features */
5241
- readonly features: GuildFeature[]
5257
+ readonly features: Array<GuildFeature>
5242
5258
  /** the description for the guild */
5243
5259
  readonly description?: string | null
5244
5260
  /** whether the guild's boost progress bar should be enabled */
@@ -5308,7 +5324,7 @@ export interface ModifyGuildWelcomeScreenParams {
5308
5324
  /** whether the welcome screen is enabled */
5309
5325
  readonly enabled: boolean
5310
5326
  /** channels linked in the welcome screen and their display options */
5311
- readonly welcome_channels: WelcomeScreenChannel[]
5327
+ readonly welcome_channels: Array<WelcomeScreenChannel>
5312
5328
  /** the server description to show in the welcome screen */
5313
5329
  readonly description: string
5314
5330
  }
@@ -5408,7 +5424,7 @@ export interface OnboardingPrompt {
5408
5424
  /** Type of prompt */
5409
5425
  readonly type: PromptType
5410
5426
  /** Options available within the prompt */
5411
- readonly options: PromptOption[]
5427
+ readonly options: Array<PromptOption>
5412
5428
  /** Title of the prompt */
5413
5429
  readonly title: string
5414
5430
  /** Indicates whether users are limited to selecting one option for the prompt */
@@ -5544,7 +5560,7 @@ export interface PresenceUpdateEvent {
5544
5560
  /** Either "idle", "dnd", "online", or "offline" */
5545
5561
  readonly status: string
5546
5562
  /** User's current activities */
5547
- readonly activities: Activity[]
5563
+ readonly activities: Array<Activity>
5548
5564
  /** User's platform-dependent status */
5549
5565
  readonly client_status: ClientStatus
5550
5566
  }
@@ -5558,9 +5574,9 @@ export interface PromptOption {
5558
5574
  /** ID of the prompt option */
5559
5575
  readonly id: Snowflake
5560
5576
  /** IDs for channels a member is added to when the option is selected */
5561
- readonly channel_ids: Snowflake[]
5577
+ readonly channel_ids: Array<Snowflake>
5562
5578
  /** IDs for roles assigned to a member when the option is selected */
5563
- readonly role_ids: Snowflake[]
5579
+ readonly role_ids: Array<Snowflake>
5564
5580
  /** Emoji of the option */
5565
5581
  readonly emoji: Emoji
5566
5582
  /** Title of the option */
@@ -5586,13 +5602,13 @@ export interface ReadyEvent {
5586
5602
  /** Information about the user including email */
5587
5603
  readonly user: User
5588
5604
  /** Guilds the user is in */
5589
- readonly guilds: UnavailableGuild[]
5605
+ readonly guilds: Array<UnavailableGuild>
5590
5606
  /** Used for resuming connections */
5591
5607
  readonly session_id: string
5592
5608
  /** Gateway URL for resuming connections */
5593
5609
  readonly resume_gateway_url: string
5594
5610
  /** Shard information associated with this session, if sent when identifying */
5595
- readonly shard?: number[]
5611
+ readonly shard?: Array<number>
5596
5612
  /** Contains id and flags */
5597
5613
  readonly application: Application
5598
5614
  }
@@ -5738,7 +5754,7 @@ export interface RequestGuildMember {
5738
5754
  /** used to specify if we want the presences of the matched members */
5739
5755
  readonly presences?: boolean
5740
5756
  /** used to specify which users you wish to fetch */
5741
- readonly user_ids?: Snowflake[]
5757
+ readonly user_ids?: Array<Snowflake>
5742
5758
  /** nonce to identify the Guild Members Chunk response */
5743
5759
  readonly nonce?: string
5744
5760
  }
@@ -5760,7 +5776,7 @@ export interface Response {
5760
5776
  /** the current application */
5761
5777
  readonly application: Application
5762
5778
  /** the scopes the user has authorized the application for */
5763
- readonly scopes: string[]
5779
+ readonly scopes: Array<string>
5764
5780
  /** when the access token expires */
5765
5781
  readonly expires: string
5766
5782
  /** the user who has authorized, if the user has authorized with the identify scope */
@@ -5768,9 +5784,9 @@ export interface Response {
5768
5784
  }
5769
5785
  export interface ResponseBody {
5770
5786
  /** the public, archived threads */
5771
- readonly threads: Channel[]
5787
+ readonly threads: Array<Channel>
5772
5788
  /** a thread member object for each returned thread the current user has joined */
5773
- readonly members: ThreadMember[]
5789
+ readonly members: Array<ThreadMember>
5774
5790
  /** whether there are potentially additional threads that could be returned on a subsequent call */
5775
5791
  readonly has_more: boolean
5776
5792
  }
@@ -5855,9 +5871,9 @@ export interface SelectMenu {
5855
5871
  /** ID for the select menu; max 100 characters */
5856
5872
  readonly custom_id: string
5857
5873
  /** Specified choices in a select menu (only required and available for string selects (type 3); max 25 */
5858
- readonly options?: SelectOption[]
5874
+ readonly options?: Array<SelectOption>
5859
5875
  /** List of channel types to include in the channel select component (type 8) */
5860
- readonly channel_types?: ChannelType[]
5876
+ readonly channel_types?: Array<ChannelType>
5861
5877
  /** Placeholder text if nothing is selected; max 150 characters */
5862
5878
  readonly placeholder?: string
5863
5879
  /** Minimum number of items that must be chosen (defaults to 1); min 0, max 25 */
@@ -5942,19 +5958,19 @@ export interface StartThreadInForumChannelForumThreadMessageParams {
5942
5958
  /** Message contents (up to 2000 characters) */
5943
5959
  readonly content?: string
5944
5960
  /** Up to 10 rich embeds (up to 6000 characters) */
5945
- readonly embeds?: Embed[]
5961
+ readonly embeds?: Array<Embed>
5946
5962
  /** Allowed mentions for the message */
5947
5963
  readonly allowed_mentions?: AllowedMention
5948
5964
  /** Components to include with the message */
5949
- readonly components?: Component[]
5965
+ readonly components?: Array<Component>
5950
5966
  /** IDs of up to 3 stickers in the server to send in the message */
5951
- readonly sticker_ids?: Snowflake[]
5967
+ readonly sticker_ids?: Array<Snowflake>
5952
5968
  /** Contents of the file being sent. See Uploading Files */
5953
5969
  readonly files: string
5954
5970
  /** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
5955
5971
  readonly payload_json?: string
5956
5972
  /** Attachment objects with filename and description. See Uploading Files */
5957
- readonly attachments?: Attachment[]
5973
+ readonly attachments?: Array<Attachment>
5958
5974
  /** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
5959
5975
  readonly flags?: number
5960
5976
  }
@@ -5968,7 +5984,7 @@ export interface StartThreadInForumChannelParams {
5968
5984
  /** contents of the first message in the forum thread */
5969
5985
  readonly message: StartThreadInForumChannelForumThreadMessageParams
5970
5986
  /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
5971
- readonly applied_tags?: Snowflake[]
5987
+ readonly applied_tags?: Array<Snowflake>
5972
5988
  }
5973
5989
  export interface StartThreadWithoutMessageParams {
5974
5990
  /** 1-100 character channel name */
@@ -6038,7 +6054,7 @@ export interface StickerPack {
6038
6054
  /** id of the sticker pack */
6039
6055
  readonly id: Snowflake
6040
6056
  /** the stickers in the pack */
6041
- readonly stickers: Sticker[]
6057
+ readonly stickers: Array<Sticker>
6042
6058
  /** name of the sticker pack */
6043
6059
  readonly name: string
6044
6060
  /** id of the pack's SKU */
@@ -6076,7 +6092,7 @@ export interface Team {
6076
6092
  /** the unique id of the team */
6077
6093
  readonly id: Snowflake
6078
6094
  /** the members of the team */
6079
- readonly members: TeamMember[]
6095
+ readonly members: Array<TeamMember>
6080
6096
  /** the name of the team */
6081
6097
  readonly name: string
6082
6098
  /** the user id of the current team owner */
@@ -6086,7 +6102,7 @@ export interface TeamMember {
6086
6102
  /** the user's membership state on the team */
6087
6103
  readonly membership_state: MembershipState
6088
6104
  /** will always be ["*"] */
6089
- readonly permissions: string[]
6105
+ readonly permissions: Array<string>
6090
6106
  /** the id of the parent team of which they are a member */
6091
6107
  readonly team_id: Snowflake
6092
6108
  /** the avatar, discriminator, id, and username of the user */
@@ -6124,11 +6140,11 @@ export interface ThreadListSyncEvent {
6124
6140
  /** ID of the guild */
6125
6141
  readonly guild_id: Snowflake
6126
6142
  /** Parent channel IDs whose threads are being synced. If omitted, then threads were synced for the entire guild. This array may contain channel_ids that have no active threads as well, so you know to clear that data. */
6127
- readonly channel_ids?: Snowflake[]
6143
+ readonly channel_ids?: Array<Snowflake>
6128
6144
  /** All active threads in the given channels that the current user can access */
6129
- readonly threads: Channel[]
6145
+ readonly threads: Array<Channel>
6130
6146
  /** All thread member objects from the synced threads for the current user, indicating which threads the current user has been added to */
6131
- readonly members: ThreadMember[]
6147
+ readonly members: Array<ThreadMember>
6132
6148
  }
6133
6149
  export interface ThreadMember {
6134
6150
  /** ID of the thread */
@@ -6150,9 +6166,9 @@ export interface ThreadMembersUpdateEvent {
6150
6166
  /** Approximate number of members in the thread, capped at 50 */
6151
6167
  readonly member_count: number
6152
6168
  /** Users who were added to the thread */
6153
- readonly added_members?: ThreadMember[]
6169
+ readonly added_members?: Array<ThreadMember>
6154
6170
  /** ID of the users who were removed from the thread */
6155
- readonly removed_member_ids?: Snowflake[]
6171
+ readonly removed_member_ids?: Array<Snowflake>
6156
6172
  }
6157
6173
  export type ThreadMemberUpdateEvent = ThreadMember
6158
6174
  export interface ThreadMemberUpdateEventExtra {
@@ -6176,13 +6192,13 @@ export interface ThreadMetadatum {
6176
6192
  export type ThreadUpdateEvent = Channel
6177
6193
  export interface TriggerMetadatum {
6178
6194
  /** KEYWORD */
6179
- readonly keyword_filter: string[]
6195
+ readonly keyword_filter: Array<string>
6180
6196
  /** KEYWORD */
6181
- readonly regex_patterns: string[]
6197
+ readonly regex_patterns: Array<string>
6182
6198
  /** KEYWORD_PRESET */
6183
- readonly presets: KeywordPresetType[]
6199
+ readonly presets: Array<KeywordPresetType>
6184
6200
  /** KEYWORD, KEYWORD_PRESET */
6185
- readonly allow_list: string[]
6201
+ readonly allow_list: Array<string>
6186
6202
  /** MENTION_SPAM */
6187
6203
  readonly mention_total_limit: number
6188
6204
  /** MENTION_SPAM */
@@ -6220,7 +6236,7 @@ export interface UpdatePresence {
6220
6236
  /** Unix time (in milliseconds) of when the client went idle, or null if the client is not idle */
6221
6237
  readonly since?: number | null
6222
6238
  /** User's activities */
6223
- readonly activities: Activity[]
6239
+ readonly activities: Array<Activity>
6224
6240
  /** User's new status */
6225
6241
  readonly status: StatusType
6226
6242
  /** Whether or not the client is afk */
@@ -6454,7 +6470,7 @@ export interface WelcomeScreen {
6454
6470
  /** the server description shown in the welcome screen */
6455
6471
  readonly description?: string | null
6456
6472
  /** the channels shown in the welcome screen, up to 5 */
6457
- readonly welcome_channels: WelcomeScreenChannel[]
6473
+ readonly welcome_channels: Array<WelcomeScreenChannel>
6458
6474
  }
6459
6475
  export interface WelcomeScreenChannel {
6460
6476
  /** the channel's id */