dfx 0.97.2 → 0.97.4
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.d.ts +1 -4
- package/Cache.d.ts.map +1 -1
- package/DiscordGateway/Shard/StateStore.d.ts +1 -4
- package/DiscordGateway/Shard/StateStore.d.ts.map +1 -1
- package/DiscordGateway/Shard.d.ts +1 -1
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordGateway.d.ts +1 -1
- package/DiscordREST.d.ts +1 -1
- package/Interactions/context.d.ts +1 -1
- package/Interactions/definitions.d.ts +5 -5
- package/gateway.d.ts +2 -2
- package/mjs/types.mjs +26 -1
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +3 -3
- package/src/types.ts +79 -16
- package/src/version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -0
- package/types.d.ts +80 -17
- package/types.d.ts.map +1 -1
- package/types.js +27 -2
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/DiscordGateway/Shard/invalidSession.d.ts +0 -7
- package/DiscordGateway/Shard/invalidSession.d.ts.map +0 -1
- package/DiscordGateway/Shard/invalidSession.js +0 -15
- package/DiscordGateway/Shard/invalidSession.js.map +0 -1
- package/mjs/DiscordGateway/Shard/invalidSession.mjs +0 -6
- package/mjs/DiscordGateway/Shard/invalidSession.mjs.map +0 -1
package/src/types.ts
CHANGED
|
@@ -278,23 +278,23 @@ export interface ApplicationCommandOption {
|
|
|
278
278
|
readonly description: string
|
|
279
279
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
280
280
|
readonly description_localizations?: Locale | null
|
|
281
|
-
/**
|
|
281
|
+
/** Whether the parameter is required or optional, default false */
|
|
282
282
|
readonly required?: boolean
|
|
283
|
-
/** Choices for
|
|
283
|
+
/** Choices for the user to pick from, max 25 */
|
|
284
284
|
readonly choices?: Array<ApplicationCommandOptionChoice>
|
|
285
|
-
/** If the option is a subcommand or subcommand group type, these nested options will be the parameters */
|
|
285
|
+
/** If the option is a subcommand or subcommand group type, these nested options will be the parameters or subcommands respectively; up to 25 */
|
|
286
286
|
readonly options?: Array<ApplicationCommandOption>
|
|
287
|
-
/**
|
|
287
|
+
/** The channels shown will be restricted to these types */
|
|
288
288
|
readonly channel_types?: Array<ChannelType>
|
|
289
|
-
/**
|
|
289
|
+
/** The minimum value permitted */
|
|
290
290
|
readonly min_value?: number
|
|
291
|
-
/**
|
|
291
|
+
/** The maximum value permitted */
|
|
292
292
|
readonly max_value?: number
|
|
293
|
-
/**
|
|
293
|
+
/** The minimum allowed length (minimum of 0, maximum of 6000) */
|
|
294
294
|
readonly min_length?: number
|
|
295
|
-
/**
|
|
295
|
+
/** The maximum allowed length (minimum of 1, maximum of 6000) */
|
|
296
296
|
readonly max_length?: number
|
|
297
|
-
/** If autocomplete interactions are enabled for this
|
|
297
|
+
/** If autocomplete interactions are enabled for this option */
|
|
298
298
|
readonly autocomplete?: boolean
|
|
299
299
|
}
|
|
300
300
|
export interface ApplicationCommandOptionChoice {
|
|
@@ -622,6 +622,20 @@ export enum AuditLogEvent {
|
|
|
622
622
|
CREATOR_MONETIZATION_REQUEST_CREATED = 150,
|
|
623
623
|
/** Creator monetization terms were accepted */
|
|
624
624
|
CREATOR_MONETIZATION_TERMS_ACCEPTED = 151,
|
|
625
|
+
/** Guild Onboarding Question was created */
|
|
626
|
+
ONBOARDING_PROMPT_CREATE = 163,
|
|
627
|
+
/** Guild Onboarding Question was updated */
|
|
628
|
+
ONBOARDING_PROMPT_UPDATE = 164,
|
|
629
|
+
/** Guild Onboarding Question was deleted */
|
|
630
|
+
ONBOARDING_PROMPT_DELETE = 165,
|
|
631
|
+
/** Guild Onboarding was created */
|
|
632
|
+
ONBOARDING_CREATE = 166,
|
|
633
|
+
/** Guild Onboarding was updated */
|
|
634
|
+
ONBOARDING_UPDATE = 167,
|
|
635
|
+
/** Guild Server Guide was created */
|
|
636
|
+
HOME_SETTINGS_CREATE = 190,
|
|
637
|
+
/** Guild Server Guide was updated */
|
|
638
|
+
HOME_SETTINGS_UPDATE = 191,
|
|
625
639
|
}
|
|
626
640
|
export interface AutoModerationAction {
|
|
627
641
|
/** the type of action */
|
|
@@ -680,6 +694,12 @@ export interface AutoModerationRule {
|
|
|
680
694
|
export type AutoModerationRuleCreateEvent = AutoModerationRule
|
|
681
695
|
export type AutoModerationRuleDeleteEvent = AutoModerationRule
|
|
682
696
|
export type AutoModerationRuleUpdateEvent = AutoModerationRule
|
|
697
|
+
export interface AvatarDecorationDatum {
|
|
698
|
+
/** the avatar decoration hash */
|
|
699
|
+
readonly asset: string
|
|
700
|
+
/** id of the avatar decoration's SKU */
|
|
701
|
+
readonly sku_id: Snowflake
|
|
702
|
+
}
|
|
683
703
|
export interface Ban {
|
|
684
704
|
/** the reason for the ban */
|
|
685
705
|
readonly reason?: string | null
|
|
@@ -994,7 +1014,7 @@ export interface CreateGlobalApplicationCommandParams {
|
|
|
994
1014
|
readonly description?: string
|
|
995
1015
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
996
1016
|
readonly description_localizations?: Locale | null
|
|
997
|
-
/** the parameters for the command */
|
|
1017
|
+
/** the parameters for the command, max of 25 */
|
|
998
1018
|
readonly options?: Array<ApplicationCommandOption>
|
|
999
1019
|
/** Set of permissions represented as a bit set */
|
|
1000
1020
|
readonly default_member_permissions?: string | null
|
|
@@ -1026,7 +1046,7 @@ export interface CreateGuildApplicationCommandParams {
|
|
|
1026
1046
|
readonly description?: string
|
|
1027
1047
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
1028
1048
|
readonly description_localizations?: Locale | null
|
|
1029
|
-
/** Parameters for the command */
|
|
1049
|
+
/** Parameters for the command, max of 25 */
|
|
1030
1050
|
readonly options?: Array<ApplicationCommandOption>
|
|
1031
1051
|
/** Set of permissions represented as a bit set */
|
|
1032
1052
|
readonly default_member_permissions?: string | null
|
|
@@ -2620,7 +2640,7 @@ export interface EditGuildApplicationCommandParams {
|
|
|
2620
2640
|
readonly description?: string
|
|
2621
2641
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
2622
2642
|
readonly description_localizations?: Locale | null
|
|
2623
|
-
/** Parameters for the command */
|
|
2643
|
+
/** Parameters for the command, max of 25 */
|
|
2624
2644
|
readonly options?: Array<ApplicationCommandOption>
|
|
2625
2645
|
/** Set of permissions represented as a bit set */
|
|
2626
2646
|
readonly default_member_permissions?: string | null
|
|
@@ -4129,6 +4149,8 @@ export interface GetInviteParams {
|
|
|
4129
4149
|
readonly guild_scheduled_event_id?: Snowflake
|
|
4130
4150
|
}
|
|
4131
4151
|
export interface GetReactionParams {
|
|
4152
|
+
/** The type of reaction */
|
|
4153
|
+
readonly type?: ReactionType
|
|
4132
4154
|
/** Get users after this user ID */
|
|
4133
4155
|
readonly after?: Snowflake
|
|
4134
4156
|
/** Max number of users to return (1-100) */
|
|
@@ -4247,6 +4269,10 @@ export interface GuildApplicationCommandPermission {
|
|
|
4247
4269
|
readonly permissions: Array<ApplicationCommandPermission>
|
|
4248
4270
|
}
|
|
4249
4271
|
export type GuildAuditLogEntryCreateEvent = AuditLogEntry
|
|
4272
|
+
export interface GuildAuditLogEntryCreateEventExtra {
|
|
4273
|
+
/** ID of the guild */
|
|
4274
|
+
readonly guild_id: Snowflake
|
|
4275
|
+
}
|
|
4250
4276
|
export interface GuildBanAddEvent {
|
|
4251
4277
|
/** ID of the guild */
|
|
4252
4278
|
readonly guild_id: Snowflake
|
|
@@ -4376,6 +4402,8 @@ export interface GuildMember {
|
|
|
4376
4402
|
readonly permissions?: string
|
|
4377
4403
|
/** when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */
|
|
4378
4404
|
readonly communication_disabled_until?: string | null
|
|
4405
|
+
/** data for the member's guild avatar decoration */
|
|
4406
|
+
readonly avatar_decoration_data?: AvatarDecorationDatum | null
|
|
4379
4407
|
}
|
|
4380
4408
|
export type GuildMemberAddEvent = GuildMember & GuildMemberAddExtra
|
|
4381
4409
|
export interface GuildMemberAddExtra {
|
|
@@ -4437,6 +4465,8 @@ export interface GuildMemberUpdateEvent {
|
|
|
4437
4465
|
readonly pending?: boolean
|
|
4438
4466
|
/** When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */
|
|
4439
4467
|
readonly communication_disabled_until?: string | null
|
|
4468
|
+
/** Guild member flags represented as a bit set, defaults to 0 */
|
|
4469
|
+
readonly flags?: number
|
|
4440
4470
|
}
|
|
4441
4471
|
export enum GuildNsfwLevel {
|
|
4442
4472
|
DEFAULT = 0,
|
|
@@ -4750,6 +4780,8 @@ export interface Interaction {
|
|
|
4750
4780
|
/** Interaction data payload */
|
|
4751
4781
|
readonly data?: InteractionDatum
|
|
4752
4782
|
/** Guild that the interaction was sent from */
|
|
4783
|
+
readonly guild?: Guild
|
|
4784
|
+
/** Guild that the interaction was sent from */
|
|
4753
4785
|
readonly guild_id?: Snowflake
|
|
4754
4786
|
/** Channel that the interaction was sent from */
|
|
4755
4787
|
readonly channel?: Channel
|
|
@@ -4858,6 +4890,8 @@ export enum InteractionType {
|
|
|
4858
4890
|
}
|
|
4859
4891
|
export type InvalidSessionEvent = boolean
|
|
4860
4892
|
export interface Invite {
|
|
4893
|
+
/** the type of invite */
|
|
4894
|
+
readonly type: InviteType
|
|
4861
4895
|
/** the invite code (unique ID) */
|
|
4862
4896
|
readonly code: string
|
|
4863
4897
|
/** the guild this invite is for */
|
|
@@ -4943,6 +4977,11 @@ export enum InviteTargetType {
|
|
|
4943
4977
|
STREAM = 1,
|
|
4944
4978
|
EMBEDDED_APPLICATION = 2,
|
|
4945
4979
|
}
|
|
4980
|
+
export enum InviteType {
|
|
4981
|
+
GUILD = 0,
|
|
4982
|
+
GROUP_DM = 1,
|
|
4983
|
+
FRIEND = 2,
|
|
4984
|
+
}
|
|
4946
4985
|
export enum KeywordPresetType {
|
|
4947
4986
|
/** words that may be considered forms of swearing or cursing */
|
|
4948
4987
|
PROFANITY = 1,
|
|
@@ -5155,7 +5194,9 @@ export interface Message {
|
|
|
5155
5194
|
/** data for users, members, channels, and roles in the message's auto-populated select menus */
|
|
5156
5195
|
readonly resolved?: ResolvedDatum
|
|
5157
5196
|
/** A poll! */
|
|
5158
|
-
readonly poll?:
|
|
5197
|
+
readonly poll?: Poll
|
|
5198
|
+
/** the call associated with the message */
|
|
5199
|
+
readonly call?: MessageCall
|
|
5159
5200
|
}
|
|
5160
5201
|
export interface MessageActivity {
|
|
5161
5202
|
/** type of message activity */
|
|
@@ -5169,6 +5210,12 @@ export enum MessageActivityType {
|
|
|
5169
5210
|
LISTEN = 3,
|
|
5170
5211
|
JOIN_REQUEST = 5,
|
|
5171
5212
|
}
|
|
5213
|
+
export interface MessageCall {
|
|
5214
|
+
/** array of user object ids that participated in the call */
|
|
5215
|
+
readonly participants: Array<Snowflake>
|
|
5216
|
+
/** time when call ended */
|
|
5217
|
+
readonly ended_timestamp?: string | null
|
|
5218
|
+
}
|
|
5172
5219
|
export interface MessageComponentDatum {
|
|
5173
5220
|
/** the custom_id of the component */
|
|
5174
5221
|
readonly custom_id: string
|
|
@@ -5295,6 +5342,12 @@ export interface MessageReactionAddEvent {
|
|
|
5295
5342
|
readonly emoji: Emoji
|
|
5296
5343
|
/** ID of the user who authored the message which was reacted to */
|
|
5297
5344
|
readonly message_author_id?: Snowflake
|
|
5345
|
+
/** true if this is a super-reaction */
|
|
5346
|
+
readonly burst: boolean
|
|
5347
|
+
/** Colors used for super-reaction animation in "#rrggbb" format */
|
|
5348
|
+
readonly burst_colors?: Array<string>
|
|
5349
|
+
/** The type of reaction */
|
|
5350
|
+
readonly type: ReactionType
|
|
5298
5351
|
}
|
|
5299
5352
|
export interface MessageReactionRemoveAllEvent {
|
|
5300
5353
|
/** ID of the channel */
|
|
@@ -5325,6 +5378,10 @@ export interface MessageReactionRemoveEvent {
|
|
|
5325
5378
|
readonly guild_id?: Snowflake
|
|
5326
5379
|
/** Emoji used to react - example */
|
|
5327
5380
|
readonly emoji: Emoji
|
|
5381
|
+
/** true if this was a super-reaction */
|
|
5382
|
+
readonly burst: boolean
|
|
5383
|
+
/** The type of reaction */
|
|
5384
|
+
readonly type: ReactionType
|
|
5328
5385
|
}
|
|
5329
5386
|
export interface MessageReference {
|
|
5330
5387
|
/** id of the originating message */
|
|
@@ -5479,6 +5536,8 @@ export interface ModifyCurrentUserParams {
|
|
|
5479
5536
|
readonly username: string
|
|
5480
5537
|
/** if passed, modifies the user's avatar */
|
|
5481
5538
|
readonly avatar?: string | null
|
|
5539
|
+
/** if passed, modifies the user's banner */
|
|
5540
|
+
readonly banner?: string | null
|
|
5482
5541
|
}
|
|
5483
5542
|
export interface ModifyCurrentUserVoiceStateParams {
|
|
5484
5543
|
/** the id of the channel the user is currently in */
|
|
@@ -5988,6 +6047,10 @@ export interface ReactionCountDetail {
|
|
|
5988
6047
|
/** Count of normal reactions */
|
|
5989
6048
|
readonly normal: number
|
|
5990
6049
|
}
|
|
6050
|
+
export enum ReactionType {
|
|
6051
|
+
NORMAL = 0,
|
|
6052
|
+
BURST = 1,
|
|
6053
|
+
}
|
|
5991
6054
|
export interface ReadyEvent {
|
|
5992
6055
|
/** API version */
|
|
5993
6056
|
readonly v: number
|
|
@@ -6541,7 +6604,7 @@ export enum TeamMemberRoleType {
|
|
|
6541
6604
|
ADMIN = "admin",
|
|
6542
6605
|
/** Developers can access information about team-owned apps, like the client secret or public key. They can also take limited actions on team-owned apps, like configuring interaction endpoints or resetting the bot token. Members with the Developer role cannot manage the team or its members, or take destructive actions on team-owned apps. */
|
|
6543
6606
|
DEVELOPER = "developer",
|
|
6544
|
-
/** Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. */
|
|
6607
|
+
/** Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. Members can also invite bots associated with team-owned apps that are marked private. */
|
|
6545
6608
|
READONLY = "read_only",
|
|
6546
6609
|
}
|
|
6547
6610
|
export interface TextInput {
|
|
@@ -6729,8 +6792,8 @@ export interface User {
|
|
|
6729
6792
|
readonly premium_type?: PremiumType
|
|
6730
6793
|
/** the public flags on a user's account */
|
|
6731
6794
|
readonly public_flags?: number
|
|
6732
|
-
/** the user's avatar decoration
|
|
6733
|
-
readonly
|
|
6795
|
+
/** data for the user's avatar decoration */
|
|
6796
|
+
readonly avatar_decoration_data?: AvatarDecorationDatum | null
|
|
6734
6797
|
}
|
|
6735
6798
|
export const UserFlag = {
|
|
6736
6799
|
/** Discord Employee */
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.97.
|
|
1
|
+
export const LIB_VERSION = "0.97.4";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":[],"fileInfos":[],"root":[],"options":{"allowJs":false,"checkJs":false,"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":7,"noEmitOnError":false,"noErrorTruncation":false,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":false,"noImplicitThis":true,"noUncheckedIndexedAccess":false,"noUnusedLocals":true,"noUnusedParameters":false,"removeComments":false,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"stripInternal":true,"target":99},"referencedMap":[],"exportedModulesMap":[]},"version":"5.4.5"}
|
package/types.d.ts
CHANGED
|
@@ -277,23 +277,23 @@ export interface ApplicationCommandOption {
|
|
|
277
277
|
readonly description: string;
|
|
278
278
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
279
279
|
readonly description_localizations?: Locale | null;
|
|
280
|
-
/**
|
|
280
|
+
/** Whether the parameter is required or optional, default false */
|
|
281
281
|
readonly required?: boolean;
|
|
282
|
-
/** Choices for
|
|
282
|
+
/** Choices for the user to pick from, max 25 */
|
|
283
283
|
readonly choices?: Array<ApplicationCommandOptionChoice>;
|
|
284
|
-
/** If the option is a subcommand or subcommand group type, these nested options will be the parameters */
|
|
284
|
+
/** If the option is a subcommand or subcommand group type, these nested options will be the parameters or subcommands respectively; up to 25 */
|
|
285
285
|
readonly options?: Array<ApplicationCommandOption>;
|
|
286
|
-
/**
|
|
286
|
+
/** The channels shown will be restricted to these types */
|
|
287
287
|
readonly channel_types?: Array<ChannelType>;
|
|
288
|
-
/**
|
|
288
|
+
/** The minimum value permitted */
|
|
289
289
|
readonly min_value?: number;
|
|
290
|
-
/**
|
|
290
|
+
/** The maximum value permitted */
|
|
291
291
|
readonly max_value?: number;
|
|
292
|
-
/**
|
|
292
|
+
/** The minimum allowed length (minimum of 0, maximum of 6000) */
|
|
293
293
|
readonly min_length?: number;
|
|
294
|
-
/**
|
|
294
|
+
/** The maximum allowed length (minimum of 1, maximum of 6000) */
|
|
295
295
|
readonly max_length?: number;
|
|
296
|
-
/** If autocomplete interactions are enabled for this
|
|
296
|
+
/** If autocomplete interactions are enabled for this option */
|
|
297
297
|
readonly autocomplete?: boolean;
|
|
298
298
|
}
|
|
299
299
|
export interface ApplicationCommandOptionChoice {
|
|
@@ -619,7 +619,21 @@ export declare enum AuditLogEvent {
|
|
|
619
619
|
/** Creator monetization request was created */
|
|
620
620
|
CREATOR_MONETIZATION_REQUEST_CREATED = 150,
|
|
621
621
|
/** Creator monetization terms were accepted */
|
|
622
|
-
CREATOR_MONETIZATION_TERMS_ACCEPTED = 151
|
|
622
|
+
CREATOR_MONETIZATION_TERMS_ACCEPTED = 151,
|
|
623
|
+
/** Guild Onboarding Question was created */
|
|
624
|
+
ONBOARDING_PROMPT_CREATE = 163,
|
|
625
|
+
/** Guild Onboarding Question was updated */
|
|
626
|
+
ONBOARDING_PROMPT_UPDATE = 164,
|
|
627
|
+
/** Guild Onboarding Question was deleted */
|
|
628
|
+
ONBOARDING_PROMPT_DELETE = 165,
|
|
629
|
+
/** Guild Onboarding was created */
|
|
630
|
+
ONBOARDING_CREATE = 166,
|
|
631
|
+
/** Guild Onboarding was updated */
|
|
632
|
+
ONBOARDING_UPDATE = 167,
|
|
633
|
+
/** Guild Server Guide was created */
|
|
634
|
+
HOME_SETTINGS_CREATE = 190,
|
|
635
|
+
/** Guild Server Guide was updated */
|
|
636
|
+
HOME_SETTINGS_UPDATE = 191
|
|
623
637
|
}
|
|
624
638
|
export interface AutoModerationAction {
|
|
625
639
|
/** the type of action */
|
|
@@ -678,6 +692,12 @@ export interface AutoModerationRule {
|
|
|
678
692
|
export type AutoModerationRuleCreateEvent = AutoModerationRule;
|
|
679
693
|
export type AutoModerationRuleDeleteEvent = AutoModerationRule;
|
|
680
694
|
export type AutoModerationRuleUpdateEvent = AutoModerationRule;
|
|
695
|
+
export interface AvatarDecorationDatum {
|
|
696
|
+
/** the avatar decoration hash */
|
|
697
|
+
readonly asset: string;
|
|
698
|
+
/** id of the avatar decoration's SKU */
|
|
699
|
+
readonly sku_id: Snowflake;
|
|
700
|
+
}
|
|
681
701
|
export interface Ban {
|
|
682
702
|
/** the reason for the ban */
|
|
683
703
|
readonly reason?: string | null;
|
|
@@ -992,7 +1012,7 @@ export interface CreateGlobalApplicationCommandParams {
|
|
|
992
1012
|
readonly description?: string;
|
|
993
1013
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
994
1014
|
readonly description_localizations?: Locale | null;
|
|
995
|
-
/** the parameters for the command */
|
|
1015
|
+
/** the parameters for the command, max of 25 */
|
|
996
1016
|
readonly options?: Array<ApplicationCommandOption>;
|
|
997
1017
|
/** Set of permissions represented as a bit set */
|
|
998
1018
|
readonly default_member_permissions?: string | null;
|
|
@@ -1024,7 +1044,7 @@ export interface CreateGuildApplicationCommandParams {
|
|
|
1024
1044
|
readonly description?: string;
|
|
1025
1045
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
1026
1046
|
readonly description_localizations?: Locale | null;
|
|
1027
|
-
/** Parameters for the command */
|
|
1047
|
+
/** Parameters for the command, max of 25 */
|
|
1028
1048
|
readonly options?: Array<ApplicationCommandOption>;
|
|
1029
1049
|
/** Set of permissions represented as a bit set */
|
|
1030
1050
|
readonly default_member_permissions?: string | null;
|
|
@@ -1303,7 +1323,7 @@ export interface EditGuildApplicationCommandParams {
|
|
|
1303
1323
|
readonly description?: string;
|
|
1304
1324
|
/** Localization dictionary for the description field. Values follow the same restrictions as description */
|
|
1305
1325
|
readonly description_localizations?: Locale | null;
|
|
1306
|
-
/** Parameters for the command */
|
|
1326
|
+
/** Parameters for the command, max of 25 */
|
|
1307
1327
|
readonly options?: Array<ApplicationCommandOption>;
|
|
1308
1328
|
/** Set of permissions represented as a bit set */
|
|
1309
1329
|
readonly default_member_permissions?: string | null;
|
|
@@ -2150,6 +2170,8 @@ export interface GetInviteParams {
|
|
|
2150
2170
|
readonly guild_scheduled_event_id?: Snowflake;
|
|
2151
2171
|
}
|
|
2152
2172
|
export interface GetReactionParams {
|
|
2173
|
+
/** The type of reaction */
|
|
2174
|
+
readonly type?: ReactionType;
|
|
2153
2175
|
/** Get users after this user ID */
|
|
2154
2176
|
readonly after?: Snowflake;
|
|
2155
2177
|
/** Max number of users to return (1-100) */
|
|
@@ -2268,6 +2290,10 @@ export interface GuildApplicationCommandPermission {
|
|
|
2268
2290
|
readonly permissions: Array<ApplicationCommandPermission>;
|
|
2269
2291
|
}
|
|
2270
2292
|
export type GuildAuditLogEntryCreateEvent = AuditLogEntry;
|
|
2293
|
+
export interface GuildAuditLogEntryCreateEventExtra {
|
|
2294
|
+
/** ID of the guild */
|
|
2295
|
+
readonly guild_id: Snowflake;
|
|
2296
|
+
}
|
|
2271
2297
|
export interface GuildBanAddEvent {
|
|
2272
2298
|
/** ID of the guild */
|
|
2273
2299
|
readonly guild_id: Snowflake;
|
|
@@ -2397,6 +2423,8 @@ export interface GuildMember {
|
|
|
2397
2423
|
readonly permissions?: string;
|
|
2398
2424
|
/** when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */
|
|
2399
2425
|
readonly communication_disabled_until?: string | null;
|
|
2426
|
+
/** data for the member's guild avatar decoration */
|
|
2427
|
+
readonly avatar_decoration_data?: AvatarDecorationDatum | null;
|
|
2400
2428
|
}
|
|
2401
2429
|
export type GuildMemberAddEvent = GuildMember & GuildMemberAddExtra;
|
|
2402
2430
|
export interface GuildMemberAddExtra {
|
|
@@ -2458,6 +2486,8 @@ export interface GuildMemberUpdateEvent {
|
|
|
2458
2486
|
readonly pending?: boolean;
|
|
2459
2487
|
/** When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */
|
|
2460
2488
|
readonly communication_disabled_until?: string | null;
|
|
2489
|
+
/** Guild member flags represented as a bit set, defaults to 0 */
|
|
2490
|
+
readonly flags?: number;
|
|
2461
2491
|
}
|
|
2462
2492
|
export declare enum GuildNsfwLevel {
|
|
2463
2493
|
DEFAULT = 0,
|
|
@@ -2769,6 +2799,8 @@ export interface Interaction {
|
|
|
2769
2799
|
/** Interaction data payload */
|
|
2770
2800
|
readonly data?: InteractionDatum;
|
|
2771
2801
|
/** Guild that the interaction was sent from */
|
|
2802
|
+
readonly guild?: Guild;
|
|
2803
|
+
/** Guild that the interaction was sent from */
|
|
2772
2804
|
readonly guild_id?: Snowflake;
|
|
2773
2805
|
/** Channel that the interaction was sent from */
|
|
2774
2806
|
readonly channel?: Channel;
|
|
@@ -2871,6 +2903,8 @@ export declare enum InteractionType {
|
|
|
2871
2903
|
}
|
|
2872
2904
|
export type InvalidSessionEvent = boolean;
|
|
2873
2905
|
export interface Invite {
|
|
2906
|
+
/** the type of invite */
|
|
2907
|
+
readonly type: InviteType;
|
|
2874
2908
|
/** the invite code (unique ID) */
|
|
2875
2909
|
readonly code: string;
|
|
2876
2910
|
/** the guild this invite is for */
|
|
@@ -2956,6 +2990,11 @@ export declare enum InviteTargetType {
|
|
|
2956
2990
|
STREAM = 1,
|
|
2957
2991
|
EMBEDDED_APPLICATION = 2
|
|
2958
2992
|
}
|
|
2993
|
+
export declare enum InviteType {
|
|
2994
|
+
GUILD = 0,
|
|
2995
|
+
GROUP_DM = 1,
|
|
2996
|
+
FRIEND = 2
|
|
2997
|
+
}
|
|
2959
2998
|
export declare enum KeywordPresetType {
|
|
2960
2999
|
/** words that may be considered forms of swearing or cursing */
|
|
2961
3000
|
PROFANITY = 1,
|
|
@@ -3168,7 +3207,9 @@ export interface Message {
|
|
|
3168
3207
|
/** data for users, members, channels, and roles in the message's auto-populated select menus */
|
|
3169
3208
|
readonly resolved?: ResolvedDatum;
|
|
3170
3209
|
/** A poll! */
|
|
3171
|
-
readonly poll?:
|
|
3210
|
+
readonly poll?: Poll;
|
|
3211
|
+
/** the call associated with the message */
|
|
3212
|
+
readonly call?: MessageCall;
|
|
3172
3213
|
}
|
|
3173
3214
|
export interface MessageActivity {
|
|
3174
3215
|
/** type of message activity */
|
|
@@ -3182,6 +3223,12 @@ export declare enum MessageActivityType {
|
|
|
3182
3223
|
LISTEN = 3,
|
|
3183
3224
|
JOIN_REQUEST = 5
|
|
3184
3225
|
}
|
|
3226
|
+
export interface MessageCall {
|
|
3227
|
+
/** array of user object ids that participated in the call */
|
|
3228
|
+
readonly participants: Array<Snowflake>;
|
|
3229
|
+
/** time when call ended */
|
|
3230
|
+
readonly ended_timestamp?: string | null;
|
|
3231
|
+
}
|
|
3185
3232
|
export interface MessageComponentDatum {
|
|
3186
3233
|
/** the custom_id of the component */
|
|
3187
3234
|
readonly custom_id: string;
|
|
@@ -3308,6 +3355,12 @@ export interface MessageReactionAddEvent {
|
|
|
3308
3355
|
readonly emoji: Emoji;
|
|
3309
3356
|
/** ID of the user who authored the message which was reacted to */
|
|
3310
3357
|
readonly message_author_id?: Snowflake;
|
|
3358
|
+
/** true if this is a super-reaction */
|
|
3359
|
+
readonly burst: boolean;
|
|
3360
|
+
/** Colors used for super-reaction animation in "#rrggbb" format */
|
|
3361
|
+
readonly burst_colors?: Array<string>;
|
|
3362
|
+
/** The type of reaction */
|
|
3363
|
+
readonly type: ReactionType;
|
|
3311
3364
|
}
|
|
3312
3365
|
export interface MessageReactionRemoveAllEvent {
|
|
3313
3366
|
/** ID of the channel */
|
|
@@ -3338,6 +3391,10 @@ export interface MessageReactionRemoveEvent {
|
|
|
3338
3391
|
readonly guild_id?: Snowflake;
|
|
3339
3392
|
/** Emoji used to react - example */
|
|
3340
3393
|
readonly emoji: Emoji;
|
|
3394
|
+
/** true if this was a super-reaction */
|
|
3395
|
+
readonly burst: boolean;
|
|
3396
|
+
/** The type of reaction */
|
|
3397
|
+
readonly type: ReactionType;
|
|
3341
3398
|
}
|
|
3342
3399
|
export interface MessageReference {
|
|
3343
3400
|
/** id of the originating message */
|
|
@@ -3489,6 +3546,8 @@ export interface ModifyCurrentUserParams {
|
|
|
3489
3546
|
readonly username: string;
|
|
3490
3547
|
/** if passed, modifies the user's avatar */
|
|
3491
3548
|
readonly avatar?: string | null;
|
|
3549
|
+
/** if passed, modifies the user's banner */
|
|
3550
|
+
readonly banner?: string | null;
|
|
3492
3551
|
}
|
|
3493
3552
|
export interface ModifyCurrentUserVoiceStateParams {
|
|
3494
3553
|
/** the id of the channel the user is currently in */
|
|
@@ -3998,6 +4057,10 @@ export interface ReactionCountDetail {
|
|
|
3998
4057
|
/** Count of normal reactions */
|
|
3999
4058
|
readonly normal: number;
|
|
4000
4059
|
}
|
|
4060
|
+
export declare enum ReactionType {
|
|
4061
|
+
NORMAL = 0,
|
|
4062
|
+
BURST = 1
|
|
4063
|
+
}
|
|
4001
4064
|
export interface ReadyEvent {
|
|
4002
4065
|
/** API version */
|
|
4003
4066
|
readonly v: number;
|
|
@@ -4476,7 +4539,7 @@ export declare enum TeamMemberRoleType {
|
|
|
4476
4539
|
ADMIN = "admin",
|
|
4477
4540
|
/** Developers can access information about team-owned apps, like the client secret or public key. They can also take limited actions on team-owned apps, like configuring interaction endpoints or resetting the bot token. Members with the Developer role cannot manage the team or its members, or take destructive actions on team-owned apps. */
|
|
4478
4541
|
DEVELOPER = "developer",
|
|
4479
|
-
/** Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. */
|
|
4542
|
+
/** Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. Members can also invite bots associated with team-owned apps that are marked private. */
|
|
4480
4543
|
READONLY = "read_only"
|
|
4481
4544
|
}
|
|
4482
4545
|
export interface TextInput {
|
|
@@ -4664,8 +4727,8 @@ export interface User {
|
|
|
4664
4727
|
readonly premium_type?: PremiumType;
|
|
4665
4728
|
/** the public flags on a user's account */
|
|
4666
4729
|
readonly public_flags?: number;
|
|
4667
|
-
/** the user's avatar decoration
|
|
4668
|
-
readonly
|
|
4730
|
+
/** data for the user's avatar decoration */
|
|
4731
|
+
readonly avatar_decoration_data?: AvatarDecorationDatum | null;
|
|
4669
4732
|
}
|
|
4670
4733
|
export declare const UserFlag: {
|
|
4671
4734
|
/** Discord Employee */
|