dfx 0.58.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.
- package/Cache/driver.d.ts +2 -2
- package/Cache/driver.d.ts.map +1 -1
- package/DiscordConfig.d.ts +3 -3
- package/DiscordConfig.d.ts.map +1 -1
- package/DiscordConfig.js +2 -2
- package/DiscordConfig.js.map +1 -1
- package/DiscordGateway/DiscordWS.d.ts +3 -3
- package/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/DiscordGateway/DiscordWS.js +3 -3
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Shard/invalidSession.d.ts +2 -2
- package/DiscordGateway/Shard/invalidSession.d.ts.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts +1 -1
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/WS.d.ts +0 -1
- package/DiscordGateway/WS.d.ts.map +1 -1
- package/DiscordGateway.d.ts +4 -4
- package/DiscordGateway.d.ts.map +1 -1
- package/Helpers/flags.d.ts +2 -2
- package/Helpers/flags.d.ts.map +1 -1
- package/Helpers/flags.js.map +1 -1
- package/Helpers/interactions.d.ts +4 -4
- package/Helpers/interactions.d.ts.map +1 -1
- package/Helpers/interactions.js +2 -2
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/members.d.ts +2 -2
- package/Helpers/members.d.ts.map +1 -1
- package/Helpers/members.js.map +1 -1
- package/Helpers/permissions.d.ts +4 -4
- package/Helpers/permissions.d.ts.map +1 -1
- package/Helpers/permissions.js.map +1 -1
- package/Helpers/ui.d.ts +5 -4
- package/Helpers/ui.d.ts.map +1 -1
- package/Helpers/ui.js.map +1 -1
- package/Interactions/context.d.ts +5 -6
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts +8 -8
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/handlers.d.ts +2 -2
- package/Interactions/handlers.d.ts.map +1 -1
- package/Interactions/handlers.js +1 -1
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/utils.d.ts +2 -2
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/webhook.d.ts +10 -10
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js +9 -9
- package/Interactions/webhook.js.map +1 -1
- package/Log.d.ts +2 -2
- package/Log.d.ts.map +1 -1
- package/Log.js.map +1 -1
- package/RateLimit/memory.d.ts +1 -1
- package/RateLimit/memory.d.ts.map +1 -1
- package/RateLimit/utils.d.ts +1 -1
- package/RateLimit/utils.d.ts.map +1 -1
- package/RateLimit/utils.js.map +1 -1
- package/RateLimit.d.ts +1 -1
- package/RateLimit.d.ts.map +1 -1
- package/mjs/DiscordConfig.mjs +2 -2
- package/mjs/DiscordConfig.mjs.map +1 -1
- package/mjs/DiscordGateway/DiscordWS.mjs +3 -3
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
- package/mjs/Helpers/flags.mjs.map +1 -1
- package/mjs/Helpers/interactions.mjs +2 -2
- package/mjs/Helpers/interactions.mjs.map +1 -1
- package/mjs/Helpers/members.mjs.map +1 -1
- package/mjs/Helpers/permissions.mjs.map +1 -1
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/Interactions/context.mjs.map +1 -1
- package/mjs/Interactions/handlers.mjs +1 -1
- package/mjs/Interactions/handlers.mjs.map +1 -1
- package/mjs/Interactions/webhook.mjs +9 -9
- package/mjs/Interactions/webhook.mjs.map +1 -1
- package/mjs/Log.mjs.map +1 -1
- package/mjs/RateLimit/utils.mjs.map +1 -1
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +2 -2
- package/src/Cache/driver.ts +2 -2
- package/src/DiscordConfig.ts +4 -4
- package/src/DiscordGateway/DiscordWS.ts +4 -4
- package/src/DiscordGateway/Shard/invalidSession.ts +2 -2
- package/src/DiscordGateway/Shard/utils.ts +1 -1
- package/src/DiscordGateway.ts +4 -4
- package/src/Helpers/flags.ts +6 -6
- package/src/Helpers/interactions.ts +10 -10
- package/src/Helpers/members.ts +6 -5
- package/src/Helpers/permissions.ts +5 -5
- package/src/Helpers/ui.ts +5 -7
- package/src/Interactions/context.ts +4 -5
- package/src/Interactions/definitions.ts +5 -5
- package/src/Interactions/handlers.ts +3 -3
- package/src/Interactions/utils.ts +2 -2
- package/src/Interactions/webhook.ts +19 -17
- package/src/Log.ts +2 -2
- package/src/RateLimit/memory.ts +1 -1
- package/src/RateLimit/utils.ts +2 -1
- package/src/RateLimit.ts +1 -1
- package/src/types.ts +218 -202
- package/src/version.ts +1 -1
- package/types.d.ts +202 -202
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestResponse } from "dfx/DiscordREST/types";
|
|
1
|
+
import type { RestResponse } from "dfx/DiscordREST/types";
|
|
2
2
|
export interface ActionMetadatum {
|
|
3
3
|
/** SEND_ALERT_MESSAGE */
|
|
4
4
|
readonly channel_id: Snowflake;
|
|
@@ -11,7 +11,7 @@ export interface ActionRow {
|
|
|
11
11
|
/** component type */
|
|
12
12
|
readonly type: ComponentType;
|
|
13
13
|
/** a list of child components */
|
|
14
|
-
readonly components: Component
|
|
14
|
+
readonly components: Array<Component>;
|
|
15
15
|
}
|
|
16
16
|
export declare const enum ActionType {
|
|
17
17
|
/** 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 +51,7 @@ export interface Activity {
|
|
|
51
51
|
/** Activity flags ORd together, describes what the payload includes */
|
|
52
52
|
readonly flags?: number;
|
|
53
53
|
/** Custom buttons shown in the Rich Presence (max 2) */
|
|
54
|
-
readonly buttons?: ActivityButton
|
|
54
|
+
readonly buttons?: Array<ActivityButton>;
|
|
55
55
|
}
|
|
56
56
|
export interface ActivityAsset {
|
|
57
57
|
/** See Activity Asset Image */
|
|
@@ -92,7 +92,7 @@ export interface ActivityParty {
|
|
|
92
92
|
/** ID of the party */
|
|
93
93
|
readonly id?: string;
|
|
94
94
|
/** Used to show the party's current and maximum size */
|
|
95
|
-
readonly size?: number
|
|
95
|
+
readonly size?: Array<number>;
|
|
96
96
|
}
|
|
97
97
|
export interface ActivitySecret {
|
|
98
98
|
/** Secret for joining a party */
|
|
@@ -122,7 +122,7 @@ export interface AddGuildMemberParams {
|
|
|
122
122
|
/** value to set user's nickname to */
|
|
123
123
|
readonly nick: string;
|
|
124
124
|
/** array of role ids the member is assigned */
|
|
125
|
-
readonly roles: Snowflake
|
|
125
|
+
readonly roles: Array<Snowflake>;
|
|
126
126
|
/** whether the user is muted in voice channels */
|
|
127
127
|
readonly mute: boolean;
|
|
128
128
|
/** whether the user is deafened in voice channels */
|
|
@@ -130,11 +130,11 @@ export interface AddGuildMemberParams {
|
|
|
130
130
|
}
|
|
131
131
|
export interface AllowedMention {
|
|
132
132
|
/** An array of allowed mention types to parse from the content. */
|
|
133
|
-
readonly parse: AllowedMentionType
|
|
133
|
+
readonly parse: Array<AllowedMentionType>;
|
|
134
134
|
/** Array of role_ids to mention (Max size of 100) */
|
|
135
|
-
readonly roles: Snowflake
|
|
135
|
+
readonly roles: Array<Snowflake>;
|
|
136
136
|
/** Array of user_ids to mention (Max size of 100) */
|
|
137
|
-
readonly users: Snowflake
|
|
137
|
+
readonly users: Array<Snowflake>;
|
|
138
138
|
/** For replies, whether to mention the author of the message being replied to (default false) */
|
|
139
139
|
readonly replied_user: boolean;
|
|
140
140
|
}
|
|
@@ -156,7 +156,7 @@ export interface Application {
|
|
|
156
156
|
/** the description of the app */
|
|
157
157
|
readonly description: string;
|
|
158
158
|
/** an array of rpc origin urls, if rpc is enabled */
|
|
159
|
-
readonly rpc_origins?: string
|
|
159
|
+
readonly rpc_origins?: Array<string>;
|
|
160
160
|
/** when false only app owner can join the app's bot to guilds */
|
|
161
161
|
readonly bot_public: boolean;
|
|
162
162
|
/** when true the app's bot will only join upon completion of the full oauth2 code grant flow */
|
|
@@ -188,7 +188,7 @@ export interface Application {
|
|
|
188
188
|
/** an approximate count of the app's guild membership. */
|
|
189
189
|
readonly approximate_guild_count?: number;
|
|
190
190
|
/** up to 5 tags describing the content and functionality of the application */
|
|
191
|
-
readonly tags?: string
|
|
191
|
+
readonly tags?: Array<string>;
|
|
192
192
|
/** settings for the application's default in-app authorization link, if enabled */
|
|
193
193
|
readonly install_params?: InstallParam;
|
|
194
194
|
/** the application's default custom authorization link, if enabled */
|
|
@@ -214,7 +214,7 @@ export interface ApplicationCommand {
|
|
|
214
214
|
/** Localization dictionary for description field. Values follow the same restrictions as description */
|
|
215
215
|
readonly description_localizations?: Locale | null;
|
|
216
216
|
/** Parameters for the command, max of 25 */
|
|
217
|
-
readonly options?: ApplicationCommandOption
|
|
217
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
218
218
|
/** Set of permissions represented as a bit set */
|
|
219
219
|
readonly default_member_permissions?: string | null;
|
|
220
220
|
/** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
|
|
@@ -236,7 +236,7 @@ export interface ApplicationCommandDatum {
|
|
|
236
236
|
/** converted users + roles + channels + attachments */
|
|
237
237
|
readonly resolved?: ResolvedDatum;
|
|
238
238
|
/** the params + values from the user */
|
|
239
|
-
readonly options?: ApplicationCommandInteractionDataOption
|
|
239
|
+
readonly options?: Array<ApplicationCommandInteractionDataOption>;
|
|
240
240
|
/** the id of the guild the command is registered to */
|
|
241
241
|
readonly guild_id?: Snowflake;
|
|
242
242
|
/** id of the user or message targeted by a user or message command */
|
|
@@ -250,7 +250,7 @@ export interface ApplicationCommandInteractionDataOption {
|
|
|
250
250
|
/** Value of the option resulting from user input */
|
|
251
251
|
readonly value?: string;
|
|
252
252
|
/** Present if this option is a group or subcommand */
|
|
253
|
-
readonly options?: ApplicationCommandInteractionDataOption
|
|
253
|
+
readonly options?: Array<ApplicationCommandInteractionDataOption>;
|
|
254
254
|
/** true if this option is the currently focused option for autocomplete */
|
|
255
255
|
readonly focused?: boolean;
|
|
256
256
|
}
|
|
@@ -268,11 +268,11 @@ export interface ApplicationCommandOption {
|
|
|
268
268
|
/** If the parameter is required or optional--default false */
|
|
269
269
|
readonly required?: boolean;
|
|
270
270
|
/** Choices for STRING, INTEGER, and NUMBER types for the user to pick from, max 25 */
|
|
271
|
-
readonly choices?: ApplicationCommandOptionChoice
|
|
271
|
+
readonly choices?: Array<ApplicationCommandOptionChoice>;
|
|
272
272
|
/** If the option is a subcommand or subcommand group type, these nested options will be the parameters */
|
|
273
|
-
readonly options?: ApplicationCommandOption
|
|
273
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
274
274
|
/** If the option is a channel type, the channels shown will be restricted to these types */
|
|
275
|
-
readonly channel_types?: ChannelType
|
|
275
|
+
readonly channel_types?: Array<ChannelType>;
|
|
276
276
|
/** If the option is an INTEGER or NUMBER type, the minimum value permitted */
|
|
277
277
|
readonly min_value?: number;
|
|
278
278
|
/** If the option is an INTEGER or NUMBER type, the maximum value permitted */
|
|
@@ -447,21 +447,21 @@ export interface AuditEntryInfo {
|
|
|
447
447
|
}
|
|
448
448
|
export interface AuditLog {
|
|
449
449
|
/** List of application commands referenced in the audit log */
|
|
450
|
-
readonly application_commands: ApplicationCommand
|
|
450
|
+
readonly application_commands: Array<ApplicationCommand>;
|
|
451
451
|
/** List of audit log entries, sorted from most to least recent */
|
|
452
|
-
readonly audit_log_entries: AuditLogEntry
|
|
452
|
+
readonly audit_log_entries: Array<AuditLogEntry>;
|
|
453
453
|
/** List of auto moderation rules referenced in the audit log */
|
|
454
|
-
readonly auto_moderation_rules: AutoModerationRule
|
|
454
|
+
readonly auto_moderation_rules: Array<AutoModerationRule>;
|
|
455
455
|
/** List of guild scheduled events referenced in the audit log */
|
|
456
|
-
readonly guild_scheduled_events: GuildScheduledEvent
|
|
456
|
+
readonly guild_scheduled_events: Array<GuildScheduledEvent>;
|
|
457
457
|
/** List of partial integration objects */
|
|
458
|
-
readonly integrations: Integration
|
|
458
|
+
readonly integrations: Array<Integration>;
|
|
459
459
|
/** List of threads referenced in the audit log* */
|
|
460
|
-
readonly threads: Channel
|
|
460
|
+
readonly threads: Array<Channel>;
|
|
461
461
|
/** List of users referenced in the audit log */
|
|
462
|
-
readonly users: User
|
|
462
|
+
readonly users: Array<User>;
|
|
463
463
|
/** List of webhooks referenced in the audit log */
|
|
464
|
-
readonly webhooks: Webhook
|
|
464
|
+
readonly webhooks: Array<Webhook>;
|
|
465
465
|
}
|
|
466
466
|
export interface AuditLogChange {
|
|
467
467
|
/** New value of the key */
|
|
@@ -475,7 +475,7 @@ export interface AuditLogEntry {
|
|
|
475
475
|
/** ID of the affected entity (webhook, user, role, etc.) */
|
|
476
476
|
readonly target_id?: string | null;
|
|
477
477
|
/** Changes made to the target_id */
|
|
478
|
-
readonly changes?: AuditLogChange
|
|
478
|
+
readonly changes?: Array<AuditLogChange>;
|
|
479
479
|
/** User or app that made the changes */
|
|
480
480
|
readonly user_id?: Snowflake | null;
|
|
481
481
|
/** ID of the entry */
|
|
@@ -647,13 +647,13 @@ export interface AutoModerationRule {
|
|
|
647
647
|
/** the rule trigger metadata */
|
|
648
648
|
readonly trigger_metadata: TriggerMetadatum;
|
|
649
649
|
/** the actions which will execute when the rule is triggered */
|
|
650
|
-
readonly actions: AutoModerationAction
|
|
650
|
+
readonly actions: Array<AutoModerationAction>;
|
|
651
651
|
/** whether the rule is enabled */
|
|
652
652
|
readonly enabled: boolean;
|
|
653
653
|
/** the role ids that should not be affected by the rule (Maximum of 20) */
|
|
654
|
-
readonly exempt_roles: Snowflake
|
|
654
|
+
readonly exempt_roles: Array<Snowflake>;
|
|
655
655
|
/** the channel ids that should not be affected by the rule (Maximum of 50) */
|
|
656
|
-
readonly exempt_channels: Snowflake
|
|
656
|
+
readonly exempt_channels: Array<Snowflake>;
|
|
657
657
|
}
|
|
658
658
|
export type AutoModerationRuleCreateEvent = AutoModerationRule;
|
|
659
659
|
export type AutoModerationRuleDeleteEvent = AutoModerationRule;
|
|
@@ -670,13 +670,13 @@ export interface BeginGuildPruneParams {
|
|
|
670
670
|
/** whether pruned is returned, discouraged for large guilds */
|
|
671
671
|
readonly compute_prune_count: boolean;
|
|
672
672
|
/** role(s) to include */
|
|
673
|
-
readonly include_roles: Snowflake
|
|
673
|
+
readonly include_roles: Array<Snowflake>;
|
|
674
674
|
/** reason for the prune (deprecated) */
|
|
675
675
|
readonly reason?: string;
|
|
676
676
|
}
|
|
677
677
|
export interface BulkDeleteMessageParams {
|
|
678
678
|
/** an array of message ids to delete (2-100) */
|
|
679
|
-
readonly messages: Snowflake
|
|
679
|
+
readonly messages: Array<Snowflake>;
|
|
680
680
|
}
|
|
681
681
|
export interface BulkOverwriteGuildApplicationCommandParams {
|
|
682
682
|
/** ID of the command, if known */
|
|
@@ -690,7 +690,7 @@ export interface BulkOverwriteGuildApplicationCommandParams {
|
|
|
690
690
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
691
691
|
readonly description_localizations?: Locale | null;
|
|
692
692
|
/** Parameters for the command */
|
|
693
|
-
readonly options?: ApplicationCommandOption
|
|
693
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
694
694
|
/** Set of permissions represented as a bit set */
|
|
695
695
|
readonly default_member_permissions?: string | null;
|
|
696
696
|
/** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
|
|
@@ -735,7 +735,7 @@ export interface Channel {
|
|
|
735
735
|
/** sorting position of the channel */
|
|
736
736
|
readonly position?: number;
|
|
737
737
|
/** explicit permission overwrites for members and roles */
|
|
738
|
-
readonly permission_overwrites?: Overwrite
|
|
738
|
+
readonly permission_overwrites?: Array<Overwrite>;
|
|
739
739
|
/** the name of the channel (1-100 characters) */
|
|
740
740
|
readonly name?: string | null;
|
|
741
741
|
/** the channel topic (0-4096 characters for GUILD_FORUM channels, 0-1024 characters for all others) */
|
|
@@ -751,7 +751,7 @@ export interface Channel {
|
|
|
751
751
|
/** 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 */
|
|
752
752
|
readonly rate_limit_per_user?: number;
|
|
753
753
|
/** the recipients of the DM */
|
|
754
|
-
readonly recipients?: User
|
|
754
|
+
readonly recipients?: Array<User>;
|
|
755
755
|
/** icon hash of the group DM */
|
|
756
756
|
readonly icon?: string | null;
|
|
757
757
|
/** id of the creator of the group DM or thread */
|
|
@@ -785,9 +785,9 @@ export interface Channel {
|
|
|
785
785
|
/** 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 */
|
|
786
786
|
readonly total_message_sent?: number;
|
|
787
787
|
/** the set of tags that can be used in a GUILD_FORUM channel */
|
|
788
|
-
readonly available_tags?: ForumTag
|
|
788
|
+
readonly available_tags?: Array<ForumTag>;
|
|
789
789
|
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
|
|
790
|
-
readonly applied_tags?: Snowflake
|
|
790
|
+
readonly applied_tags?: Array<Snowflake>;
|
|
791
791
|
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
|
|
792
792
|
readonly default_reaction_emoji?: DefaultReaction | null;
|
|
793
793
|
/** 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. */
|
|
@@ -887,7 +887,7 @@ export interface Connection {
|
|
|
887
887
|
/** whether the connection is revoked */
|
|
888
888
|
readonly revoked?: boolean;
|
|
889
889
|
/** an array of partial server integrations */
|
|
890
|
-
readonly integrations?: Integration
|
|
890
|
+
readonly integrations?: Array<Integration>;
|
|
891
891
|
/** whether the connection is verified */
|
|
892
892
|
readonly verified: boolean;
|
|
893
893
|
/** whether friend sync is enabled for this connection */
|
|
@@ -909,13 +909,13 @@ export interface CreateAutoModerationRuleParams {
|
|
|
909
909
|
/** the trigger metadata */
|
|
910
910
|
readonly trigger_metadata?: TriggerMetadatum;
|
|
911
911
|
/** the actions which will execute when the rule is triggered */
|
|
912
|
-
readonly actions: AutoModerationAction
|
|
912
|
+
readonly actions: Array<AutoModerationAction>;
|
|
913
913
|
/** whether the rule is enabled (False by default) */
|
|
914
914
|
readonly enabled?: boolean;
|
|
915
915
|
/** the role ids that should not be affected by the rule (Maximum of 20) */
|
|
916
|
-
readonly exempt_roles?: Snowflake
|
|
916
|
+
readonly exempt_roles?: Array<Snowflake>;
|
|
917
917
|
/** the channel ids that should not be affected by the rule (Maximum of 50) */
|
|
918
|
-
readonly exempt_channels?: Snowflake
|
|
918
|
+
readonly exempt_channels?: Array<Snowflake>;
|
|
919
919
|
}
|
|
920
920
|
export interface CreateChannelInviteParams {
|
|
921
921
|
/** duration of invite in seconds before expiry, or 0 for never. between 0 and 604800 (7 days) */
|
|
@@ -947,7 +947,7 @@ export interface CreateGlobalApplicationCommandParams {
|
|
|
947
947
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
948
948
|
readonly description_localizations?: Locale | null;
|
|
949
949
|
/** the parameters for the command */
|
|
950
|
-
readonly options?: ApplicationCommandOption
|
|
950
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
951
951
|
/** Set of permissions represented as a bit set */
|
|
952
952
|
readonly default_member_permissions?: string | null;
|
|
953
953
|
/** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
|
|
@@ -961,7 +961,7 @@ export interface CreateGlobalApplicationCommandParams {
|
|
|
961
961
|
}
|
|
962
962
|
export interface CreateGroupDmParams {
|
|
963
963
|
/** access tokens of users that have granted your app the gdm.join scope */
|
|
964
|
-
readonly access_tokens: string
|
|
964
|
+
readonly access_tokens: Array<string>;
|
|
965
965
|
/** a dictionary of user ids to their respective nicknames */
|
|
966
966
|
readonly nicks: Record<string, string>;
|
|
967
967
|
}
|
|
@@ -975,7 +975,7 @@ export interface CreateGuildApplicationCommandParams {
|
|
|
975
975
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
976
976
|
readonly description_localizations?: Locale | null;
|
|
977
977
|
/** Parameters for the command */
|
|
978
|
-
readonly options?: ApplicationCommandOption
|
|
978
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
979
979
|
/** Set of permissions represented as a bit set */
|
|
980
980
|
readonly default_member_permissions?: string | null;
|
|
981
981
|
/** 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 */
|
|
@@ -1007,7 +1007,7 @@ export interface CreateGuildChannelParams {
|
|
|
1007
1007
|
/** sorting position of the channel */
|
|
1008
1008
|
readonly position: number;
|
|
1009
1009
|
/** the channel's permission overwrites */
|
|
1010
|
-
readonly permission_overwrites: Overwrite
|
|
1010
|
+
readonly permission_overwrites: Array<Overwrite>;
|
|
1011
1011
|
/** id of the parent category for a channel */
|
|
1012
1012
|
readonly parent_id: Snowflake;
|
|
1013
1013
|
/** whether the channel is nsfw */
|
|
@@ -1021,7 +1021,7 @@ export interface CreateGuildChannelParams {
|
|
|
1021
1021
|
/** emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
|
|
1022
1022
|
readonly default_reaction_emoji: DefaultReaction;
|
|
1023
1023
|
/** set of tags that can be used in a GUILD_FORUM channel */
|
|
1024
|
-
readonly available_tags: ForumTag
|
|
1024
|
+
readonly available_tags: Array<ForumTag>;
|
|
1025
1025
|
/** the default sort order type used to order posts in GUILD_FORUM channels */
|
|
1026
1026
|
readonly default_sort_order: SortOrderType;
|
|
1027
1027
|
/** the default forum layout view used to display posts in GUILD_FORUM channels */
|
|
@@ -1033,7 +1033,7 @@ export interface CreateGuildEmojiParams {
|
|
|
1033
1033
|
/** the 128x128 emoji image */
|
|
1034
1034
|
readonly image: string;
|
|
1035
1035
|
/** roles allowed to use this emoji */
|
|
1036
|
-
readonly roles: Snowflake
|
|
1036
|
+
readonly roles: Array<Snowflake>;
|
|
1037
1037
|
}
|
|
1038
1038
|
export interface CreateGuildFromGuildTemplateParams {
|
|
1039
1039
|
/** name of the guild (2-100 characters) */
|
|
@@ -1055,9 +1055,9 @@ export interface CreateGuildParams {
|
|
|
1055
1055
|
/** explicit content filter level */
|
|
1056
1056
|
readonly explicit_content_filter?: ExplicitContentFilterLevel;
|
|
1057
1057
|
/** new guild roles */
|
|
1058
|
-
readonly roles?: Role
|
|
1058
|
+
readonly roles?: Array<Role>;
|
|
1059
1059
|
/** new guild's channels */
|
|
1060
|
-
readonly channels?: Channel
|
|
1060
|
+
readonly channels?: Array<Channel>;
|
|
1061
1061
|
/** id for afk channel */
|
|
1062
1062
|
readonly afk_channel_id?: Snowflake;
|
|
1063
1063
|
/** afk timeout in seconds, can be set to: 60, 300, 900, 1800, 3600 */
|
|
@@ -1127,21 +1127,21 @@ export interface CreateMessageParams {
|
|
|
1127
1127
|
/** true if this is a TTS message */
|
|
1128
1128
|
readonly tts?: boolean;
|
|
1129
1129
|
/** Up to 10 rich embeds (up to 6000 characters) */
|
|
1130
|
-
readonly embeds?: Embed
|
|
1130
|
+
readonly embeds?: Array<Embed>;
|
|
1131
1131
|
/** Allowed mentions for the message */
|
|
1132
1132
|
readonly allowed_mentions?: AllowedMention;
|
|
1133
1133
|
/** Include to make your message a reply */
|
|
1134
1134
|
readonly message_reference?: MessageReference;
|
|
1135
1135
|
/** Components to include with the message */
|
|
1136
|
-
readonly components?: Component
|
|
1136
|
+
readonly components?: Array<Component>;
|
|
1137
1137
|
/** IDs of up to 3 stickers in the server to send in the message */
|
|
1138
|
-
readonly sticker_ids?: Snowflake
|
|
1138
|
+
readonly sticker_ids?: Array<Snowflake>;
|
|
1139
1139
|
/** Contents of the file being sent. See Uploading Files */
|
|
1140
1140
|
readonly files?: string;
|
|
1141
1141
|
/** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
|
|
1142
1142
|
readonly payload_json?: string;
|
|
1143
1143
|
/** Attachment objects with filename and description. See Uploading Files */
|
|
1144
|
-
readonly attachments?: Attachment
|
|
1144
|
+
readonly attachments?: Array<Attachment>;
|
|
1145
1145
|
/** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
|
|
1146
1146
|
readonly flags?: number;
|
|
1147
1147
|
}
|
|
@@ -1180,7 +1180,7 @@ export interface DeleteWebhookMessageParams {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
export interface EditApplicationCommandPermissionParams {
|
|
1182
1182
|
/** Permissions for the command in the guild */
|
|
1183
|
-
readonly permissions: ApplicationCommandPermission
|
|
1183
|
+
readonly permissions: Array<ApplicationCommandPermission>;
|
|
1184
1184
|
}
|
|
1185
1185
|
export interface EditChannelPermissionParams {
|
|
1186
1186
|
/** the bitwise value of all allowed permissions (default "0") */
|
|
@@ -1200,7 +1200,7 @@ export interface EditGlobalApplicationCommandParams {
|
|
|
1200
1200
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
1201
1201
|
readonly description_localizations?: Locale | null;
|
|
1202
1202
|
/** the parameters for the command */
|
|
1203
|
-
readonly options?: ApplicationCommandOption
|
|
1203
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
1204
1204
|
/** Set of permissions represented as a bit set */
|
|
1205
1205
|
readonly default_member_permissions?: string | null;
|
|
1206
1206
|
/** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */
|
|
@@ -1220,7 +1220,7 @@ export interface EditGuildApplicationCommandParams {
|
|
|
1220
1220
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
1221
1221
|
readonly description_localizations?: Locale | null;
|
|
1222
1222
|
/** Parameters for the command */
|
|
1223
|
-
readonly options?: ApplicationCommandOption
|
|
1223
|
+
readonly options?: Array<ApplicationCommandOption>;
|
|
1224
1224
|
/** Set of permissions represented as a bit set */
|
|
1225
1225
|
readonly default_member_permissions?: string | null;
|
|
1226
1226
|
/** 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 */
|
|
@@ -1232,35 +1232,35 @@ export interface EditMessageParams {
|
|
|
1232
1232
|
/** Message contents (up to 2000 characters) */
|
|
1233
1233
|
readonly content: string;
|
|
1234
1234
|
/** Up to 10 rich embeds (up to 6000 characters) */
|
|
1235
|
-
readonly embeds: Embed
|
|
1235
|
+
readonly embeds: Array<Embed>;
|
|
1236
1236
|
/** Edit the flags of a message (only SUPPRESS_EMBEDS can currently be set/unset) */
|
|
1237
1237
|
readonly flags: number;
|
|
1238
1238
|
/** Allowed mentions for the message */
|
|
1239
1239
|
readonly allowed_mentions: AllowedMention;
|
|
1240
1240
|
/** Components to include with the message */
|
|
1241
|
-
readonly components: Component
|
|
1241
|
+
readonly components: Array<Component>;
|
|
1242
1242
|
/** Contents of the file being sent/edited. See Uploading Files */
|
|
1243
1243
|
readonly files: string;
|
|
1244
1244
|
/** JSON-encoded body of non-file params (multipart/form-data only). See Uploading Files */
|
|
1245
1245
|
readonly payload_json: string;
|
|
1246
1246
|
/** Attached files to keep and possible descriptions for new files. See Uploading Files */
|
|
1247
|
-
readonly attachments: Attachment
|
|
1247
|
+
readonly attachments: Array<Attachment>;
|
|
1248
1248
|
}
|
|
1249
1249
|
export interface EditWebhookMessageParams {
|
|
1250
1250
|
/** the message contents (up to 2000 characters) */
|
|
1251
1251
|
readonly content: string;
|
|
1252
1252
|
/** embedded rich content */
|
|
1253
|
-
readonly embeds: Embed
|
|
1253
|
+
readonly embeds: Array<Embed>;
|
|
1254
1254
|
/** allowed mentions for the message */
|
|
1255
1255
|
readonly allowed_mentions: AllowedMention;
|
|
1256
1256
|
/** the components to include with the message */
|
|
1257
|
-
readonly components: Component
|
|
1257
|
+
readonly components: Array<Component>;
|
|
1258
1258
|
/** the contents of the file being sent/edited */
|
|
1259
1259
|
readonly files: string;
|
|
1260
1260
|
/** JSON encoded body of non-file params (multipart/form-data only) */
|
|
1261
1261
|
readonly payload_json: string;
|
|
1262
1262
|
/** attached files to keep and possible descriptions for new files */
|
|
1263
|
-
readonly attachments: Attachment
|
|
1263
|
+
readonly attachments: Array<Attachment>;
|
|
1264
1264
|
}
|
|
1265
1265
|
export interface Embed {
|
|
1266
1266
|
/** title of embed */
|
|
@@ -1288,7 +1288,7 @@ export interface Embed {
|
|
|
1288
1288
|
/** author information */
|
|
1289
1289
|
readonly author?: EmbedAuthor;
|
|
1290
1290
|
/** fields information */
|
|
1291
|
-
readonly fields?: EmbedField
|
|
1291
|
+
readonly fields?: Array<EmbedField>;
|
|
1292
1292
|
}
|
|
1293
1293
|
export interface EmbedAuthor {
|
|
1294
1294
|
/** name of author */
|
|
@@ -1372,7 +1372,7 @@ export interface Emoji {
|
|
|
1372
1372
|
/** emoji name */
|
|
1373
1373
|
readonly name?: string | null;
|
|
1374
1374
|
/** roles allowed to use this emoji */
|
|
1375
|
-
readonly roles?: Snowflake
|
|
1375
|
+
readonly roles?: Array<Snowflake>;
|
|
1376
1376
|
/** user that created this emoji */
|
|
1377
1377
|
readonly user?: User;
|
|
1378
1378
|
/** whether this emoji must be wrapped in colons */
|
|
@@ -1397,9 +1397,9 @@ export interface Endpoints<O> {
|
|
|
1397
1397
|
/** Delete multiple messages in a single request. This endpoint can only be used on guild channels and requires the MANAGE_MESSAGES permission. Returns a 204 empty response on success. Fires a Message Delete Bulk Gateway event. */
|
|
1398
1398
|
bulkDeleteMessages: (channelId: string, params?: Partial<BulkDeleteMessageParams>, options?: O) => RestResponse<any>;
|
|
1399
1399
|
/** Takes a list of application commands, overwriting the existing global command list for this application. Returns 200 and a list of application command objects. Commands that do not already exist will count toward daily application command create limits. */
|
|
1400
|
-
bulkOverwriteGlobalApplicationCommands: (applicationId: string, options?: O) => RestResponse<ApplicationCommand
|
|
1400
|
+
bulkOverwriteGlobalApplicationCommands: (applicationId: string, options?: O) => RestResponse<Array<ApplicationCommand>>;
|
|
1401
1401
|
/** 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. */
|
|
1402
|
-
bulkOverwriteGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<BulkOverwriteGuildApplicationCommandParams>, options?: O) => RestResponse<ApplicationCommand
|
|
1402
|
+
bulkOverwriteGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<BulkOverwriteGuildApplicationCommandParams>, options?: O) => RestResponse<Array<ApplicationCommand>>;
|
|
1403
1403
|
/** Create a new rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Create Gateway event. */
|
|
1404
1404
|
createAutoModerationRule: (guildId: string, params?: Partial<CreateAutoModerationRuleParams>, options?: O) => RestResponse<AutoModerationRule>;
|
|
1405
1405
|
/** Create a new invite object for the channel. Only usable for guild channels. Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this route are optional, however the request body is not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object. Fires an Invite Create Gateway event. */
|
|
@@ -1517,19 +1517,19 @@ export interface Endpoints<O> {
|
|
|
1517
1517
|
/** Fetches permissions for a specific command for your application in a guild. Returns a guild application command permissions object. */
|
|
1518
1518
|
getApplicationCommandPermissions: (applicationId: string, guildId: string, commandId: string, options?: O) => RestResponse<GuildApplicationCommandPermission>;
|
|
1519
1519
|
/** Returns a list of application role connection metadata objects for the given application. */
|
|
1520
|
-
getApplicationRoleConnectionMetadataRecords: (applicationId: string, options?: O) => RestResponse<ApplicationRoleConnectionMetadatum
|
|
1520
|
+
getApplicationRoleConnectionMetadataRecords: (applicationId: string, options?: O) => RestResponse<Array<ApplicationRoleConnectionMetadatum>>;
|
|
1521
1521
|
/** Get a single rule. Returns an auto moderation rule object. */
|
|
1522
1522
|
getAutoModerationRule: (guildId: string, autoModerationRuleId: string, options?: O) => RestResponse<AutoModerationRule>;
|
|
1523
1523
|
/** 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. */
|
|
1524
1524
|
getChannel: (channelId: string, options?: O) => RestResponse<Channel>;
|
|
1525
1525
|
/** Returns a list of invite objects (with invite metadata) for the channel. Only usable for guild channels. Requires the MANAGE_CHANNELS permission. */
|
|
1526
|
-
getChannelInvites: (channelId: string, options?: O) => RestResponse<Invite
|
|
1526
|
+
getChannelInvites: (channelId: string, options?: O) => RestResponse<Array<Invite>>;
|
|
1527
1527
|
/** Retrieves a specific message in the channel. Returns a message object on success. */
|
|
1528
1528
|
getChannelMessage: (channelId: string, messageId: string, options?: O) => RestResponse<Message>;
|
|
1529
1529
|
/** Retrieves the messages in a channel. Returns an array of message objects on success. */
|
|
1530
|
-
getChannelMessages: (channelId: string, params?: Partial<GetChannelMessageParams>, options?: O) => RestResponse<Message
|
|
1530
|
+
getChannelMessages: (channelId: string, params?: Partial<GetChannelMessageParams>, options?: O) => RestResponse<Array<Message>>;
|
|
1531
1531
|
/** Returns a list of channel webhook objects. Requires the MANAGE_WEBHOOKS permission. */
|
|
1532
|
-
getChannelWebhooks: (channelId: string, options?: O) => RestResponse<Webhook
|
|
1532
|
+
getChannelWebhooks: (channelId: string, options?: O) => RestResponse<Array<Webhook>>;
|
|
1533
1533
|
/** Returns the application object associated with the requesting bot user. */
|
|
1534
1534
|
getCurrentApplication: (options?: O) => RestResponse<Application>;
|
|
1535
1535
|
/** Returns info about the current authorization. Requires authentication with a bearer token. */
|
|
@@ -1541,35 +1541,35 @@ export interface Endpoints<O> {
|
|
|
1541
1541
|
/** Returns a guild member object for the current user. Requires the guilds.members.read OAuth2 scope. */
|
|
1542
1542
|
getCurrentUserGuildMember: (guildId: string, options?: O) => RestResponse<GuildMember>;
|
|
1543
1543
|
/** Returns a list of partial guild objects the current user is a member of. Requires the guilds OAuth2 scope. */
|
|
1544
|
-
getCurrentUserGuilds: (params?: Partial<GetCurrentUserGuildParams>, options?: O) => RestResponse<Guild
|
|
1544
|
+
getCurrentUserGuilds: (params?: Partial<GetCurrentUserGuildParams>, options?: O) => RestResponse<Array<Guild>>;
|
|
1545
1545
|
/** Returns a followup message for an Interaction. Functions the same as Get Webhook Message. */
|
|
1546
1546
|
getFollowupMessage: (applicationId: string, interactionToken: string, messageId: string, params?: Partial<GetWebhookMessageParams>, options?: O) => RestResponse<Message>;
|
|
1547
1547
|
getGateway: (options?: O) => RestResponse<any>;
|
|
1548
1548
|
getGatewayBot: (options?: O) => RestResponse<GetGatewayBotResponse>;
|
|
1549
1549
|
/** Fetch a global command for your application. Returns an application command object. */
|
|
1550
1550
|
getGlobalApplicationCommand: (applicationId: string, commandId: string, options?: O) => RestResponse<ApplicationCommand>;
|
|
1551
|
-
getGlobalApplicationCommands: (applicationId: string, params?: Partial<GetGlobalApplicationCommandParams>, options?: O) => RestResponse<ApplicationCommand
|
|
1551
|
+
getGlobalApplicationCommands: (applicationId: string, params?: Partial<GetGlobalApplicationCommandParams>, options?: O) => RestResponse<Array<ApplicationCommand>>;
|
|
1552
1552
|
/** 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. */
|
|
1553
1553
|
getGuild: (guildId: string, params?: Partial<GetGuildParams>, options?: O) => RestResponse<Guild>;
|
|
1554
1554
|
/** Fetch a guild command for your application. Returns an application command object. */
|
|
1555
1555
|
getGuildApplicationCommand: (applicationId: string, guildId: string, commandId: string, options?: O) => RestResponse<ApplicationCommand>;
|
|
1556
1556
|
/** Fetches permissions for all commands for your application in a guild. Returns an array of guild application command permissions objects. */
|
|
1557
|
-
getGuildApplicationCommandPermissions: (applicationId: string, guildId: string, options?: O) => RestResponse<GuildApplicationCommandPermission
|
|
1558
|
-
getGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<GetGuildApplicationCommandParams>, options?: O) => RestResponse<ApplicationCommand
|
|
1557
|
+
getGuildApplicationCommandPermissions: (applicationId: string, guildId: string, options?: O) => RestResponse<Array<GuildApplicationCommandPermission>>;
|
|
1558
|
+
getGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<GetGuildApplicationCommandParams>, options?: O) => RestResponse<Array<ApplicationCommand>>;
|
|
1559
1559
|
/** Returns an audit log object for the guild. Requires the VIEW_AUDIT_LOG permission. */
|
|
1560
1560
|
getGuildAuditLog: (guildId: string, params?: Partial<GetGuildAuditLogParams>, options?: O) => RestResponse<AuditLog>;
|
|
1561
1561
|
/** Returns a ban object for the given user or a 404 not found if the ban cannot be found. Requires the BAN_MEMBERS permission. */
|
|
1562
1562
|
getGuildBan: (guildId: string, userId: string, options?: O) => RestResponse<Ban>;
|
|
1563
1563
|
/** Returns a list of ban objects for the users banned from this guild. Requires the BAN_MEMBERS permission. */
|
|
1564
|
-
getGuildBans: (guildId: string, params?: Partial<GetGuildBanParams>, options?: O) => RestResponse<Ban
|
|
1564
|
+
getGuildBans: (guildId: string, params?: Partial<GetGuildBanParams>, options?: O) => RestResponse<Array<Ban>>;
|
|
1565
1565
|
/** Returns a list of guild channel objects. Does not include threads. */
|
|
1566
|
-
getGuildChannels: (guildId: string, options?: O) => RestResponse<Channel
|
|
1566
|
+
getGuildChannels: (guildId: string, options?: O) => RestResponse<Array<Channel>>;
|
|
1567
1567
|
/** Returns an emoji object for the given guild and emoji IDs. */
|
|
1568
1568
|
getGuildEmoji: (guildId: string, emojiId: string, options?: O) => RestResponse<Emoji>;
|
|
1569
1569
|
/** Returns a list of integration objects for the guild. Requires the MANAGE_GUILD permission. */
|
|
1570
|
-
getGuildIntegrations: (guildId: string, options?: O) => RestResponse<Integration
|
|
1570
|
+
getGuildIntegrations: (guildId: string, options?: O) => RestResponse<Array<Integration>>;
|
|
1571
1571
|
/** Returns a list of invite objects (with invite metadata) for the guild. Requires the MANAGE_GUILD permission. */
|
|
1572
|
-
getGuildInvites: (guildId: string, options?: O) => RestResponse<Invite
|
|
1572
|
+
getGuildInvites: (guildId: string, options?: O) => RestResponse<Array<Invite>>;
|
|
1573
1573
|
/** Returns a guild member object for the specified user. */
|
|
1574
1574
|
getGuildMember: (guildId: string, userId: string, options?: O) => RestResponse<GuildMember>;
|
|
1575
1575
|
/** Returns the Onboarding object for the guild. */
|
|
@@ -1580,23 +1580,23 @@ export interface Endpoints<O> {
|
|
|
1580
1580
|
/** Returns an object with one pruned key indicating the number of members that would be removed in a prune operation. Requires the KICK_MEMBERS permission. */
|
|
1581
1581
|
getGuildPruneCount: (guildId: string, params?: Partial<GetGuildPruneCountParams>, options?: O) => RestResponse<any>;
|
|
1582
1582
|
/** Returns a list of role objects for the guild. */
|
|
1583
|
-
getGuildRoles: (guildId: string, options?: O) => RestResponse<Role
|
|
1583
|
+
getGuildRoles: (guildId: string, options?: O) => RestResponse<Array<Role>>;
|
|
1584
1584
|
/** Get a guild scheduled event. Returns a guild scheduled event object on success. */
|
|
1585
1585
|
getGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, params?: Partial<GetGuildScheduledEventParams>, options?: O) => RestResponse<GuildScheduledEvent>;
|
|
1586
1586
|
/** Get a list of guild scheduled event users subscribed to a guild scheduled event. Returns a list of guild scheduled event user objects on success. Guild member data, if it exists, is included if the with_member query parameter is set. */
|
|
1587
|
-
getGuildScheduledEventUsers: (guildId: string, guildScheduledEventId: string, params?: Partial<GetGuildScheduledEventUserParams>, options?: O) => RestResponse<GuildScheduledEventUser
|
|
1587
|
+
getGuildScheduledEventUsers: (guildId: string, guildScheduledEventId: string, params?: Partial<GetGuildScheduledEventUserParams>, options?: O) => RestResponse<Array<GuildScheduledEventUser>>;
|
|
1588
1588
|
/** Returns a sticker object for the given guild and sticker IDs. Includes the user field if the bot has the MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1589
1589
|
getGuildSticker: (guildId: string, stickerId: string, options?: O) => RestResponse<Sticker>;
|
|
1590
1590
|
/** Returns a guild template object for the given code. */
|
|
1591
1591
|
getGuildTemplate: (templateCode: string, options?: O) => RestResponse<GuildTemplate>;
|
|
1592
1592
|
/** Returns an array of guild template objects. Requires the MANAGE_GUILD permission. */
|
|
1593
|
-
getGuildTemplates: (guildId: string, options?: O) => RestResponse<GuildTemplate
|
|
1593
|
+
getGuildTemplates: (guildId: string, options?: O) => RestResponse<Array<GuildTemplate>>;
|
|
1594
1594
|
/** 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. */
|
|
1595
1595
|
getGuildVanityUrl: (guildId: string, options?: O) => RestResponse<Invite>;
|
|
1596
1596
|
/** 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. */
|
|
1597
|
-
getGuildVoiceRegions: (guildId: string, options?: O) => RestResponse<VoiceRegion
|
|
1597
|
+
getGuildVoiceRegions: (guildId: string, options?: O) => RestResponse<Array<VoiceRegion>>;
|
|
1598
1598
|
/** Returns a list of guild webhook objects. Requires the MANAGE_WEBHOOKS permission. */
|
|
1599
|
-
getGuildWebhooks: (guildId: string, options?: O) => RestResponse<Webhook
|
|
1599
|
+
getGuildWebhooks: (guildId: string, options?: O) => RestResponse<Array<Webhook>>;
|
|
1600
1600
|
/** Returns the Welcome Screen object for the guild. If the welcome screen is not enabled, the MANAGE_GUILD permission is required. */
|
|
1601
1601
|
getGuildWelcomeScreen: (guildId: string, options?: O) => RestResponse<WelcomeScreen>;
|
|
1602
1602
|
/** Returns the widget for the guild. */
|
|
@@ -1610,10 +1610,10 @@ export interface Endpoints<O> {
|
|
|
1610
1610
|
/** Returns the initial Interaction response. Functions the same as Get Webhook Message. */
|
|
1611
1611
|
getOriginalInteractionResponse: (applicationId: string, interactionToken: string, params?: Partial<GetWebhookMessageParams>, options?: O) => RestResponse<Message>;
|
|
1612
1612
|
/** Returns all pinned messages in the channel as an array of message objects. */
|
|
1613
|
-
getPinnedMessages: (channelId: string, options?: O) => RestResponse<Message
|
|
1613
|
+
getPinnedMessages: (channelId: string, options?: O) => RestResponse<Array<Message>>;
|
|
1614
1614
|
/** Get a list of users that reacted with this emoji. Returns an array of user objects on success.
|
|
1615
1615
|
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. */
|
|
1616
|
-
getReactions: (channelId: string, messageId: string, emoji: string, params?: Partial<GetReactionParams>, options?: O) => RestResponse<User
|
|
1616
|
+
getReactions: (channelId: string, messageId: string, emoji: string, params?: Partial<GetReactionParams>, options?: O) => RestResponse<Array<User>>;
|
|
1617
1617
|
/** Gets the stage instance associated with the Stage channel, if it exists. */
|
|
1618
1618
|
getStageInstance: (channelId: string, options?: O) => RestResponse<any>;
|
|
1619
1619
|
/** Returns a sticker object for the given sticker ID. */
|
|
@@ -1625,7 +1625,7 @@ export interface Endpoints<O> {
|
|
|
1625
1625
|
/** 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. */
|
|
1626
1626
|
getUserApplicationRoleConnection: (applicationId: string, options?: O) => RestResponse<ApplicationRoleConnection>;
|
|
1627
1627
|
/** Returns a list of connection objects. Requires the connections OAuth2 scope. */
|
|
1628
|
-
getUserConnections: (options?: O) => RestResponse<Connection
|
|
1628
|
+
getUserConnections: (options?: O) => RestResponse<Array<Connection>>;
|
|
1629
1629
|
/** Returns the new webhook object for the given id. */
|
|
1630
1630
|
getWebhook: (webhookId: string, options?: O) => RestResponse<Webhook>;
|
|
1631
1631
|
/** Returns a previously-sent webhook message from the same token. Returns a message object on success. */
|
|
@@ -1645,13 +1645,13 @@ export interface Endpoints<O> {
|
|
|
1645
1645
|
/** Returns all active threads in the guild, including public and private threads. Threads are ordered by their id, in descending order. */
|
|
1646
1646
|
listActiveGuildThreads: (guildId: string, options?: O) => RestResponse<ListActiveGuildThreadResponse>;
|
|
1647
1647
|
/** Get a list of all rules currently configured for the guild. Returns a list of auto moderation rule objects for the given guild. */
|
|
1648
|
-
listAutoModerationRulesForGuild: (guildId: string, options?: O) => RestResponse<AutoModerationRule
|
|
1648
|
+
listAutoModerationRulesForGuild: (guildId: string, options?: O) => RestResponse<Array<AutoModerationRule>>;
|
|
1649
1649
|
/** Returns a list of emoji objects for the given guild. */
|
|
1650
|
-
listGuildEmojis: (guildId: string, options?: O) => RestResponse<Emoji
|
|
1650
|
+
listGuildEmojis: (guildId: string, options?: O) => RestResponse<Array<Emoji>>;
|
|
1651
1651
|
/** Returns a list of guild member objects that are members of the guild. */
|
|
1652
|
-
listGuildMembers: (guildId: string, params?: Partial<ListGuildMemberParams>, options?: O) => RestResponse<GuildMember
|
|
1652
|
+
listGuildMembers: (guildId: string, params?: Partial<ListGuildMemberParams>, options?: O) => RestResponse<Array<GuildMember>>;
|
|
1653
1653
|
/** Returns an array of sticker objects for the given guild. Includes user fields if the bot has the MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1654
|
-
listGuildStickers: (guildId: string, options?: O) => RestResponse<Sticker
|
|
1654
|
+
listGuildStickers: (guildId: string, options?: O) => RestResponse<Array<Sticker>>;
|
|
1655
1655
|
/** 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. */
|
|
1656
1656
|
listJoinedPrivateArchivedThreads: (channelId: string, params?: Partial<ListJoinedPrivateArchivedThreadParams>, options?: O) => RestResponse<ListJoinedPrivateArchivedThreadResponse>;
|
|
1657
1657
|
/** Returns the list of sticker packs available to Nitro subscribers. */
|
|
@@ -1661,10 +1661,10 @@ export interface Endpoints<O> {
|
|
|
1661
1661
|
/** Returns archived threads in the channel that are public. When called on a GUILD_TEXT channel, returns threads of type PUBLIC_THREAD. When called on a GUILD_ANNOUNCEMENT channel returns threads of type ANNOUNCEMENT_THREAD. Threads are ordered by archive_timestamp, in descending order. Requires the READ_MESSAGE_HISTORY permission. */
|
|
1662
1662
|
listPublicArchivedThreads: (channelId: string, params?: Partial<ListPublicArchivedThreadParams>, options?: O) => RestResponse<ListPublicArchivedThreadResponse>;
|
|
1663
1663
|
/** Returns a list of guild scheduled event objects for the given guild. */
|
|
1664
|
-
listScheduledEventsForGuild: (guildId: string, params?: Partial<ListScheduledEventsForGuildParams>, options?: O) => RestResponse<GuildScheduledEvent
|
|
1665
|
-
listThreadMembers: (channelId: string, params?: Partial<ListThreadMemberParams>, options?: O) => RestResponse<ThreadMember
|
|
1664
|
+
listScheduledEventsForGuild: (guildId: string, params?: Partial<ListScheduledEventsForGuildParams>, options?: O) => RestResponse<Array<GuildScheduledEvent>>;
|
|
1665
|
+
listThreadMembers: (channelId: string, params?: Partial<ListThreadMemberParams>, options?: O) => RestResponse<Array<ThreadMember>>;
|
|
1666
1666
|
/** Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region. */
|
|
1667
|
-
listVoiceRegions: (options?: O) => RestResponse<VoiceRegion
|
|
1667
|
+
listVoiceRegions: (options?: O) => RestResponse<Array<VoiceRegion>>;
|
|
1668
1668
|
/** Modify an existing rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Update Gateway event. */
|
|
1669
1669
|
modifyAutoModerationRule: (guildId: string, autoModerationRuleId: string, params?: Partial<ModifyAutoModerationRuleParams>, options?: O) => RestResponse<AutoModerationRule>;
|
|
1670
1670
|
/** Update a channel's settings. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. All JSON parameters are optional. */
|
|
@@ -1691,7 +1691,7 @@ export interface Endpoints<O> {
|
|
|
1691
1691
|
/** Modify a guild role. Requires the MANAGE_ROLES permission. Returns the updated role on success. Fires a Guild Role Update Gateway event. */
|
|
1692
1692
|
modifyGuildRole: (guildId: string, roleId: string, params?: Partial<ModifyGuildRoleParams>, options?: O) => RestResponse<Role>;
|
|
1693
1693
|
/** Modify the positions of a set of role objects for the guild. Requires the MANAGE_ROLES permission. Returns a list of all of the guild's role objects on success. Fires multiple Guild Role Update Gateway events. */
|
|
1694
|
-
modifyGuildRolePositions: (guildId: string, params?: Partial<ModifyGuildRolePositionParams>, options?: O) => RestResponse<Role
|
|
1694
|
+
modifyGuildRolePositions: (guildId: string, params?: Partial<ModifyGuildRolePositionParams>, options?: O) => RestResponse<Array<Role>>;
|
|
1695
1695
|
/** Modify a guild scheduled event. Returns the modified guild scheduled event object on success. Fires a Guild Scheduled Event Update Gateway event. */
|
|
1696
1696
|
modifyGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, params?: Partial<ModifyGuildScheduledEventParams>, options?: O) => RestResponse<GuildScheduledEvent>;
|
|
1697
1697
|
/** Modify the given sticker. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated sticker object on success. Fires a Guild Stickers Update Gateway event. */
|
|
@@ -1721,7 +1721,7 @@ export interface Endpoints<O> {
|
|
|
1721
1721
|
/** Removes another member from a thread. Requires the MANAGE_THREADS permission, or the creator of the thread if it is a PRIVATE_THREAD. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update Gateway event. */
|
|
1722
1722
|
removeThreadMember: (channelId: string, userId: string, options?: O) => RestResponse<any>;
|
|
1723
1723
|
/** Returns a list of guild member objects whose username or nickname starts with a provided string. */
|
|
1724
|
-
searchGuildMembers: (guildId: string, params?: Partial<SearchGuildMemberParams>, options?: O) => RestResponse<GuildMember
|
|
1724
|
+
searchGuildMembers: (guildId: string, params?: Partial<SearchGuildMemberParams>, options?: O) => RestResponse<Array<GuildMember>>;
|
|
1725
1725
|
/** 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. */
|
|
1726
1726
|
startThreadFromMessage: (channelId: string, messageId: string, params?: Partial<StartThreadFromMessageParams>, options?: O) => RestResponse<Channel>;
|
|
1727
1727
|
/** Creates a new thread in a forum channel, and sends a message within the created thread. Returns a channel, with a nested message object, on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create and Message Create Gateway event. */
|
|
@@ -1735,7 +1735,7 @@ export interface Endpoints<O> {
|
|
|
1735
1735
|
/** Unpin a message in a channel. Requires the MANAGE_MESSAGES permission. Returns a 204 empty response on success. Fires a Channel Pins Update Gateway event. */
|
|
1736
1736
|
unpinMessage: (channelId: string, messageId: string, options?: O) => RestResponse<any>;
|
|
1737
1737
|
/** Updates and returns a list of application role connection metadata objects for the given application. */
|
|
1738
|
-
updateApplicationRoleConnectionMetadataRecords: (applicationId: string, options?: O) => RestResponse<ApplicationRoleConnectionMetadatum
|
|
1738
|
+
updateApplicationRoleConnectionMetadataRecords: (applicationId: string, options?: O) => RestResponse<Array<ApplicationRoleConnectionMetadatum>>;
|
|
1739
1739
|
/** 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. */
|
|
1740
1740
|
updateUserApplicationRoleConnection: (applicationId: string, params?: Partial<UpdateUserApplicationRoleConnectionParams>, options?: O) => RestResponse<ApplicationRoleConnection>;
|
|
1741
1741
|
}
|
|
@@ -1753,17 +1753,17 @@ export interface ExecuteWebhookParams {
|
|
|
1753
1753
|
/** true if this is a TTS message */
|
|
1754
1754
|
readonly tts: boolean;
|
|
1755
1755
|
/** embedded rich content */
|
|
1756
|
-
readonly embeds: Embed
|
|
1756
|
+
readonly embeds: Array<Embed>;
|
|
1757
1757
|
/** allowed mentions for the message */
|
|
1758
1758
|
readonly allowed_mentions: AllowedMention;
|
|
1759
1759
|
/** the components to include with the message */
|
|
1760
|
-
readonly components: Component
|
|
1760
|
+
readonly components: Array<Component>;
|
|
1761
1761
|
/** the contents of the file being sent */
|
|
1762
1762
|
readonly files: string;
|
|
1763
1763
|
/** JSON encoded body of non-file params */
|
|
1764
1764
|
readonly payload_json: string;
|
|
1765
1765
|
/** attachment objects with filename and description */
|
|
1766
|
-
readonly attachments: Attachment
|
|
1766
|
+
readonly attachments: Array<Attachment>;
|
|
1767
1767
|
/** message flags combined as a bitfield (only SUPPRESS_EMBEDS can be set) */
|
|
1768
1768
|
readonly flags: number;
|
|
1769
1769
|
/** name of thread to create (requires the webhook channel to be a forum channel) */
|
|
@@ -1811,19 +1811,19 @@ export interface ForumThreadMessageParam {
|
|
|
1811
1811
|
/** Message contents (up to 2000 characters) */
|
|
1812
1812
|
readonly content?: string;
|
|
1813
1813
|
/** Up to 10 rich embeds (up to 6000 characters) */
|
|
1814
|
-
readonly embeds?: Embed
|
|
1814
|
+
readonly embeds?: Array<Embed>;
|
|
1815
1815
|
/** Allowed mentions for the message */
|
|
1816
1816
|
readonly allowed_mentions?: AllowedMention;
|
|
1817
1817
|
/** Components to include with the message */
|
|
1818
|
-
readonly components?: Component
|
|
1818
|
+
readonly components?: Array<Component>;
|
|
1819
1819
|
/** IDs of up to 3 stickers in the server to send in the message */
|
|
1820
|
-
readonly sticker_ids?: Snowflake
|
|
1820
|
+
readonly sticker_ids?: Array<Snowflake>;
|
|
1821
1821
|
/** Contents of the file being sent. See Uploading Files */
|
|
1822
1822
|
readonly files: string;
|
|
1823
1823
|
/** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
|
|
1824
1824
|
readonly payload_json?: string;
|
|
1825
1825
|
/** Attachment objects with filename and description. See Uploading Files */
|
|
1826
|
-
readonly attachments?: Attachment
|
|
1826
|
+
readonly attachments?: Array<Attachment>;
|
|
1827
1827
|
/** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
|
|
1828
1828
|
readonly flags?: number;
|
|
1829
1829
|
}
|
|
@@ -1904,7 +1904,7 @@ export interface GetCurrentAuthorizationInformationResponse {
|
|
|
1904
1904
|
/** the current application */
|
|
1905
1905
|
readonly application: Application;
|
|
1906
1906
|
/** the scopes the user has authorized the application for */
|
|
1907
|
-
readonly scopes: string
|
|
1907
|
+
readonly scopes: Array<string>;
|
|
1908
1908
|
/** when the access token expires */
|
|
1909
1909
|
readonly expires: string;
|
|
1910
1910
|
/** the user who has authorized, if the user has authorized with the identify scope */
|
|
@@ -1964,7 +1964,7 @@ export interface GetGuildPruneCountParams {
|
|
|
1964
1964
|
/** number of days to count prune for (1-30) */
|
|
1965
1965
|
readonly days: number;
|
|
1966
1966
|
/** role(s) to include */
|
|
1967
|
-
readonly include_roles: Snowflake
|
|
1967
|
+
readonly include_roles: Array<Snowflake>;
|
|
1968
1968
|
}
|
|
1969
1969
|
export interface GetGuildScheduledEventParams {
|
|
1970
1970
|
/** include number of users subscribed to this event */
|
|
@@ -2048,11 +2048,11 @@ export interface Guild {
|
|
|
2048
2048
|
/** explicit content filter level */
|
|
2049
2049
|
readonly explicit_content_filter: ExplicitContentFilterLevel;
|
|
2050
2050
|
/** roles in the guild */
|
|
2051
|
-
readonly roles: Role
|
|
2051
|
+
readonly roles: Array<Role>;
|
|
2052
2052
|
/** custom guild emojis */
|
|
2053
|
-
readonly emojis: Emoji
|
|
2053
|
+
readonly emojis: Array<Emoji>;
|
|
2054
2054
|
/** enabled guild features */
|
|
2055
|
-
readonly features: GuildFeature
|
|
2055
|
+
readonly features: Array<GuildFeature>;
|
|
2056
2056
|
/** required MFA level for the guild */
|
|
2057
2057
|
readonly mfa_level: MfaLevel;
|
|
2058
2058
|
/** application id of the guild creator if it is bot-created */
|
|
@@ -2094,7 +2094,7 @@ export interface Guild {
|
|
|
2094
2094
|
/** guild NSFW level */
|
|
2095
2095
|
readonly nsfw_level: GuildNsfwLevel;
|
|
2096
2096
|
/** custom guild stickers */
|
|
2097
|
-
readonly stickers?: Sticker
|
|
2097
|
+
readonly stickers?: Array<Sticker>;
|
|
2098
2098
|
/** whether the guild has the boost progress bar enabled */
|
|
2099
2099
|
readonly premium_progress_bar_enabled: boolean;
|
|
2100
2100
|
/** the id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */
|
|
@@ -2108,7 +2108,7 @@ export interface GuildApplicationCommandPermission {
|
|
|
2108
2108
|
/** ID of the guild */
|
|
2109
2109
|
readonly guild_id: Snowflake;
|
|
2110
2110
|
/** Permissions for the command in the guild, max of 100 */
|
|
2111
|
-
readonly permissions: ApplicationCommandPermission
|
|
2111
|
+
readonly permissions: Array<ApplicationCommandPermission>;
|
|
2112
2112
|
}
|
|
2113
2113
|
export type GuildAuditLogEntryCreateEvent = AuditLogEntry;
|
|
2114
2114
|
export interface GuildBanAddEvent {
|
|
@@ -2134,26 +2134,26 @@ export interface GuildCreateExtra {
|
|
|
2134
2134
|
/** Total number of members in this guild */
|
|
2135
2135
|
readonly member_count: number;
|
|
2136
2136
|
/** States of members currently in voice channels; lacks the guild_id key */
|
|
2137
|
-
readonly voice_states: VoiceState
|
|
2137
|
+
readonly voice_states: Array<VoiceState>;
|
|
2138
2138
|
/** Users in the guild */
|
|
2139
|
-
readonly members: GuildMember
|
|
2139
|
+
readonly members: Array<GuildMember>;
|
|
2140
2140
|
/** Channels in the guild */
|
|
2141
|
-
readonly channels: Channel
|
|
2141
|
+
readonly channels: Array<Channel>;
|
|
2142
2142
|
/** All active threads in the guild that current user has permission to view */
|
|
2143
|
-
readonly threads: Channel
|
|
2143
|
+
readonly threads: Array<Channel>;
|
|
2144
2144
|
/** Presences of the members in the guild, will only include non-offline members if the size is greater than large threshold */
|
|
2145
|
-
readonly presences: PresenceUpdateEvent
|
|
2145
|
+
readonly presences: Array<PresenceUpdateEvent>;
|
|
2146
2146
|
/** Stage instances in the guild */
|
|
2147
|
-
readonly stage_instances: StageInstance
|
|
2147
|
+
readonly stage_instances: Array<StageInstance>;
|
|
2148
2148
|
/** Scheduled events in the guild */
|
|
2149
|
-
readonly guild_scheduled_events: GuildScheduledEvent
|
|
2149
|
+
readonly guild_scheduled_events: Array<GuildScheduledEvent>;
|
|
2150
2150
|
}
|
|
2151
2151
|
export type GuildDeleteEvent = UnavailableGuild;
|
|
2152
2152
|
export interface GuildEmojisUpdateEvent {
|
|
2153
2153
|
/** ID of the guild */
|
|
2154
2154
|
readonly guild_id: Snowflake;
|
|
2155
2155
|
/** Array of emojis */
|
|
2156
|
-
readonly emojis: Emoji
|
|
2156
|
+
readonly emojis: Array<Emoji>;
|
|
2157
2157
|
}
|
|
2158
2158
|
export declare const enum GuildFeature {
|
|
2159
2159
|
/** guild has access to set an animated guild banner image */
|
|
@@ -2223,7 +2223,7 @@ export interface GuildMember {
|
|
|
2223
2223
|
/** the member's guild avatar hash */
|
|
2224
2224
|
readonly avatar?: string | null;
|
|
2225
2225
|
/** array of role object ids */
|
|
2226
|
-
readonly roles: Snowflake
|
|
2226
|
+
readonly roles: Array<Snowflake>;
|
|
2227
2227
|
/** when the user joined the guild */
|
|
2228
2228
|
readonly joined_at: string;
|
|
2229
2229
|
/** when the user started boosting the guild */
|
|
@@ -2266,15 +2266,15 @@ export interface GuildMembersChunkEvent {
|
|
|
2266
2266
|
/** ID of the guild */
|
|
2267
2267
|
readonly guild_id: Snowflake;
|
|
2268
2268
|
/** Set of guild members */
|
|
2269
|
-
readonly members: GuildMember
|
|
2269
|
+
readonly members: Array<GuildMember>;
|
|
2270
2270
|
/** Chunk index in the expected chunks for this response (0 <= chunk_index < chunk_count) */
|
|
2271
2271
|
readonly chunk_index: number;
|
|
2272
2272
|
/** Total number of expected chunks for this response */
|
|
2273
2273
|
readonly chunk_count: number;
|
|
2274
2274
|
/** When passing an invalid ID to REQUEST_GUILD_MEMBERS, it will be returned here */
|
|
2275
|
-
readonly not_found?: any
|
|
2275
|
+
readonly not_found?: Array<any>;
|
|
2276
2276
|
/** When passing true to REQUEST_GUILD_MEMBERS, presences of the returned members will be here */
|
|
2277
|
-
readonly presences?: PresenceUpdateEvent
|
|
2277
|
+
readonly presences?: Array<PresenceUpdateEvent>;
|
|
2278
2278
|
/** Nonce used in the Guild Members Request */
|
|
2279
2279
|
readonly nonce?: string;
|
|
2280
2280
|
}
|
|
@@ -2282,7 +2282,7 @@ export interface GuildMemberUpdateEvent {
|
|
|
2282
2282
|
/** ID of the guild */
|
|
2283
2283
|
readonly guild_id: Snowflake;
|
|
2284
2284
|
/** User role ids */
|
|
2285
|
-
readonly roles: Snowflake
|
|
2285
|
+
readonly roles: Array<Snowflake>;
|
|
2286
2286
|
/** User */
|
|
2287
2287
|
readonly user: User;
|
|
2288
2288
|
/** Nickname of the user in the guild */
|
|
@@ -2312,9 +2312,9 @@ export interface GuildOnboarding {
|
|
|
2312
2312
|
/** ID of the guild this onboarding is part of */
|
|
2313
2313
|
readonly guild_id: Snowflake;
|
|
2314
2314
|
/** Prompts shown during onboarding and in customize community */
|
|
2315
|
-
readonly prompts: OnboardingPrompt
|
|
2315
|
+
readonly prompts: Array<OnboardingPrompt>;
|
|
2316
2316
|
/** Channel IDs that members get opted into automatically */
|
|
2317
|
-
readonly default_channel_ids: Snowflake
|
|
2317
|
+
readonly default_channel_ids: Array<Snowflake>;
|
|
2318
2318
|
/** Whether onboarding is enabled in the guild */
|
|
2319
2319
|
readonly enabled: boolean;
|
|
2320
2320
|
/** Current mode of onboarding */
|
|
@@ -2332,9 +2332,9 @@ export interface GuildPreview {
|
|
|
2332
2332
|
/** discovery splash hash */
|
|
2333
2333
|
readonly discovery_splash?: string | null;
|
|
2334
2334
|
/** custom guild emojis */
|
|
2335
|
-
readonly emojis: Emoji
|
|
2335
|
+
readonly emojis: Array<Emoji>;
|
|
2336
2336
|
/** enabled guild features */
|
|
2337
|
-
readonly features: GuildFeature
|
|
2337
|
+
readonly features: Array<GuildFeature>;
|
|
2338
2338
|
/** approximate number of members in this guild */
|
|
2339
2339
|
readonly approximate_member_count: number;
|
|
2340
2340
|
/** approximate number of online members in this guild */
|
|
@@ -2342,7 +2342,7 @@ export interface GuildPreview {
|
|
|
2342
2342
|
/** the description for the guild */
|
|
2343
2343
|
readonly description?: string | null;
|
|
2344
2344
|
/** custom guild stickers */
|
|
2345
|
-
readonly stickers: Sticker
|
|
2345
|
+
readonly stickers: Array<Sticker>;
|
|
2346
2346
|
}
|
|
2347
2347
|
export interface GuildRoleCreateEvent {
|
|
2348
2348
|
/** ID of the guild */
|
|
@@ -2446,7 +2446,7 @@ export interface GuildStickersUpdateEvent {
|
|
|
2446
2446
|
/** ID of the guild */
|
|
2447
2447
|
readonly guild_id: Snowflake;
|
|
2448
2448
|
/** Array of stickers */
|
|
2449
|
-
readonly stickers: Sticker
|
|
2449
|
+
readonly stickers: Array<Sticker>;
|
|
2450
2450
|
}
|
|
2451
2451
|
export interface GuildTemplate {
|
|
2452
2452
|
/** the template code (unique ID) */
|
|
@@ -2481,9 +2481,9 @@ export interface GuildWidget {
|
|
|
2481
2481
|
/** instant invite for the guilds specified widget invite channel */
|
|
2482
2482
|
readonly instant_invite?: string | null;
|
|
2483
2483
|
/** voice and stage channels which are accessible by @everyone */
|
|
2484
|
-
readonly channels: Channel
|
|
2484
|
+
readonly channels: Array<Channel>;
|
|
2485
2485
|
/** special widget user objects that includes users presence (Limit 100) */
|
|
2486
|
-
readonly members: User
|
|
2486
|
+
readonly members: Array<User>;
|
|
2487
2487
|
/** number of online members in this guild */
|
|
2488
2488
|
readonly presence_count: number;
|
|
2489
2489
|
}
|
|
@@ -2508,7 +2508,7 @@ export interface Identify {
|
|
|
2508
2508
|
/** Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list */
|
|
2509
2509
|
readonly large_threshold?: number;
|
|
2510
2510
|
/** Used for Guild Sharding */
|
|
2511
|
-
readonly shard?: number
|
|
2511
|
+
readonly shard?: Array<number>;
|
|
2512
2512
|
/** Presence structure for initial presence information */
|
|
2513
2513
|
readonly presence?: UpdatePresence;
|
|
2514
2514
|
/** Gateway Intents you wish to receive */
|
|
@@ -2524,7 +2524,7 @@ export interface IdentifyConnectionProperty {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
export interface InstallParam {
|
|
2526
2526
|
/** the scopes to add the application to the server with */
|
|
2527
|
-
readonly scopes: OAuth2Scope
|
|
2527
|
+
readonly scopes: Array<OAuth2Scope>;
|
|
2528
2528
|
/** the permissions to request for the bot role */
|
|
2529
2529
|
readonly permissions: string;
|
|
2530
2530
|
}
|
|
@@ -2560,7 +2560,7 @@ export interface Integration {
|
|
|
2560
2560
|
/** The bot/OAuth2 application for discord integrations */
|
|
2561
2561
|
readonly application?: IntegrationApplication;
|
|
2562
2562
|
/** the scopes the application has been authorized for */
|
|
2563
|
-
readonly scopes?: OAuth2Scope
|
|
2563
|
+
readonly scopes?: Array<OAuth2Scope>;
|
|
2564
2564
|
}
|
|
2565
2565
|
export interface IntegrationAccount {
|
|
2566
2566
|
/** id of the account */
|
|
@@ -2636,7 +2636,7 @@ export interface Interaction {
|
|
|
2636
2636
|
}
|
|
2637
2637
|
export interface InteractionCallbackAutocomplete {
|
|
2638
2638
|
/** autocomplete choices (max of 25 choices) */
|
|
2639
|
-
readonly choices: ApplicationCommandOptionChoice
|
|
2639
|
+
readonly choices: Array<ApplicationCommandOptionChoice>;
|
|
2640
2640
|
}
|
|
2641
2641
|
export type InteractionCallbackDatum = InteractionCallbackAutocomplete | InteractionCallbackMessage | InteractionCallbackModal;
|
|
2642
2642
|
export interface InteractionCallbackMessage {
|
|
@@ -2645,15 +2645,15 @@ export interface InteractionCallbackMessage {
|
|
|
2645
2645
|
/** message content */
|
|
2646
2646
|
readonly content?: string;
|
|
2647
2647
|
/** supports up to 10 embeds */
|
|
2648
|
-
readonly embeds?: Embed
|
|
2648
|
+
readonly embeds?: Array<Embed>;
|
|
2649
2649
|
/** allowed mentions object */
|
|
2650
2650
|
readonly allowed_mentions?: AllowedMention;
|
|
2651
2651
|
/** message flags combined as a bitfield (only SUPPRESS_EMBEDS and EPHEMERAL can be set) */
|
|
2652
2652
|
readonly flags?: number;
|
|
2653
2653
|
/** message components */
|
|
2654
|
-
readonly components?: Component
|
|
2654
|
+
readonly components?: Array<Component>;
|
|
2655
2655
|
/** attachment objects with filename and description */
|
|
2656
|
-
readonly attachments?: Attachment
|
|
2656
|
+
readonly attachments?: Array<Attachment>;
|
|
2657
2657
|
}
|
|
2658
2658
|
export interface InteractionCallbackModal {
|
|
2659
2659
|
/** a developer-defined identifier for the modal, max 100 characters */
|
|
@@ -2661,7 +2661,7 @@ export interface InteractionCallbackModal {
|
|
|
2661
2661
|
/** the title of the popup modal, max 45 characters */
|
|
2662
2662
|
readonly title: string;
|
|
2663
2663
|
/** between 1 and 5 (inclusive) components that make up the modal */
|
|
2664
|
-
readonly components: Component
|
|
2664
|
+
readonly components: Array<Component>;
|
|
2665
2665
|
}
|
|
2666
2666
|
export declare const enum InteractionCallbackType {
|
|
2667
2667
|
/** ACK a Ping */
|
|
@@ -2769,7 +2769,7 @@ export interface InviteMetadatum {
|
|
|
2769
2769
|
}
|
|
2770
2770
|
export interface InviteStageInstance {
|
|
2771
2771
|
/** the members speaking in the Stage */
|
|
2772
|
-
readonly members: GuildMember
|
|
2772
|
+
readonly members: Array<GuildMember>;
|
|
2773
2773
|
/** the number of users in the Stage */
|
|
2774
2774
|
readonly participant_count: number;
|
|
2775
2775
|
/** the number of users speaking in the Stage */
|
|
@@ -2791,9 +2791,9 @@ export declare const enum KeywordPresetType {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
export interface ListActiveGuildThreadResponse {
|
|
2793
2793
|
/** the active threads */
|
|
2794
|
-
readonly threads: Channel
|
|
2794
|
+
readonly threads: Array<Channel>;
|
|
2795
2795
|
/** a thread member object for each returned thread the current user has joined */
|
|
2796
|
-
readonly members: ThreadMember
|
|
2796
|
+
readonly members: Array<ThreadMember>;
|
|
2797
2797
|
}
|
|
2798
2798
|
export interface ListGuildMemberParams {
|
|
2799
2799
|
/** max number of members to return (1-1000) */
|
|
@@ -2809,9 +2809,9 @@ export interface ListJoinedPrivateArchivedThreadParams {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
export interface ListJoinedPrivateArchivedThreadResponse {
|
|
2811
2811
|
/** the private, archived threads the current user has joined */
|
|
2812
|
-
readonly threads: Channel
|
|
2812
|
+
readonly threads: Array<Channel>;
|
|
2813
2813
|
/** a thread member object for each returned thread the current user has joined */
|
|
2814
|
-
readonly members: ThreadMember
|
|
2814
|
+
readonly members: Array<ThreadMember>;
|
|
2815
2815
|
/** whether there are potentially additional threads that could be returned on a subsequent call */
|
|
2816
2816
|
readonly has_more: boolean;
|
|
2817
2817
|
}
|
|
@@ -2823,9 +2823,9 @@ export interface ListPrivateArchivedThreadParams {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
export interface ListPrivateArchivedThreadResponse {
|
|
2825
2825
|
/** the private, archived threads */
|
|
2826
|
-
readonly threads: Channel
|
|
2826
|
+
readonly threads: Array<Channel>;
|
|
2827
2827
|
/** a thread member object for each returned thread the current user has joined */
|
|
2828
|
-
readonly members: ThreadMember
|
|
2828
|
+
readonly members: Array<ThreadMember>;
|
|
2829
2829
|
/** whether there are potentially additional threads that could be returned on a subsequent call */
|
|
2830
2830
|
readonly has_more: boolean;
|
|
2831
2831
|
}
|
|
@@ -2837,9 +2837,9 @@ export interface ListPublicArchivedThreadParams {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
export interface ListPublicArchivedThreadResponse {
|
|
2839
2839
|
/** the public, archived threads */
|
|
2840
|
-
readonly threads: Channel
|
|
2840
|
+
readonly threads: Array<Channel>;
|
|
2841
2841
|
/** a thread member object for each returned thread the current user has joined */
|
|
2842
|
-
readonly members: ThreadMember
|
|
2842
|
+
readonly members: Array<ThreadMember>;
|
|
2843
2843
|
/** whether there are potentially additional threads that could be returned on a subsequent call */
|
|
2844
2844
|
readonly has_more: boolean;
|
|
2845
2845
|
}
|
|
@@ -2939,17 +2939,17 @@ export interface Message {
|
|
|
2939
2939
|
/** whether this message mentions everyone */
|
|
2940
2940
|
readonly mention_everyone: boolean;
|
|
2941
2941
|
/** users specifically mentioned in the message */
|
|
2942
|
-
readonly mentions: User
|
|
2942
|
+
readonly mentions: Array<User>;
|
|
2943
2943
|
/** roles specifically mentioned in this message */
|
|
2944
|
-
readonly mention_roles: Snowflake
|
|
2944
|
+
readonly mention_roles: Array<Snowflake>;
|
|
2945
2945
|
/** channels specifically mentioned in this message */
|
|
2946
|
-
readonly mention_channels?: ChannelMention
|
|
2946
|
+
readonly mention_channels?: Array<ChannelMention>;
|
|
2947
2947
|
/** any attached files */
|
|
2948
|
-
readonly attachments: Attachment
|
|
2948
|
+
readonly attachments: Array<Attachment>;
|
|
2949
2949
|
/** any embedded content */
|
|
2950
|
-
readonly embeds: Embed
|
|
2950
|
+
readonly embeds: Array<Embed>;
|
|
2951
2951
|
/** reactions to the message */
|
|
2952
|
-
readonly reactions?: Reaction
|
|
2952
|
+
readonly reactions?: Array<Reaction>;
|
|
2953
2953
|
/** used for validating a message was sent */
|
|
2954
2954
|
readonly nonce?: string;
|
|
2955
2955
|
/** whether this message is pinned */
|
|
@@ -2975,11 +2975,11 @@ export interface Message {
|
|
|
2975
2975
|
/** the thread that was started from this message, includes thread member object */
|
|
2976
2976
|
readonly thread?: Channel;
|
|
2977
2977
|
/** sent if the message contains components like buttons, action rows, or other interactive components */
|
|
2978
|
-
readonly components?: Component
|
|
2978
|
+
readonly components?: Array<Component>;
|
|
2979
2979
|
/** sent if the message contains stickers */
|
|
2980
|
-
readonly sticker_items?: StickerItem
|
|
2980
|
+
readonly sticker_items?: Array<StickerItem>;
|
|
2981
2981
|
/** Deprecated the stickers sent with the message */
|
|
2982
|
-
readonly stickers?: Sticker
|
|
2982
|
+
readonly stickers?: Array<Sticker>;
|
|
2983
2983
|
/** 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 */
|
|
2984
2984
|
readonly position?: number;
|
|
2985
2985
|
/** data of the role subscription purchase or renewal that prompted this ROLE_SUBSCRIPTION_PURCHASE message */
|
|
@@ -3003,7 +3003,7 @@ export interface MessageComponentDatum {
|
|
|
3003
3003
|
/** the type of the component */
|
|
3004
3004
|
readonly component_type: ComponentType;
|
|
3005
3005
|
/** values the user selected in a select menu component */
|
|
3006
|
-
readonly values?: SelectOption
|
|
3006
|
+
readonly values?: Array<SelectOption>;
|
|
3007
3007
|
}
|
|
3008
3008
|
export type MessageCreateEvent = Message & MessageCreateExtra;
|
|
3009
3009
|
export interface MessageCreateExtra {
|
|
@@ -3012,11 +3012,11 @@ export interface MessageCreateExtra {
|
|
|
3012
3012
|
/** Member properties for this message's author. Missing for ephemeral messages and messages from webhooks */
|
|
3013
3013
|
readonly member?: GuildMember;
|
|
3014
3014
|
/** Users specifically mentioned in the message */
|
|
3015
|
-
readonly mentions: User
|
|
3015
|
+
readonly mentions: Array<User>;
|
|
3016
3016
|
}
|
|
3017
3017
|
export interface MessageDeleteBulkEvent {
|
|
3018
3018
|
/** IDs of the messages */
|
|
3019
|
-
readonly ids: Snowflake
|
|
3019
|
+
readonly ids: Array<Snowflake>;
|
|
3020
3020
|
/** ID of the channel */
|
|
3021
3021
|
readonly channel_id: Snowflake;
|
|
3022
3022
|
/** ID of the guild */
|
|
@@ -3166,7 +3166,7 @@ export interface ModalSubmitDatum {
|
|
|
3166
3166
|
/** the custom_id of the modal */
|
|
3167
3167
|
readonly custom_id: string;
|
|
3168
3168
|
/** the values submitted by the user */
|
|
3169
|
-
readonly components: Component
|
|
3169
|
+
readonly components: Array<Component>;
|
|
3170
3170
|
}
|
|
3171
3171
|
export interface ModifyAutoModerationRuleParams {
|
|
3172
3172
|
/** the rule name */
|
|
@@ -3176,13 +3176,13 @@ export interface ModifyAutoModerationRuleParams {
|
|
|
3176
3176
|
/** the trigger metadata */
|
|
3177
3177
|
readonly trigger_metadata?: TriggerMetadatum;
|
|
3178
3178
|
/** the actions which will execute when the rule is triggered */
|
|
3179
|
-
readonly actions: AutoModerationAction
|
|
3179
|
+
readonly actions: Array<AutoModerationAction>;
|
|
3180
3180
|
/** whether the rule is enabled */
|
|
3181
3181
|
readonly enabled: boolean;
|
|
3182
3182
|
/** the role ids that should not be affected by the rule (Maximum of 20) */
|
|
3183
|
-
readonly exempt_roles: Snowflake
|
|
3183
|
+
readonly exempt_roles: Array<Snowflake>;
|
|
3184
3184
|
/** the channel ids that should not be affected by the rule (Maximum of 50) */
|
|
3185
|
-
readonly exempt_channels: Snowflake
|
|
3185
|
+
readonly exempt_channels: Array<Snowflake>;
|
|
3186
3186
|
}
|
|
3187
3187
|
export interface ModifyChannelGroupDmParams {
|
|
3188
3188
|
/** 1-100 character channel name */
|
|
@@ -3208,7 +3208,7 @@ export interface ModifyChannelGuildChannelParams {
|
|
|
3208
3208
|
/** 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) */
|
|
3209
3209
|
readonly user_limit?: number | null;
|
|
3210
3210
|
/** channel or category-specific permissions */
|
|
3211
|
-
readonly permission_overwrites?: Overwrite
|
|
3211
|
+
readonly permission_overwrites?: Array<Overwrite> | null;
|
|
3212
3212
|
/** id of the new parent category for a channel */
|
|
3213
3213
|
readonly parent_id?: Snowflake | null;
|
|
3214
3214
|
/** channel voice region id, automatic when set to null */
|
|
@@ -3220,7 +3220,7 @@ export interface ModifyChannelGuildChannelParams {
|
|
|
3220
3220
|
/** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported. */
|
|
3221
3221
|
readonly flags?: number;
|
|
3222
3222
|
/** the set of tags that can be used in a GUILD_FORUM channel; limited to 20 */
|
|
3223
|
-
readonly available_tags?: ForumTag
|
|
3223
|
+
readonly available_tags?: Array<ForumTag>;
|
|
3224
3224
|
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
|
|
3225
3225
|
readonly default_reaction_emoji?: DefaultReaction | null;
|
|
3226
3226
|
/** 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. */
|
|
@@ -3247,7 +3247,7 @@ export interface ModifyChannelThreadParams {
|
|
|
3247
3247
|
/** channel flags combined as a bitfield; PINNED can only be set for threads in forum channels */
|
|
3248
3248
|
readonly flags?: number;
|
|
3249
3249
|
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel; limited to 5 */
|
|
3250
|
-
readonly applied_tags?: Snowflake
|
|
3250
|
+
readonly applied_tags?: Array<Snowflake>;
|
|
3251
3251
|
}
|
|
3252
3252
|
export interface ModifyCurrentMemberParams {
|
|
3253
3253
|
/** value to set user's nickname to */
|
|
@@ -3285,13 +3285,13 @@ export interface ModifyGuildEmojiParams {
|
|
|
3285
3285
|
/** name of the emoji */
|
|
3286
3286
|
readonly name: string;
|
|
3287
3287
|
/** roles allowed to use this emoji */
|
|
3288
|
-
readonly roles?: Snowflake
|
|
3288
|
+
readonly roles?: Array<Snowflake> | null;
|
|
3289
3289
|
}
|
|
3290
3290
|
export interface ModifyGuildMemberParams {
|
|
3291
3291
|
/** value to set user's nickname to */
|
|
3292
3292
|
readonly nick: string;
|
|
3293
3293
|
/** array of role ids the member is assigned */
|
|
3294
|
-
readonly roles: Snowflake
|
|
3294
|
+
readonly roles: Array<Snowflake>;
|
|
3295
3295
|
/** whether the user is muted in voice channels. Will throw a 400 error if the user is not in a voice channel */
|
|
3296
3296
|
readonly mute: boolean;
|
|
3297
3297
|
/** whether the user is deafened in voice channels. Will throw a 400 error if the user is not in a voice channel */
|
|
@@ -3309,9 +3309,9 @@ export interface ModifyGuildMfaLevelParams {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
export interface ModifyGuildOnboardingParams {
|
|
3311
3311
|
/** Prompts shown during onboarding and in customize community */
|
|
3312
|
-
readonly prompts: OnboardingPrompt
|
|
3312
|
+
readonly prompts: Array<OnboardingPrompt>;
|
|
3313
3313
|
/** Channel IDs that members get opted into automatically */
|
|
3314
|
-
readonly default_channel_ids: Snowflake
|
|
3314
|
+
readonly default_channel_ids: Array<Snowflake>;
|
|
3315
3315
|
/** Whether onboarding is enabled in the guild */
|
|
3316
3316
|
readonly enabled: boolean;
|
|
3317
3317
|
/** Current mode of onboarding */
|
|
@@ -3353,7 +3353,7 @@ export interface ModifyGuildParams {
|
|
|
3353
3353
|
/** the preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" */
|
|
3354
3354
|
readonly preferred_locale?: string | null;
|
|
3355
3355
|
/** enabled guild features */
|
|
3356
|
-
readonly features: GuildFeature
|
|
3356
|
+
readonly features: Array<GuildFeature>;
|
|
3357
3357
|
/** the description for the guild */
|
|
3358
3358
|
readonly description?: string | null;
|
|
3359
3359
|
/** whether the guild's boost progress bar should be enabled */
|
|
@@ -3423,7 +3423,7 @@ export interface ModifyGuildWelcomeScreenParams {
|
|
|
3423
3423
|
/** whether the welcome screen is enabled */
|
|
3424
3424
|
readonly enabled: boolean;
|
|
3425
3425
|
/** channels linked in the welcome screen and their display options */
|
|
3426
|
-
readonly welcome_channels: WelcomeScreenChannel
|
|
3426
|
+
readonly welcome_channels: Array<WelcomeScreenChannel>;
|
|
3427
3427
|
/** the server description to show in the welcome screen */
|
|
3428
3428
|
readonly description: string;
|
|
3429
3429
|
}
|
|
@@ -3523,7 +3523,7 @@ export interface OnboardingPrompt {
|
|
|
3523
3523
|
/** Type of prompt */
|
|
3524
3524
|
readonly type: PromptType;
|
|
3525
3525
|
/** Options available within the prompt */
|
|
3526
|
-
readonly options: PromptOption
|
|
3526
|
+
readonly options: Array<PromptOption>;
|
|
3527
3527
|
/** Title of the prompt */
|
|
3528
3528
|
readonly title: string;
|
|
3529
3529
|
/** Indicates whether users are limited to selecting one option for the prompt */
|
|
@@ -3659,7 +3659,7 @@ export interface PresenceUpdateEvent {
|
|
|
3659
3659
|
/** Either "idle", "dnd", "online", or "offline" */
|
|
3660
3660
|
readonly status: string;
|
|
3661
3661
|
/** User's current activities */
|
|
3662
|
-
readonly activities: Activity
|
|
3662
|
+
readonly activities: Array<Activity>;
|
|
3663
3663
|
/** User's platform-dependent status */
|
|
3664
3664
|
readonly client_status: ClientStatus;
|
|
3665
3665
|
}
|
|
@@ -3673,9 +3673,9 @@ export interface PromptOption {
|
|
|
3673
3673
|
/** ID of the prompt option */
|
|
3674
3674
|
readonly id: Snowflake;
|
|
3675
3675
|
/** IDs for channels a member is added to when the option is selected */
|
|
3676
|
-
readonly channel_ids: Snowflake
|
|
3676
|
+
readonly channel_ids: Array<Snowflake>;
|
|
3677
3677
|
/** IDs for roles assigned to a member when the option is selected */
|
|
3678
|
-
readonly role_ids: Snowflake
|
|
3678
|
+
readonly role_ids: Array<Snowflake>;
|
|
3679
3679
|
/** Emoji of the option */
|
|
3680
3680
|
readonly emoji: Emoji;
|
|
3681
3681
|
/** Title of the option */
|
|
@@ -3701,13 +3701,13 @@ export interface ReadyEvent {
|
|
|
3701
3701
|
/** Information about the user including email */
|
|
3702
3702
|
readonly user: User;
|
|
3703
3703
|
/** Guilds the user is in */
|
|
3704
|
-
readonly guilds: UnavailableGuild
|
|
3704
|
+
readonly guilds: Array<UnavailableGuild>;
|
|
3705
3705
|
/** Used for resuming connections */
|
|
3706
3706
|
readonly session_id: string;
|
|
3707
3707
|
/** Gateway URL for resuming connections */
|
|
3708
3708
|
readonly resume_gateway_url: string;
|
|
3709
3709
|
/** Shard information associated with this session, if sent when identifying */
|
|
3710
|
-
readonly shard?: number
|
|
3710
|
+
readonly shard?: Array<number>;
|
|
3711
3711
|
/** Contains id and flags */
|
|
3712
3712
|
readonly application: Application;
|
|
3713
3713
|
}
|
|
@@ -3789,7 +3789,7 @@ export interface RequestGuildMember {
|
|
|
3789
3789
|
/** used to specify if we want the presences of the matched members */
|
|
3790
3790
|
readonly presences?: boolean;
|
|
3791
3791
|
/** used to specify which users you wish to fetch */
|
|
3792
|
-
readonly user_ids?: Snowflake
|
|
3792
|
+
readonly user_ids?: Array<Snowflake>;
|
|
3793
3793
|
/** nonce to identify the Guild Members Chunk response */
|
|
3794
3794
|
readonly nonce?: string;
|
|
3795
3795
|
}
|
|
@@ -3811,7 +3811,7 @@ export interface Response {
|
|
|
3811
3811
|
/** the current application */
|
|
3812
3812
|
readonly application: Application;
|
|
3813
3813
|
/** the scopes the user has authorized the application for */
|
|
3814
|
-
readonly scopes: string
|
|
3814
|
+
readonly scopes: Array<string>;
|
|
3815
3815
|
/** when the access token expires */
|
|
3816
3816
|
readonly expires: string;
|
|
3817
3817
|
/** the user who has authorized, if the user has authorized with the identify scope */
|
|
@@ -3819,9 +3819,9 @@ export interface Response {
|
|
|
3819
3819
|
}
|
|
3820
3820
|
export interface ResponseBody {
|
|
3821
3821
|
/** the public, archived threads */
|
|
3822
|
-
readonly threads: Channel
|
|
3822
|
+
readonly threads: Array<Channel>;
|
|
3823
3823
|
/** a thread member object for each returned thread the current user has joined */
|
|
3824
|
-
readonly members: ThreadMember
|
|
3824
|
+
readonly members: Array<ThreadMember>;
|
|
3825
3825
|
/** whether there are potentially additional threads that could be returned on a subsequent call */
|
|
3826
3826
|
readonly has_more: boolean;
|
|
3827
3827
|
}
|
|
@@ -3906,9 +3906,9 @@ export interface SelectMenu {
|
|
|
3906
3906
|
/** ID for the select menu; max 100 characters */
|
|
3907
3907
|
readonly custom_id: string;
|
|
3908
3908
|
/** Specified choices in a select menu (only required and available for string selects (type 3); max 25 */
|
|
3909
|
-
readonly options?: SelectOption
|
|
3909
|
+
readonly options?: Array<SelectOption>;
|
|
3910
3910
|
/** List of channel types to include in the channel select component (type 8) */
|
|
3911
|
-
readonly channel_types?: ChannelType
|
|
3911
|
+
readonly channel_types?: Array<ChannelType>;
|
|
3912
3912
|
/** Placeholder text if nothing is selected; max 150 characters */
|
|
3913
3913
|
readonly placeholder?: string;
|
|
3914
3914
|
/** Minimum number of items that must be chosen (defaults to 1); min 0, max 25 */
|
|
@@ -3987,19 +3987,19 @@ export interface StartThreadInForumChannelForumThreadMessageParams {
|
|
|
3987
3987
|
/** Message contents (up to 2000 characters) */
|
|
3988
3988
|
readonly content?: string;
|
|
3989
3989
|
/** Up to 10 rich embeds (up to 6000 characters) */
|
|
3990
|
-
readonly embeds?: Embed
|
|
3990
|
+
readonly embeds?: Array<Embed>;
|
|
3991
3991
|
/** Allowed mentions for the message */
|
|
3992
3992
|
readonly allowed_mentions?: AllowedMention;
|
|
3993
3993
|
/** Components to include with the message */
|
|
3994
|
-
readonly components?: Component
|
|
3994
|
+
readonly components?: Array<Component>;
|
|
3995
3995
|
/** IDs of up to 3 stickers in the server to send in the message */
|
|
3996
|
-
readonly sticker_ids?: Snowflake
|
|
3996
|
+
readonly sticker_ids?: Array<Snowflake>;
|
|
3997
3997
|
/** Contents of the file being sent. See Uploading Files */
|
|
3998
3998
|
readonly files: string;
|
|
3999
3999
|
/** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
|
|
4000
4000
|
readonly payload_json?: string;
|
|
4001
4001
|
/** Attachment objects with filename and description. See Uploading Files */
|
|
4002
|
-
readonly attachments?: Attachment
|
|
4002
|
+
readonly attachments?: Array<Attachment>;
|
|
4003
4003
|
/** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
|
|
4004
4004
|
readonly flags?: number;
|
|
4005
4005
|
}
|
|
@@ -4013,7 +4013,7 @@ export interface StartThreadInForumChannelParams {
|
|
|
4013
4013
|
/** contents of the first message in the forum thread */
|
|
4014
4014
|
readonly message: StartThreadInForumChannelForumThreadMessageParams;
|
|
4015
4015
|
/** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
|
|
4016
|
-
readonly applied_tags?: Snowflake
|
|
4016
|
+
readonly applied_tags?: Array<Snowflake>;
|
|
4017
4017
|
}
|
|
4018
4018
|
export interface StartThreadWithoutMessageParams {
|
|
4019
4019
|
/** 1-100 character channel name */
|
|
@@ -4083,7 +4083,7 @@ export interface StickerPack {
|
|
|
4083
4083
|
/** id of the sticker pack */
|
|
4084
4084
|
readonly id: Snowflake;
|
|
4085
4085
|
/** the stickers in the pack */
|
|
4086
|
-
readonly stickers: Sticker
|
|
4086
|
+
readonly stickers: Array<Sticker>;
|
|
4087
4087
|
/** name of the sticker pack */
|
|
4088
4088
|
readonly name: string;
|
|
4089
4089
|
/** id of the pack's SKU */
|
|
@@ -4121,7 +4121,7 @@ export interface Team {
|
|
|
4121
4121
|
/** the unique id of the team */
|
|
4122
4122
|
readonly id: Snowflake;
|
|
4123
4123
|
/** the members of the team */
|
|
4124
|
-
readonly members: TeamMember
|
|
4124
|
+
readonly members: Array<TeamMember>;
|
|
4125
4125
|
/** the name of the team */
|
|
4126
4126
|
readonly name: string;
|
|
4127
4127
|
/** the user id of the current team owner */
|
|
@@ -4131,7 +4131,7 @@ export interface TeamMember {
|
|
|
4131
4131
|
/** the user's membership state on the team */
|
|
4132
4132
|
readonly membership_state: MembershipState;
|
|
4133
4133
|
/** will always be ["*"] */
|
|
4134
|
-
readonly permissions: string
|
|
4134
|
+
readonly permissions: Array<string>;
|
|
4135
4135
|
/** the id of the parent team of which they are a member */
|
|
4136
4136
|
readonly team_id: Snowflake;
|
|
4137
4137
|
/** the avatar, discriminator, id, and username of the user */
|
|
@@ -4169,11 +4169,11 @@ export interface ThreadListSyncEvent {
|
|
|
4169
4169
|
/** ID of the guild */
|
|
4170
4170
|
readonly guild_id: Snowflake;
|
|
4171
4171
|
/** 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. */
|
|
4172
|
-
readonly channel_ids?: Snowflake
|
|
4172
|
+
readonly channel_ids?: Array<Snowflake>;
|
|
4173
4173
|
/** All active threads in the given channels that the current user can access */
|
|
4174
|
-
readonly threads: Channel
|
|
4174
|
+
readonly threads: Array<Channel>;
|
|
4175
4175
|
/** All thread member objects from the synced threads for the current user, indicating which threads the current user has been added to */
|
|
4176
|
-
readonly members: ThreadMember
|
|
4176
|
+
readonly members: Array<ThreadMember>;
|
|
4177
4177
|
}
|
|
4178
4178
|
export interface ThreadMember {
|
|
4179
4179
|
/** ID of the thread */
|
|
@@ -4195,9 +4195,9 @@ export interface ThreadMembersUpdateEvent {
|
|
|
4195
4195
|
/** Approximate number of members in the thread, capped at 50 */
|
|
4196
4196
|
readonly member_count: number;
|
|
4197
4197
|
/** Users who were added to the thread */
|
|
4198
|
-
readonly added_members?: ThreadMember
|
|
4198
|
+
readonly added_members?: Array<ThreadMember>;
|
|
4199
4199
|
/** ID of the users who were removed from the thread */
|
|
4200
|
-
readonly removed_member_ids?: Snowflake
|
|
4200
|
+
readonly removed_member_ids?: Array<Snowflake>;
|
|
4201
4201
|
}
|
|
4202
4202
|
export type ThreadMemberUpdateEvent = ThreadMember;
|
|
4203
4203
|
export interface ThreadMemberUpdateEventExtra {
|
|
@@ -4221,13 +4221,13 @@ export interface ThreadMetadatum {
|
|
|
4221
4221
|
export type ThreadUpdateEvent = Channel;
|
|
4222
4222
|
export interface TriggerMetadatum {
|
|
4223
4223
|
/** KEYWORD */
|
|
4224
|
-
readonly keyword_filter: string
|
|
4224
|
+
readonly keyword_filter: Array<string>;
|
|
4225
4225
|
/** KEYWORD */
|
|
4226
|
-
readonly regex_patterns: string
|
|
4226
|
+
readonly regex_patterns: Array<string>;
|
|
4227
4227
|
/** KEYWORD_PRESET */
|
|
4228
|
-
readonly presets: KeywordPresetType
|
|
4228
|
+
readonly presets: Array<KeywordPresetType>;
|
|
4229
4229
|
/** KEYWORD, KEYWORD_PRESET */
|
|
4230
|
-
readonly allow_list: string
|
|
4230
|
+
readonly allow_list: Array<string>;
|
|
4231
4231
|
/** MENTION_SPAM */
|
|
4232
4232
|
readonly mention_total_limit: number;
|
|
4233
4233
|
/** MENTION_SPAM */
|
|
@@ -4265,7 +4265,7 @@ export interface UpdatePresence {
|
|
|
4265
4265
|
/** Unix time (in milliseconds) of when the client went idle, or null if the client is not idle */
|
|
4266
4266
|
readonly since?: number | null;
|
|
4267
4267
|
/** User's activities */
|
|
4268
|
-
readonly activities: Activity
|
|
4268
|
+
readonly activities: Array<Activity>;
|
|
4269
4269
|
/** User's new status */
|
|
4270
4270
|
readonly status: StatusType;
|
|
4271
4271
|
/** Whether or not the client is afk */
|
|
@@ -4499,7 +4499,7 @@ export interface WelcomeScreen {
|
|
|
4499
4499
|
/** the server description shown in the welcome screen */
|
|
4500
4500
|
readonly description?: string | null;
|
|
4501
4501
|
/** the channels shown in the welcome screen, up to 5 */
|
|
4502
|
-
readonly welcome_channels: WelcomeScreenChannel
|
|
4502
|
+
readonly welcome_channels: Array<WelcomeScreenChannel>;
|
|
4503
4503
|
}
|
|
4504
4504
|
export interface WelcomeScreenChannel {
|
|
4505
4505
|
/** the channel's id */
|