dfx 0.97.3 → 0.97.5

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/src/types.ts CHANGED
@@ -21,6 +21,8 @@ export enum ActionType {
21
21
  SEND_ALERT_MESSAGE = 2,
22
22
  /** timeout user for a specified duration * */
23
23
  TIMEOUT = 3,
24
+ /** prevents a member from using text, voice, or other interactions */
25
+ BLOCK_MEMBER_INTERACTION = 4,
24
26
  }
25
27
  export interface Activity {
26
28
  /** Activity's name */
@@ -278,23 +280,23 @@ export interface ApplicationCommandOption {
278
280
  readonly description: string
279
281
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
280
282
  readonly description_localizations?: Locale | null
281
- /** If the parameter is required or optional--default false */
283
+ /** Whether the parameter is required or optional, default false */
282
284
  readonly required?: boolean
283
- /** Choices for STRING, INTEGER, and NUMBER types for the user to pick from, max 25 */
285
+ /** Choices for the user to pick from, max 25 */
284
286
  readonly choices?: Array<ApplicationCommandOptionChoice>
285
- /** If the option is a subcommand or subcommand group type, these nested options will be the parameters */
287
+ /** If the option is a subcommand or subcommand group type, these nested options will be the parameters or subcommands respectively; up to 25 */
286
288
  readonly options?: Array<ApplicationCommandOption>
287
- /** If the option is a channel type, the channels shown will be restricted to these types */
289
+ /** The channels shown will be restricted to these types */
288
290
  readonly channel_types?: Array<ChannelType>
289
- /** If the option is an INTEGER or NUMBER type, the minimum value permitted */
291
+ /** The minimum value permitted */
290
292
  readonly min_value?: number
291
- /** If the option is an INTEGER or NUMBER type, the maximum value permitted */
293
+ /** The maximum value permitted */
292
294
  readonly max_value?: number
293
- /** For option type STRING, the minimum allowed length (minimum of 0, maximum of 6000) */
295
+ /** The minimum allowed length (minimum of 0, maximum of 6000) */
294
296
  readonly min_length?: number
295
- /** For option type STRING, the maximum allowed length (minimum of 1, maximum of 6000) */
297
+ /** The maximum allowed length (minimum of 1, maximum of 6000) */
296
298
  readonly max_length?: number
297
- /** If autocomplete interactions are enabled for this STRING, INTEGER, or NUMBER type option */
299
+ /** If autocomplete interactions are enabled for this option */
298
300
  readonly autocomplete?: boolean
299
301
  }
300
302
  export interface ApplicationCommandOptionChoice {
@@ -622,6 +624,20 @@ export enum AuditLogEvent {
622
624
  CREATOR_MONETIZATION_REQUEST_CREATED = 150,
623
625
  /** Creator monetization terms were accepted */
624
626
  CREATOR_MONETIZATION_TERMS_ACCEPTED = 151,
627
+ /** Guild Onboarding Question was created */
628
+ ONBOARDING_PROMPT_CREATE = 163,
629
+ /** Guild Onboarding Question was updated */
630
+ ONBOARDING_PROMPT_UPDATE = 164,
631
+ /** Guild Onboarding Question was deleted */
632
+ ONBOARDING_PROMPT_DELETE = 165,
633
+ /** Guild Onboarding was created */
634
+ ONBOARDING_CREATE = 166,
635
+ /** Guild Onboarding was updated */
636
+ ONBOARDING_UPDATE = 167,
637
+ /** Guild Server Guide was created */
638
+ HOME_SETTINGS_CREATE = 190,
639
+ /** Guild Server Guide was updated */
640
+ HOME_SETTINGS_UPDATE = 191,
625
641
  }
626
642
  export interface AutoModerationAction {
627
643
  /** the type of action */
@@ -680,6 +696,12 @@ export interface AutoModerationRule {
680
696
  export type AutoModerationRuleCreateEvent = AutoModerationRule
681
697
  export type AutoModerationRuleDeleteEvent = AutoModerationRule
682
698
  export type AutoModerationRuleUpdateEvent = AutoModerationRule
699
+ export interface AvatarDecorationDatum {
700
+ /** the avatar decoration hash */
701
+ readonly asset: string
702
+ /** id of the avatar decoration's SKU */
703
+ readonly sku_id: Snowflake
704
+ }
683
705
  export interface Ban {
684
706
  /** the reason for the ban */
685
707
  readonly reason?: string | null
@@ -994,7 +1016,7 @@ export interface CreateGlobalApplicationCommandParams {
994
1016
  readonly description?: string
995
1017
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
996
1018
  readonly description_localizations?: Locale | null
997
- /** the parameters for the command */
1019
+ /** the parameters for the command, max of 25 */
998
1020
  readonly options?: Array<ApplicationCommandOption>
999
1021
  /** Set of permissions represented as a bit set */
1000
1022
  readonly default_member_permissions?: string | null
@@ -1026,7 +1048,7 @@ export interface CreateGuildApplicationCommandParams {
1026
1048
  readonly description?: string
1027
1049
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
1028
1050
  readonly description_localizations?: Locale | null
1029
- /** Parameters for the command */
1051
+ /** Parameters for the command, max of 25 */
1030
1052
  readonly options?: Array<ApplicationCommandOption>
1031
1053
  /** Set of permissions represented as a bit set */
1032
1054
  readonly default_member_permissions?: string | null
@@ -2620,7 +2642,7 @@ export interface EditGuildApplicationCommandParams {
2620
2642
  readonly description?: string
2621
2643
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
2622
2644
  readonly description_localizations?: Locale | null
2623
- /** Parameters for the command */
2645
+ /** Parameters for the command, max of 25 */
2624
2646
  readonly options?: Array<ApplicationCommandOption>
2625
2647
  /** Set of permissions represented as a bit set */
2626
2648
  readonly default_member_permissions?: string | null
@@ -3866,6 +3888,8 @@ export type EntitlementUpdateEvent = Entitlement
3866
3888
  export enum EventType {
3867
3889
  /** when a member sends or edits a message in the guild */
3868
3890
  MESSAGE_SEND = 1,
3891
+ /** when a member edits their profile */
3892
+ MEMBER_UPDATE = 2,
3869
3893
  }
3870
3894
  export interface ExecuteWebhookParams {
3871
3895
  /** the message contents (up to 2000 characters) */
@@ -4129,6 +4153,8 @@ export interface GetInviteParams {
4129
4153
  readonly guild_scheduled_event_id?: Snowflake
4130
4154
  }
4131
4155
  export interface GetReactionParams {
4156
+ /** The type of reaction */
4157
+ readonly type?: ReactionType
4132
4158
  /** Get users after this user ID */
4133
4159
  readonly after?: Snowflake
4134
4160
  /** Max number of users to return (1-100) */
@@ -4247,6 +4273,10 @@ export interface GuildApplicationCommandPermission {
4247
4273
  readonly permissions: Array<ApplicationCommandPermission>
4248
4274
  }
4249
4275
  export type GuildAuditLogEntryCreateEvent = AuditLogEntry
4276
+ export interface GuildAuditLogEntryCreateEventExtra {
4277
+ /** ID of the guild */
4278
+ readonly guild_id: Snowflake
4279
+ }
4250
4280
  export interface GuildBanAddEvent {
4251
4281
  /** ID of the guild */
4252
4282
  readonly guild_id: Snowflake
@@ -4376,6 +4406,8 @@ export interface GuildMember {
4376
4406
  readonly permissions?: string
4377
4407
  /** 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
4408
  readonly communication_disabled_until?: string | null
4409
+ /** data for the member's guild avatar decoration */
4410
+ readonly avatar_decoration_data?: AvatarDecorationDatum | null
4379
4411
  }
4380
4412
  export type GuildMemberAddEvent = GuildMember & GuildMemberAddExtra
4381
4413
  export interface GuildMemberAddExtra {
@@ -4437,6 +4469,8 @@ export interface GuildMemberUpdateEvent {
4437
4469
  readonly pending?: boolean
4438
4470
  /** 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
4471
  readonly communication_disabled_until?: string | null
4472
+ /** Guild member flags represented as a bit set, defaults to 0 */
4473
+ readonly flags?: number
4440
4474
  }
4441
4475
  export enum GuildNsfwLevel {
4442
4476
  DEFAULT = 0,
@@ -4750,6 +4784,8 @@ export interface Interaction {
4750
4784
  /** Interaction data payload */
4751
4785
  readonly data?: InteractionDatum
4752
4786
  /** Guild that the interaction was sent from */
4787
+ readonly guild?: Guild
4788
+ /** Guild that the interaction was sent from */
4753
4789
  readonly guild_id?: Snowflake
4754
4790
  /** Channel that the interaction was sent from */
4755
4791
  readonly channel?: Channel
@@ -4858,6 +4894,8 @@ export enum InteractionType {
4858
4894
  }
4859
4895
  export type InvalidSessionEvent = boolean
4860
4896
  export interface Invite {
4897
+ /** the type of invite */
4898
+ readonly type: InviteType
4861
4899
  /** the invite code (unique ID) */
4862
4900
  readonly code: string
4863
4901
  /** the guild this invite is for */
@@ -4943,6 +4981,11 @@ export enum InviteTargetType {
4943
4981
  STREAM = 1,
4944
4982
  EMBEDDED_APPLICATION = 2,
4945
4983
  }
4984
+ export enum InviteType {
4985
+ GUILD = 0,
4986
+ GROUP_DM = 1,
4987
+ FRIEND = 2,
4988
+ }
4946
4989
  export enum KeywordPresetType {
4947
4990
  /** words that may be considered forms of swearing or cursing */
4948
4991
  PROFANITY = 1,
@@ -5155,7 +5198,9 @@ export interface Message {
5155
5198
  /** data for users, members, channels, and roles in the message's auto-populated select menus */
5156
5199
  readonly resolved?: ResolvedDatum
5157
5200
  /** A poll! */
5158
- readonly poll?: PollCreateRequest
5201
+ readonly poll?: Poll
5202
+ /** the call associated with the message */
5203
+ readonly call?: MessageCall
5159
5204
  }
5160
5205
  export interface MessageActivity {
5161
5206
  /** type of message activity */
@@ -5169,6 +5214,12 @@ export enum MessageActivityType {
5169
5214
  LISTEN = 3,
5170
5215
  JOIN_REQUEST = 5,
5171
5216
  }
5217
+ export interface MessageCall {
5218
+ /** array of user object ids that participated in the call */
5219
+ readonly participants: Array<Snowflake>
5220
+ /** time when call ended */
5221
+ readonly ended_timestamp?: string | null
5222
+ }
5172
5223
  export interface MessageComponentDatum {
5173
5224
  /** the custom_id of the component */
5174
5225
  readonly custom_id: string
@@ -5295,6 +5346,12 @@ export interface MessageReactionAddEvent {
5295
5346
  readonly emoji: Emoji
5296
5347
  /** ID of the user who authored the message which was reacted to */
5297
5348
  readonly message_author_id?: Snowflake
5349
+ /** true if this is a super-reaction */
5350
+ readonly burst: boolean
5351
+ /** Colors used for super-reaction animation in "#rrggbb" format */
5352
+ readonly burst_colors?: Array<string>
5353
+ /** The type of reaction */
5354
+ readonly type: ReactionType
5298
5355
  }
5299
5356
  export interface MessageReactionRemoveAllEvent {
5300
5357
  /** ID of the channel */
@@ -5325,6 +5382,10 @@ export interface MessageReactionRemoveEvent {
5325
5382
  readonly guild_id?: Snowflake
5326
5383
  /** Emoji used to react - example */
5327
5384
  readonly emoji: Emoji
5385
+ /** true if this was a super-reaction */
5386
+ readonly burst: boolean
5387
+ /** The type of reaction */
5388
+ readonly type: ReactionType
5328
5389
  }
5329
5390
  export interface MessageReference {
5330
5391
  /** id of the originating message */
@@ -5368,6 +5429,10 @@ export enum MessageType {
5368
5429
  STAGE_SPEAKER = 29,
5369
5430
  STAGE_TOPIC = 31,
5370
5431
  GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32,
5432
+ GUILD_INCIDENT_ALERT_MODE_ENABLED = 36,
5433
+ GUILD_INCIDENT_ALERT_MODE_DISABLED = 37,
5434
+ GUILD_INCIDENT_REPORT_RAID = 38,
5435
+ GUILD_INCIDENT_REPORT_FALSE_ALARM = 39,
5371
5436
  }
5372
5437
  export type MessageUpdateEvent = MessageCreateEvent
5373
5438
  export enum MfaLevel {
@@ -5479,6 +5544,8 @@ export interface ModifyCurrentUserParams {
5479
5544
  readonly username: string
5480
5545
  /** if passed, modifies the user's avatar */
5481
5546
  readonly avatar?: string | null
5547
+ /** if passed, modifies the user's banner */
5548
+ readonly banner?: string | null
5482
5549
  }
5483
5550
  export interface ModifyCurrentUserVoiceStateParams {
5484
5551
  /** the id of the channel the user is currently in */
@@ -5988,6 +6055,10 @@ export interface ReactionCountDetail {
5988
6055
  /** Count of normal reactions */
5989
6056
  readonly normal: number
5990
6057
  }
6058
+ export enum ReactionType {
6059
+ NORMAL = 0,
6060
+ BURST = 1,
6061
+ }
5991
6062
  export interface ReadyEvent {
5992
6063
  /** API version */
5993
6064
  readonly v: number
@@ -6535,13 +6606,13 @@ export interface TeamMember {
6535
6606
  readonly role: TeamMemberRoleType
6536
6607
  }
6537
6608
  export enum TeamMemberRoleType {
6538
- /** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
6609
+ /** Owners are the most permissible role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
6539
6610
  OWNER = "",
6540
6611
  /** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
6541
6612
  ADMIN = "admin",
6542
6613
  /** 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
6614
  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. */
6615
+ /** 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
6616
  READONLY = "read_only",
6546
6617
  }
6547
6618
  export interface TextInput {
@@ -6627,13 +6698,13 @@ export interface ThreadMetadatum {
6627
6698
  }
6628
6699
  export type ThreadUpdateEvent = Channel
6629
6700
  export interface TriggerMetadatum {
6630
- /** KEYWORD */
6701
+ /** KEYWORD, MEMBER_PROFILE */
6631
6702
  readonly keyword_filter: Array<string>
6632
- /** KEYWORD */
6703
+ /** KEYWORD, MEMBER_PROFILE */
6633
6704
  readonly regex_patterns: Array<string>
6634
6705
  /** KEYWORD_PRESET */
6635
6706
  readonly presets: Array<KeywordPresetType>
6636
- /** KEYWORD, KEYWORD_PRESET */
6707
+ /** KEYWORD, KEYWORD_PRESET, MEMBER_PROFILE */
6637
6708
  readonly allow_list: Array<string>
6638
6709
  /** MENTION_SPAM */
6639
6710
  readonly mention_total_limit: number
@@ -6649,6 +6720,8 @@ export enum TriggerType {
6649
6720
  KEYWORD_PRESET = 4,
6650
6721
  /** check if content contains more unique mentions than allowed */
6651
6722
  MENTION_SPAM = 5,
6723
+ /** check if member profile contains words from a user defined list of keywords */
6724
+ MEMBER_PROFILE = 6,
6652
6725
  }
6653
6726
  export interface TypingStartEvent {
6654
6727
  /** ID of the channel */
@@ -6729,8 +6802,8 @@ export interface User {
6729
6802
  readonly premium_type?: PremiumType
6730
6803
  /** the public flags on a user's account */
6731
6804
  readonly public_flags?: number
6732
- /** the user's avatar decoration hash */
6733
- readonly avatar_decoration?: string | null
6805
+ /** data for the user's avatar decoration */
6806
+ readonly avatar_decoration_data?: AvatarDecorationDatum | null
6734
6807
  }
6735
6808
  export const UserFlag = {
6736
6809
  /** Discord Employee */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "0.97.3";
1
+ export const LIB_VERSION = "0.97.5";
@@ -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
@@ -19,7 +19,9 @@ export declare enum ActionType {
19
19
  /** logs user content to a specified channel */
20
20
  SEND_ALERT_MESSAGE = 2,
21
21
  /** timeout user for a specified duration * */
22
- TIMEOUT = 3
22
+ TIMEOUT = 3,
23
+ /** prevents a member from using text, voice, or other interactions */
24
+ BLOCK_MEMBER_INTERACTION = 4
23
25
  }
24
26
  export interface Activity {
25
27
  /** Activity's name */
@@ -277,23 +279,23 @@ export interface ApplicationCommandOption {
277
279
  readonly description: string;
278
280
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
279
281
  readonly description_localizations?: Locale | null;
280
- /** If the parameter is required or optional--default false */
282
+ /** Whether the parameter is required or optional, default false */
281
283
  readonly required?: boolean;
282
- /** Choices for STRING, INTEGER, and NUMBER types for the user to pick from, max 25 */
284
+ /** Choices for the user to pick from, max 25 */
283
285
  readonly choices?: Array<ApplicationCommandOptionChoice>;
284
- /** If the option is a subcommand or subcommand group type, these nested options will be the parameters */
286
+ /** If the option is a subcommand or subcommand group type, these nested options will be the parameters or subcommands respectively; up to 25 */
285
287
  readonly options?: Array<ApplicationCommandOption>;
286
- /** If the option is a channel type, the channels shown will be restricted to these types */
288
+ /** The channels shown will be restricted to these types */
287
289
  readonly channel_types?: Array<ChannelType>;
288
- /** If the option is an INTEGER or NUMBER type, the minimum value permitted */
290
+ /** The minimum value permitted */
289
291
  readonly min_value?: number;
290
- /** If the option is an INTEGER or NUMBER type, the maximum value permitted */
292
+ /** The maximum value permitted */
291
293
  readonly max_value?: number;
292
- /** For option type STRING, the minimum allowed length (minimum of 0, maximum of 6000) */
294
+ /** The minimum allowed length (minimum of 0, maximum of 6000) */
293
295
  readonly min_length?: number;
294
- /** For option type STRING, the maximum allowed length (minimum of 1, maximum of 6000) */
296
+ /** The maximum allowed length (minimum of 1, maximum of 6000) */
295
297
  readonly max_length?: number;
296
- /** If autocomplete interactions are enabled for this STRING, INTEGER, or NUMBER type option */
298
+ /** If autocomplete interactions are enabled for this option */
297
299
  readonly autocomplete?: boolean;
298
300
  }
299
301
  export interface ApplicationCommandOptionChoice {
@@ -619,7 +621,21 @@ export declare enum AuditLogEvent {
619
621
  /** Creator monetization request was created */
620
622
  CREATOR_MONETIZATION_REQUEST_CREATED = 150,
621
623
  /** Creator monetization terms were accepted */
622
- CREATOR_MONETIZATION_TERMS_ACCEPTED = 151
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
623
639
  }
624
640
  export interface AutoModerationAction {
625
641
  /** the type of action */
@@ -678,6 +694,12 @@ export interface AutoModerationRule {
678
694
  export type AutoModerationRuleCreateEvent = AutoModerationRule;
679
695
  export type AutoModerationRuleDeleteEvent = AutoModerationRule;
680
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
+ }
681
703
  export interface Ban {
682
704
  /** the reason for the ban */
683
705
  readonly reason?: string | null;
@@ -992,7 +1014,7 @@ export interface CreateGlobalApplicationCommandParams {
992
1014
  readonly description?: string;
993
1015
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
994
1016
  readonly description_localizations?: Locale | null;
995
- /** the parameters for the command */
1017
+ /** the parameters for the command, max of 25 */
996
1018
  readonly options?: Array<ApplicationCommandOption>;
997
1019
  /** Set of permissions represented as a bit set */
998
1020
  readonly default_member_permissions?: string | null;
@@ -1024,7 +1046,7 @@ export interface CreateGuildApplicationCommandParams {
1024
1046
  readonly description?: string;
1025
1047
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
1026
1048
  readonly description_localizations?: Locale | null;
1027
- /** Parameters for the command */
1049
+ /** Parameters for the command, max of 25 */
1028
1050
  readonly options?: Array<ApplicationCommandOption>;
1029
1051
  /** Set of permissions represented as a bit set */
1030
1052
  readonly default_member_permissions?: string | null;
@@ -1303,7 +1325,7 @@ export interface EditGuildApplicationCommandParams {
1303
1325
  readonly description?: string;
1304
1326
  /** Localization dictionary for the description field. Values follow the same restrictions as description */
1305
1327
  readonly description_localizations?: Locale | null;
1306
- /** Parameters for the command */
1328
+ /** Parameters for the command, max of 25 */
1307
1329
  readonly options?: Array<ApplicationCommandOption>;
1308
1330
  /** Set of permissions represented as a bit set */
1309
1331
  readonly default_member_permissions?: string | null;
@@ -1886,7 +1908,9 @@ export declare enum EntitlementType {
1886
1908
  export type EntitlementUpdateEvent = Entitlement;
1887
1909
  export declare enum EventType {
1888
1910
  /** when a member sends or edits a message in the guild */
1889
- MESSAGE_SEND = 1
1911
+ MESSAGE_SEND = 1,
1912
+ /** when a member edits their profile */
1913
+ MEMBER_UPDATE = 2
1890
1914
  }
1891
1915
  export interface ExecuteWebhookParams {
1892
1916
  /** the message contents (up to 2000 characters) */
@@ -2150,6 +2174,8 @@ export interface GetInviteParams {
2150
2174
  readonly guild_scheduled_event_id?: Snowflake;
2151
2175
  }
2152
2176
  export interface GetReactionParams {
2177
+ /** The type of reaction */
2178
+ readonly type?: ReactionType;
2153
2179
  /** Get users after this user ID */
2154
2180
  readonly after?: Snowflake;
2155
2181
  /** Max number of users to return (1-100) */
@@ -2268,6 +2294,10 @@ export interface GuildApplicationCommandPermission {
2268
2294
  readonly permissions: Array<ApplicationCommandPermission>;
2269
2295
  }
2270
2296
  export type GuildAuditLogEntryCreateEvent = AuditLogEntry;
2297
+ export interface GuildAuditLogEntryCreateEventExtra {
2298
+ /** ID of the guild */
2299
+ readonly guild_id: Snowflake;
2300
+ }
2271
2301
  export interface GuildBanAddEvent {
2272
2302
  /** ID of the guild */
2273
2303
  readonly guild_id: Snowflake;
@@ -2397,6 +2427,8 @@ export interface GuildMember {
2397
2427
  readonly permissions?: string;
2398
2428
  /** 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
2429
  readonly communication_disabled_until?: string | null;
2430
+ /** data for the member's guild avatar decoration */
2431
+ readonly avatar_decoration_data?: AvatarDecorationDatum | null;
2400
2432
  }
2401
2433
  export type GuildMemberAddEvent = GuildMember & GuildMemberAddExtra;
2402
2434
  export interface GuildMemberAddExtra {
@@ -2458,6 +2490,8 @@ export interface GuildMemberUpdateEvent {
2458
2490
  readonly pending?: boolean;
2459
2491
  /** 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
2492
  readonly communication_disabled_until?: string | null;
2493
+ /** Guild member flags represented as a bit set, defaults to 0 */
2494
+ readonly flags?: number;
2461
2495
  }
2462
2496
  export declare enum GuildNsfwLevel {
2463
2497
  DEFAULT = 0,
@@ -2769,6 +2803,8 @@ export interface Interaction {
2769
2803
  /** Interaction data payload */
2770
2804
  readonly data?: InteractionDatum;
2771
2805
  /** Guild that the interaction was sent from */
2806
+ readonly guild?: Guild;
2807
+ /** Guild that the interaction was sent from */
2772
2808
  readonly guild_id?: Snowflake;
2773
2809
  /** Channel that the interaction was sent from */
2774
2810
  readonly channel?: Channel;
@@ -2871,6 +2907,8 @@ export declare enum InteractionType {
2871
2907
  }
2872
2908
  export type InvalidSessionEvent = boolean;
2873
2909
  export interface Invite {
2910
+ /** the type of invite */
2911
+ readonly type: InviteType;
2874
2912
  /** the invite code (unique ID) */
2875
2913
  readonly code: string;
2876
2914
  /** the guild this invite is for */
@@ -2956,6 +2994,11 @@ export declare enum InviteTargetType {
2956
2994
  STREAM = 1,
2957
2995
  EMBEDDED_APPLICATION = 2
2958
2996
  }
2997
+ export declare enum InviteType {
2998
+ GUILD = 0,
2999
+ GROUP_DM = 1,
3000
+ FRIEND = 2
3001
+ }
2959
3002
  export declare enum KeywordPresetType {
2960
3003
  /** words that may be considered forms of swearing or cursing */
2961
3004
  PROFANITY = 1,
@@ -3168,7 +3211,9 @@ export interface Message {
3168
3211
  /** data for users, members, channels, and roles in the message's auto-populated select menus */
3169
3212
  readonly resolved?: ResolvedDatum;
3170
3213
  /** A poll! */
3171
- readonly poll?: PollCreateRequest;
3214
+ readonly poll?: Poll;
3215
+ /** the call associated with the message */
3216
+ readonly call?: MessageCall;
3172
3217
  }
3173
3218
  export interface MessageActivity {
3174
3219
  /** type of message activity */
@@ -3182,6 +3227,12 @@ export declare enum MessageActivityType {
3182
3227
  LISTEN = 3,
3183
3228
  JOIN_REQUEST = 5
3184
3229
  }
3230
+ export interface MessageCall {
3231
+ /** array of user object ids that participated in the call */
3232
+ readonly participants: Array<Snowflake>;
3233
+ /** time when call ended */
3234
+ readonly ended_timestamp?: string | null;
3235
+ }
3185
3236
  export interface MessageComponentDatum {
3186
3237
  /** the custom_id of the component */
3187
3238
  readonly custom_id: string;
@@ -3308,6 +3359,12 @@ export interface MessageReactionAddEvent {
3308
3359
  readonly emoji: Emoji;
3309
3360
  /** ID of the user who authored the message which was reacted to */
3310
3361
  readonly message_author_id?: Snowflake;
3362
+ /** true if this is a super-reaction */
3363
+ readonly burst: boolean;
3364
+ /** Colors used for super-reaction animation in "#rrggbb" format */
3365
+ readonly burst_colors?: Array<string>;
3366
+ /** The type of reaction */
3367
+ readonly type: ReactionType;
3311
3368
  }
3312
3369
  export interface MessageReactionRemoveAllEvent {
3313
3370
  /** ID of the channel */
@@ -3338,6 +3395,10 @@ export interface MessageReactionRemoveEvent {
3338
3395
  readonly guild_id?: Snowflake;
3339
3396
  /** Emoji used to react - example */
3340
3397
  readonly emoji: Emoji;
3398
+ /** true if this was a super-reaction */
3399
+ readonly burst: boolean;
3400
+ /** The type of reaction */
3401
+ readonly type: ReactionType;
3341
3402
  }
3342
3403
  export interface MessageReference {
3343
3404
  /** id of the originating message */
@@ -3380,7 +3441,11 @@ export declare enum MessageType {
3380
3441
  STAGE_END = 28,
3381
3442
  STAGE_SPEAKER = 29,
3382
3443
  STAGE_TOPIC = 31,
3383
- GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32
3444
+ GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32,
3445
+ GUILD_INCIDENT_ALERT_MODE_ENABLED = 36,
3446
+ GUILD_INCIDENT_ALERT_MODE_DISABLED = 37,
3447
+ GUILD_INCIDENT_REPORT_RAID = 38,
3448
+ GUILD_INCIDENT_REPORT_FALSE_ALARM = 39
3384
3449
  }
3385
3450
  export type MessageUpdateEvent = MessageCreateEvent;
3386
3451
  export declare enum MfaLevel {
@@ -3489,6 +3554,8 @@ export interface ModifyCurrentUserParams {
3489
3554
  readonly username: string;
3490
3555
  /** if passed, modifies the user's avatar */
3491
3556
  readonly avatar?: string | null;
3557
+ /** if passed, modifies the user's banner */
3558
+ readonly banner?: string | null;
3492
3559
  }
3493
3560
  export interface ModifyCurrentUserVoiceStateParams {
3494
3561
  /** the id of the channel the user is currently in */
@@ -3998,6 +4065,10 @@ export interface ReactionCountDetail {
3998
4065
  /** Count of normal reactions */
3999
4066
  readonly normal: number;
4000
4067
  }
4068
+ export declare enum ReactionType {
4069
+ NORMAL = 0,
4070
+ BURST = 1
4071
+ }
4001
4072
  export interface ReadyEvent {
4002
4073
  /** API version */
4003
4074
  readonly v: number;
@@ -4470,13 +4541,13 @@ export interface TeamMember {
4470
4541
  readonly role: TeamMemberRoleType;
4471
4542
  }
4472
4543
  export declare enum TeamMemberRoleType {
4473
- /** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
4544
+ /** Owners are the most permissible role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
4474
4545
  OWNER = "",
4475
4546
  /** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
4476
4547
  ADMIN = "admin",
4477
4548
  /** 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
4549
  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. */
4550
+ /** 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
4551
  READONLY = "read_only"
4481
4552
  }
4482
4553
  export interface TextInput {
@@ -4562,13 +4633,13 @@ export interface ThreadMetadatum {
4562
4633
  }
4563
4634
  export type ThreadUpdateEvent = Channel;
4564
4635
  export interface TriggerMetadatum {
4565
- /** KEYWORD */
4636
+ /** KEYWORD, MEMBER_PROFILE */
4566
4637
  readonly keyword_filter: Array<string>;
4567
- /** KEYWORD */
4638
+ /** KEYWORD, MEMBER_PROFILE */
4568
4639
  readonly regex_patterns: Array<string>;
4569
4640
  /** KEYWORD_PRESET */
4570
4641
  readonly presets: Array<KeywordPresetType>;
4571
- /** KEYWORD, KEYWORD_PRESET */
4642
+ /** KEYWORD, KEYWORD_PRESET, MEMBER_PROFILE */
4572
4643
  readonly allow_list: Array<string>;
4573
4644
  /** MENTION_SPAM */
4574
4645
  readonly mention_total_limit: number;
@@ -4583,7 +4654,9 @@ export declare enum TriggerType {
4583
4654
  /** check if content contains words from internal pre-defined wordsets */
4584
4655
  KEYWORD_PRESET = 4,
4585
4656
  /** check if content contains more unique mentions than allowed */
4586
- MENTION_SPAM = 5
4657
+ MENTION_SPAM = 5,
4658
+ /** check if member profile contains words from a user defined list of keywords */
4659
+ MEMBER_PROFILE = 6
4587
4660
  }
4588
4661
  export interface TypingStartEvent {
4589
4662
  /** ID of the channel */
@@ -4664,8 +4737,8 @@ export interface User {
4664
4737
  readonly premium_type?: PremiumType;
4665
4738
  /** the public flags on a user's account */
4666
4739
  readonly public_flags?: number;
4667
- /** the user's avatar decoration hash */
4668
- readonly avatar_decoration?: string | null;
4740
+ /** data for the user's avatar decoration */
4741
+ readonly avatar_decoration_data?: AvatarDecorationDatum | null;
4669
4742
  }
4670
4743
  export declare const UserFlag: {
4671
4744
  /** Discord Employee */