dfx 0.61.4 → 0.61.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/Cache/memoryTTL.d.ts.map +1 -1
  2. package/Cache/memoryTTL.js.map +1 -1
  3. package/Cache/prelude.d.ts.map +1 -1
  4. package/Cache/prelude.js.map +1 -1
  5. package/Cache.d.ts.map +1 -1
  6. package/Cache.js.map +1 -1
  7. package/DiscordGateway/DiscordWS.d.ts +1 -1
  8. package/DiscordGateway/DiscordWS.d.ts.map +1 -1
  9. package/DiscordGateway/DiscordWS.js.map +1 -1
  10. package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
  11. package/DiscordGateway/Shard/heartbeats.js.map +1 -1
  12. package/DiscordGateway/Shard/sendEvents.js +9 -6
  13. package/DiscordGateway/Shard/sendEvents.js.map +1 -1
  14. package/DiscordGateway/Shard/utils.d.ts.map +1 -1
  15. package/DiscordGateway/Shard/utils.js.map +1 -1
  16. package/DiscordGateway/Shard.d.ts +2 -2
  17. package/DiscordGateway/Shard.d.ts.map +1 -1
  18. package/DiscordGateway/Shard.js +8 -7
  19. package/DiscordGateway/Shard.js.map +1 -1
  20. package/DiscordGateway/Sharder.js.map +1 -1
  21. package/DiscordGateway/WS.d.ts +1 -0
  22. package/DiscordGateway/WS.d.ts.map +1 -1
  23. package/DiscordGateway/WS.js.map +1 -1
  24. package/DiscordGateway.d.ts.map +1 -1
  25. package/DiscordGateway.js.map +1 -1
  26. package/DiscordREST/utils.d.ts.map +1 -1
  27. package/DiscordREST/utils.js +3 -3
  28. package/DiscordREST/utils.js.map +1 -1
  29. package/DiscordREST.d.ts.map +1 -1
  30. package/DiscordREST.js +1 -1
  31. package/DiscordREST.js.map +1 -1
  32. package/Helpers/flags.d.ts.map +1 -1
  33. package/Helpers/flags.js.map +1 -1
  34. package/Helpers/intents.d.ts.map +1 -1
  35. package/Helpers/intents.js.map +1 -1
  36. package/Helpers/interactions.d.ts.map +1 -1
  37. package/Helpers/interactions.js +3 -2
  38. package/Helpers/interactions.js.map +1 -1
  39. package/Helpers/members.d.ts.map +1 -1
  40. package/Helpers/members.js.map +1 -1
  41. package/Helpers/permissions.js.map +1 -1
  42. package/Helpers/ui.js +12 -11
  43. package/Helpers/ui.js.map +1 -1
  44. package/Interactions/builder.d.ts.map +1 -1
  45. package/Interactions/builder.js +1 -1
  46. package/Interactions/builder.js.map +1 -1
  47. package/Interactions/context.d.ts +1 -1
  48. package/Interactions/context.d.ts.map +1 -1
  49. package/Interactions/context.js.map +1 -1
  50. package/Interactions/definitions.d.ts +3 -3
  51. package/Interactions/definitions.d.ts.map +1 -1
  52. package/Interactions/definitions.js.map +1 -1
  53. package/Interactions/gateway.d.ts.map +1 -1
  54. package/Interactions/gateway.js +1 -1
  55. package/Interactions/gateway.js.map +1 -1
  56. package/Interactions/handlers.d.ts.map +1 -1
  57. package/Interactions/handlers.js +7 -7
  58. package/Interactions/handlers.js.map +1 -1
  59. package/Interactions/index.d.ts.map +1 -1
  60. package/Interactions/index.js.map +1 -1
  61. package/Interactions/utils.d.ts.map +1 -1
  62. package/Interactions/utils.js.map +1 -1
  63. package/Interactions/webhook.d.ts +1 -1
  64. package/Interactions/webhook.d.ts.map +1 -1
  65. package/Interactions/webhook.js.map +1 -1
  66. package/Log.js.map +1 -1
  67. package/RateLimit.d.ts +2 -2
  68. package/RateLimit.d.ts.map +1 -1
  69. package/RateLimit.js.map +1 -1
  70. package/mjs/Cache/memoryTTL.mjs.map +1 -1
  71. package/mjs/Cache/prelude.mjs.map +1 -1
  72. package/mjs/Cache.mjs.map +1 -1
  73. package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
  74. package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
  75. package/mjs/DiscordGateway/Shard/sendEvents.mjs +7 -6
  76. package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -1
  77. package/mjs/DiscordGateway/Shard/utils.mjs.map +1 -1
  78. package/mjs/DiscordGateway/Shard.mjs +8 -7
  79. package/mjs/DiscordGateway/Shard.mjs.map +1 -1
  80. package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
  81. package/mjs/DiscordGateway/WS.mjs.map +1 -1
  82. package/mjs/DiscordGateway.mjs.map +1 -1
  83. package/mjs/DiscordREST/utils.mjs +3 -3
  84. package/mjs/DiscordREST/utils.mjs.map +1 -1
  85. package/mjs/DiscordREST.mjs +1 -1
  86. package/mjs/DiscordREST.mjs.map +1 -1
  87. package/mjs/Helpers/flags.mjs.map +1 -1
  88. package/mjs/Helpers/intents.mjs.map +1 -1
  89. package/mjs/Helpers/interactions.mjs +3 -2
  90. package/mjs/Helpers/interactions.mjs.map +1 -1
  91. package/mjs/Helpers/members.mjs.map +1 -1
  92. package/mjs/Helpers/permissions.mjs.map +1 -1
  93. package/mjs/Helpers/ui.mjs +12 -11
  94. package/mjs/Helpers/ui.mjs.map +1 -1
  95. package/mjs/Interactions/builder.mjs +1 -1
  96. package/mjs/Interactions/builder.mjs.map +1 -1
  97. package/mjs/Interactions/context.mjs.map +1 -1
  98. package/mjs/Interactions/definitions.mjs.map +1 -1
  99. package/mjs/Interactions/gateway.mjs +1 -1
  100. package/mjs/Interactions/gateway.mjs.map +1 -1
  101. package/mjs/Interactions/handlers.mjs +7 -7
  102. package/mjs/Interactions/handlers.mjs.map +1 -1
  103. package/mjs/Interactions/index.mjs.map +1 -1
  104. package/mjs/Interactions/utils.mjs.map +1 -1
  105. package/mjs/Interactions/webhook.mjs.map +1 -1
  106. package/mjs/Log.mjs.map +1 -1
  107. package/mjs/RateLimit.mjs.map +1 -1
  108. package/mjs/types.mjs +733 -9
  109. package/mjs/types.mjs.map +1 -1
  110. package/mjs/utils/Effect.mjs.map +1 -1
  111. package/mjs/version.mjs +1 -1
  112. package/mjs/webhooks.mjs.map +1 -1
  113. package/package.json +2 -2
  114. package/src/Cache/memoryTTL.ts +4 -6
  115. package/src/Cache/prelude.ts +13 -15
  116. package/src/Cache.ts +5 -2
  117. package/src/DiscordGateway/DiscordWS.ts +6 -5
  118. package/src/DiscordGateway/Shard/heartbeats.ts +2 -3
  119. package/src/DiscordGateway/Shard/utils.ts +10 -9
  120. package/src/DiscordGateway/Shard.ts +13 -12
  121. package/src/DiscordGateway/Sharder.ts +8 -8
  122. package/src/DiscordGateway/WS.ts +9 -6
  123. package/src/DiscordGateway.ts +9 -8
  124. package/src/DiscordREST/utils.ts +5 -7
  125. package/src/DiscordREST.ts +25 -27
  126. package/src/Helpers/flags.ts +4 -2
  127. package/src/Helpers/intents.ts +4 -3
  128. package/src/Helpers/interactions.ts +54 -51
  129. package/src/Helpers/members.ts +2 -2
  130. package/src/Helpers/permissions.ts +2 -2
  131. package/src/Interactions/builder.ts +18 -20
  132. package/src/Interactions/context.ts +31 -18
  133. package/src/Interactions/definitions.ts +36 -27
  134. package/src/Interactions/gateway.ts +86 -79
  135. package/src/Interactions/handlers.ts +35 -34
  136. package/src/Interactions/index.ts +20 -16
  137. package/src/Interactions/utils.ts +17 -13
  138. package/src/Interactions/webhook.ts +15 -19
  139. package/src/Log.ts +2 -2
  140. package/src/RateLimit.ts +4 -5
  141. package/src/types.ts +172 -188
  142. package/src/utils/Effect.ts +19 -21
  143. package/src/version.ts +1 -1
  144. package/src/webhooks.ts +1 -4
  145. package/types.d.ts +140 -132
  146. package/types.d.ts.map +1 -1
  147. package/types.js +784 -10
  148. package/types.js.map +1 -1
  149. package/utils/Effect.d.ts.map +1 -1
  150. package/utils/Effect.js.map +1 -1
  151. package/version.d.ts +1 -1
  152. package/version.js +1 -1
  153. package/webhooks.d.ts.map +1 -1
  154. package/webhooks.js.map +1 -1
  155. package/tsconfig.tsbuildinfo +0 -1
package/types.d.ts CHANGED
@@ -13,7 +13,7 @@ export interface ActionRow {
13
13
  /** a list of child components */
14
14
  readonly components: Array<Component>;
15
15
  }
16
- export declare const enum ActionType {
16
+ export declare 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. */
18
18
  BLOCK_MESSAGE = 1,
19
19
  /** logs user content to a specified channel */
@@ -36,7 +36,7 @@ export interface Activity {
36
36
  readonly application_id?: Snowflake;
37
37
  /** What the player is currently doing */
38
38
  readonly details?: string | null;
39
- /** User's current party status */
39
+ /** User's current party status, or text used for a custom status */
40
40
  readonly state?: string | null;
41
41
  /** Emoji used for a custom status */
42
42
  readonly emoji?: ActivityEmoji | null;
@@ -108,7 +108,7 @@ export interface ActivityTimestamp {
108
108
  /** Unix time (in milliseconds) of when the activity ends */
109
109
  readonly end?: number;
110
110
  }
111
- export declare const enum ActivityType {
111
+ export declare enum ActivityType {
112
112
  GAME = 0,
113
113
  STREAMING = 1,
114
114
  LISTENING = 2,
@@ -138,7 +138,7 @@ export interface AllowedMention {
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
  }
141
- export declare const enum AllowedMentionType {
141
+ export declare enum AllowedMentionType {
142
142
  /** Controls role mentions */
143
143
  ROLE_MENTIONS = "roles",
144
144
  /** Controls user mentions */
@@ -292,7 +292,7 @@ export interface ApplicationCommandOptionChoice {
292
292
  /** Value for the choice, up to 100 characters if string */
293
293
  readonly value: string;
294
294
  }
295
- export declare const enum ApplicationCommandOptionType {
295
+ export declare enum ApplicationCommandOptionType {
296
296
  SUB_COMMAND = 1,
297
297
  SUB_COMMAND_GROUP = 2,
298
298
  STRING = 3,
@@ -314,12 +314,12 @@ export interface ApplicationCommandPermission {
314
314
  readonly permission: boolean;
315
315
  }
316
316
  export type ApplicationCommandPermissionsUpdateEvent = GuildApplicationCommandPermission;
317
- export declare const enum ApplicationCommandPermissionType {
317
+ export declare enum ApplicationCommandPermissionType {
318
318
  ROLE = 1,
319
319
  USER = 2,
320
320
  CHANNEL = 3
321
321
  }
322
- export declare const enum ApplicationCommandType {
322
+ export declare enum ApplicationCommandType {
323
323
  /** Slash commands; a text-based command that shows up when a user types / */
324
324
  CHAT_INPUT = 1,
325
325
  /** A UI-based command that shows up when you right click or tap on a user */
@@ -357,7 +357,7 @@ export interface ApplicationRoleConnection {
357
357
  /** object mapping application role connection metadata keys to their string-ified value (max 100 characters) for the user on the platform a bot has connected */
358
358
  readonly metadata: ApplicationRoleConnectionMetadatum;
359
359
  }
360
- export declare const enum ApplicationRoleConnectionMetadataType {
360
+ export declare enum ApplicationRoleConnectionMetadataType {
361
361
  /** the metadata value (integer) is less than or equal to the guild's configured value (integer) */
362
362
  INTEGER_LESS_THAN_OR_EQUAL = 1,
363
363
  /** the metadata value (integer) is greater than or equal to the guild's configured value (integer) */
@@ -444,6 +444,8 @@ export interface AuditEntryInfo {
444
444
  readonly role_name: string;
445
445
  /** Type of overwritten entity - role ("0") or member ("1") */
446
446
  readonly type: string;
447
+ /** The type of integration which performed the action */
448
+ readonly integration_type: string;
447
449
  }
448
450
  export interface AuditLog {
449
451
  /** List of application commands referenced in the audit log */
@@ -487,7 +489,7 @@ export interface AuditLogEntry {
487
489
  /** Reason for the change (1-512 characters) */
488
490
  readonly reason?: string;
489
491
  }
490
- export declare const enum AuditLogEvent {
492
+ export declare enum AuditLogEvent {
491
493
  /** Server settings were updated */
492
494
  GUILD_UPDATE = 1,
493
495
  /** Channel was created */
@@ -718,7 +720,7 @@ export interface Button {
718
720
  /** Whether the button is disabled (defaults to false) */
719
721
  readonly disabled?: boolean;
720
722
  }
721
- export declare const enum ButtonStyle {
723
+ export declare enum ButtonStyle {
722
724
  PRIMARY = 1,
723
725
  SECONDARY = 2,
724
726
  SUCCESS = 3,
@@ -738,11 +740,11 @@ export interface Channel {
738
740
  readonly permission_overwrites?: Array<Overwrite>;
739
741
  /** the name of the channel (1-100 characters) */
740
742
  readonly name?: string | null;
741
- /** the channel topic (0-4096 characters for GUILD_FORUM channels, 0-1024 characters for all others) */
743
+ /** the channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels, 0-1024 characters for all others) */
742
744
  readonly topic?: string | null;
743
745
  /** whether the channel is nsfw */
744
746
  readonly nsfw?: boolean;
745
- /** the id of the last message sent in this channel (or thread for GUILD_FORUM channels) (may not point to an existing or valid message or thread) */
747
+ /** the id of the last message sent in this channel (or thread for GUILD_FORUM or GUILD_MEDIA channels) (may not point to an existing or valid message or thread) */
746
748
  readonly last_message_id?: Snowflake | null;
747
749
  /** the bitrate (in bits) of the voice channel */
748
750
  readonly bitrate?: number;
@@ -778,21 +780,21 @@ export interface Channel {
778
780
  readonly member?: ThreadMember;
779
781
  /** default duration, copied onto newly created threads, in minutes, threads will stop showing in the channel list after the specified period of inactivity, can be set to: 60, 1440, 4320, 10080 */
780
782
  readonly default_auto_archive_duration?: number;
781
- /** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a slash command interaction */
783
+ /** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a slash command interaction. This does not include implicit permissions, which may need to be checked separately */
782
784
  readonly permissions?: string;
783
785
  /** channel flags combined as a bitfield */
784
786
  readonly flags?: number;
785
787
  /** number of messages ever sent in a thread, it's similar to message_count on message creation, but will not decrement the number when a message is deleted */
786
788
  readonly total_message_sent?: number;
787
- /** the set of tags that can be used in a GUILD_FORUM channel */
789
+ /** the set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel */
788
790
  readonly available_tags?: Array<ForumTag>;
789
- /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
791
+ /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
790
792
  readonly applied_tags?: Array<Snowflake>;
791
- /** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
793
+ /** the emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
792
794
  readonly default_reaction_emoji?: DefaultReaction | null;
793
795
  /** the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. */
794
796
  readonly default_thread_rate_limit_per_user?: number;
795
- /** the default sort order type used to order posts in GUILD_FORUM channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin */
797
+ /** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin */
796
798
  readonly default_sort_order?: SortOrderType | null;
797
799
  /** the default forum layout view used to display posts in GUILD_FORUM channels. Defaults to 0, which indicates a layout view has not been set by a channel admin */
798
800
  readonly default_forum_layout?: ForumLayoutType;
@@ -800,10 +802,12 @@ export interface Channel {
800
802
  export type ChannelCreateEvent = Channel;
801
803
  export type ChannelDeleteEvent = Channel;
802
804
  export declare const ChannelFlag: {
803
- /** this thread is pinned to the top of its parent GUILD_FORUM channel */
805
+ /** this thread is pinned to the top of its parent GUILD_FORUM or GUILD_MEDIA channel */
804
806
  readonly PINNED: number;
805
- /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
807
+ /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM or a GUILD_MEDIA channel. Tags are specified in the applied_tags field. */
806
808
  readonly REQUIRE_TAG: number;
809
+ /** when set hides the embedded media download options. Available only for media channels */
810
+ readonly HIDE_MEDIA_DOWNLOAD_OPTIONS: number;
807
811
  };
808
812
  export interface ChannelMention {
809
813
  /** id of the channel */
@@ -823,7 +827,7 @@ export interface ChannelPinsUpdateEvent {
823
827
  /** Time at which the most recent pinned message was pinned */
824
828
  readonly last_pin_timestamp?: string | null;
825
829
  }
826
- export declare const enum ChannelType {
830
+ export declare enum ChannelType {
827
831
  /** a text channel within a server */
828
832
  GUILD_TEXT = 0,
829
833
  /** a direct message between users */
@@ -847,7 +851,9 @@ export declare const enum ChannelType {
847
851
  /** the channel in a hub containing the listed servers */
848
852
  GUILD_DIRECTORY = 14,
849
853
  /** Channel that can only contain threads */
850
- GUILD_FORUM = 15
854
+ GUILD_FORUM = 15,
855
+ /** Channel that can only contain threads, similar to GUILD_FORUM channels */
856
+ GUILD_MEDIA = 16
851
857
  }
852
858
  export type ChannelUpdateEvent = Channel;
853
859
  export interface ClientStatus {
@@ -859,7 +865,7 @@ export interface ClientStatus {
859
865
  readonly web?: string;
860
866
  }
861
867
  export type Component = ActionRow | Button | TextInput | SelectMenu;
862
- export declare const enum ComponentType {
868
+ export declare enum ComponentType {
863
869
  /** Container for other components */
864
870
  ACTION_ROW = 1,
865
871
  /** Button object */
@@ -1018,11 +1024,11 @@ export interface CreateGuildChannelParams {
1018
1024
  readonly video_quality_mode: VideoQualityMode;
1019
1025
  /** the default duration that the clients use (not the API) for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity */
1020
1026
  readonly default_auto_archive_duration: number;
1021
- /** emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
1027
+ /** emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
1022
1028
  readonly default_reaction_emoji: DefaultReaction;
1023
- /** set of tags that can be used in a GUILD_FORUM channel */
1029
+ /** set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel */
1024
1030
  readonly available_tags: Array<ForumTag>;
1025
- /** the default sort order type used to order posts in GUILD_FORUM channels */
1031
+ /** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels */
1026
1032
  readonly default_sort_order: SortOrderType;
1027
1033
  /** the default forum layout view used to display posts in GUILD_FORUM channels */
1028
1034
  readonly default_forum_layout: ForumLayoutType;
@@ -1162,7 +1168,7 @@ export interface CreateWebhookParams {
1162
1168
  /** image for the default webhook avatar */
1163
1169
  readonly avatar?: string | null;
1164
1170
  }
1165
- export declare const enum DefaultMessageNotificationLevel {
1171
+ export declare enum DefaultMessageNotificationLevel {
1166
1172
  /** members will receive notifications for all messages by default */
1167
1173
  ALL_MESSAGES = 0,
1168
1174
  /** members will receive notifications only for messages that @mention them by default */
@@ -1342,7 +1348,7 @@ export interface EmbedThumbnail {
1342
1348
  /** width of thumbnail */
1343
1349
  readonly width?: number;
1344
1350
  }
1345
- export declare const enum EmbedType {
1351
+ export declare enum EmbedType {
1346
1352
  /** generic embed rendered from embed attributes */
1347
1353
  RICH = "rich",
1348
1354
  /** image embed */
@@ -1654,14 +1660,14 @@ export interface Endpoints<O> {
1654
1660
  listGuildStickers: (guildId: string, options?: O) => RestResponse<Array<Sticker>>;
1655
1661
  /** 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
1662
  listJoinedPrivateArchivedThreads: (channelId: string, params?: Partial<ListJoinedPrivateArchivedThreadParams>, options?: O) => RestResponse<ListJoinedPrivateArchivedThreadResponse>;
1657
- /** Returns the list of sticker packs available to Nitro subscribers. */
1658
- listNitroStickerPacks: (options?: O) => RestResponse<any>;
1659
1663
  /** Returns archived threads in the channel that are of type PRIVATE_THREAD. Threads are ordered by archive_timestamp, in descending order. Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions. */
1660
1664
  listPrivateArchivedThreads: (channelId: string, params?: Partial<ListPrivateArchivedThreadParams>, options?: O) => RestResponse<ListPrivateArchivedThreadResponse>;
1661
1665
  /** 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
1666
  listPublicArchivedThreads: (channelId: string, params?: Partial<ListPublicArchivedThreadParams>, options?: O) => RestResponse<ListPublicArchivedThreadResponse>;
1663
1667
  /** Returns a list of guild scheduled event objects for the given guild. */
1664
1668
  listScheduledEventsForGuild: (guildId: string, params?: Partial<ListScheduledEventsForGuildParams>, options?: O) => RestResponse<Array<GuildScheduledEvent>>;
1669
+ /** Returns a list of available sticker packs. */
1670
+ listStickerPacks: (options?: O) => RestResponse<any>;
1665
1671
  listThreadMembers: (channelId: string, params?: Partial<ListThreadMemberParams>, options?: O) => RestResponse<Array<ThreadMember>>;
1666
1672
  /** Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region. */
1667
1673
  listVoiceRegions: (options?: O) => RestResponse<Array<VoiceRegion>>;
@@ -1724,8 +1730,8 @@ export interface Endpoints<O> {
1724
1730
  searchGuildMembers: (guildId: string, params?: Partial<SearchGuildMemberParams>, options?: O) => RestResponse<Array<GuildMember>>;
1725
1731
  /** 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
1732
  startThreadFromMessage: (channelId: string, messageId: string, params?: Partial<StartThreadFromMessageParams>, options?: O) => RestResponse<Channel>;
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. */
1728
- startThreadInForumChannel: (channelId: string, params?: Partial<StartThreadInForumChannelParams>, options?: O) => RestResponse<Channel>;
1733
+ /** Creates a new thread in a forum or a media 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. */
1734
+ startThreadInForumOrMediaChannel: (channelId: string, params?: Partial<StartThreadInForumOrMediaChannelParams>, options?: O) => RestResponse<Channel>;
1729
1735
  /** Creates a new thread that is not connected to an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create Gateway event. */
1730
1736
  startThreadWithoutMessage: (channelId: string, params?: Partial<StartThreadWithoutMessageParams>, options?: O) => RestResponse<Channel>;
1731
1737
  /** Syncs the template to the guild's current state. Requires the MANAGE_GUILD permission. Returns the guild template object on success. */
@@ -1739,7 +1745,7 @@ export interface Endpoints<O> {
1739
1745
  /** 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
1746
  updateUserApplicationRoleConnection: (applicationId: string, params?: Partial<UpdateUserApplicationRoleConnectionParams>, options?: O) => RestResponse<ApplicationRoleConnection>;
1741
1747
  }
1742
- export declare const enum EventType {
1748
+ export declare enum EventType {
1743
1749
  /** when a member sends or edits a message in the guild */
1744
1750
  MESSAGE_SEND = 1
1745
1751
  }
@@ -1769,7 +1775,7 @@ export interface ExecuteWebhookParams {
1769
1775
  /** name of thread to create (requires the webhook channel to be a forum channel) */
1770
1776
  readonly thread_name: string;
1771
1777
  }
1772
- export declare const enum ExplicitContentFilterLevel {
1778
+ export declare enum ExplicitContentFilterLevel {
1773
1779
  /** media content will not be scanned */
1774
1780
  DISABLED = 0,
1775
1781
  /** media content sent by members without roles will be scanned */
@@ -1787,27 +1793,7 @@ export interface FollowedChannel {
1787
1793
  /** created target webhook id */
1788
1794
  readonly webhook_id: Snowflake;
1789
1795
  }
1790
- export declare const enum ForumLayoutType {
1791
- /** No default has been set for forum channel */
1792
- NOT_SET = 0,
1793
- /** Display posts as a list */
1794
- LIST_VIEW = 1,
1795
- /** Display posts as a collection of tiles */
1796
- GALLERY_VIEW = 2
1797
- }
1798
- export interface ForumTag {
1799
- /** the id of the tag */
1800
- readonly id: Snowflake;
1801
- /** the name of the tag (0-20 characters) */
1802
- readonly name: string;
1803
- /** whether this tag can only be added to or removed from threads by a member with the MANAGE_THREADS permission */
1804
- readonly moderated: boolean;
1805
- /** the id of a guild's custom emoji * */
1806
- readonly emoji_id?: Snowflake | null;
1807
- /** the unicode character of the emoji * */
1808
- readonly emoji_name?: string | null;
1809
- }
1810
- export interface ForumThreadMessageParam {
1796
+ export interface ForumAndMediaThreadMessageParam {
1811
1797
  /** Message contents (up to 2000 characters) */
1812
1798
  readonly content?: string;
1813
1799
  /** Up to 10 rich embeds (up to 6000 characters) */
@@ -1827,6 +1813,26 @@ export interface ForumThreadMessageParam {
1827
1813
  /** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
1828
1814
  readonly flags?: number;
1829
1815
  }
1816
+ export declare enum ForumLayoutType {
1817
+ /** No default has been set for forum channel */
1818
+ NOT_SET = 0,
1819
+ /** Display posts as a list */
1820
+ LIST_VIEW = 1,
1821
+ /** Display posts as a collection of tiles */
1822
+ GALLERY_VIEW = 2
1823
+ }
1824
+ export interface ForumTag {
1825
+ /** the id of the tag */
1826
+ readonly id: Snowflake;
1827
+ /** the name of the tag (0-20 characters) */
1828
+ readonly name: string;
1829
+ /** whether this tag can only be added to or removed from threads by a member with the MANAGE_THREADS permission */
1830
+ readonly moderated: boolean;
1831
+ /** the id of a guild's custom emoji * */
1832
+ readonly emoji_id?: Snowflake | null;
1833
+ /** the unicode character of the emoji * */
1834
+ readonly emoji_name?: string | null;
1835
+ }
1830
1836
  export declare const GatewayIntents: {
1831
1837
  readonly GUILDS: number;
1832
1838
  readonly GUILD_MEMBERS: number;
@@ -1848,7 +1854,7 @@ export declare const GatewayIntents: {
1848
1854
  readonly AUTO_MODERATION_CONFIGURATION: number;
1849
1855
  readonly AUTO_MODERATION_EXECUTION: number;
1850
1856
  };
1851
- export declare const enum GatewayOpcode {
1857
+ export declare enum GatewayOpcode {
1852
1858
  /** An event was dispatched. */
1853
1859
  DISPATCH = 0,
1854
1860
  /** Fired periodically by the client to keep the connection alive. */
@@ -2029,7 +2035,7 @@ export interface Guild {
2029
2035
  readonly owner?: boolean;
2030
2036
  /** id of owner */
2031
2037
  readonly owner_id: Snowflake;
2032
- /** total permissions for the user in the guild (excludes overwrites) */
2038
+ /** total permissions for the user in the guild (excludes overwrites and implicit permissions) */
2033
2039
  readonly permissions?: string;
2034
2040
  /** voice region id for the guild (deprecated) */
2035
2041
  readonly region?: string | null;
@@ -2155,7 +2161,7 @@ export interface GuildEmojisUpdateEvent {
2155
2161
  /** Array of emojis */
2156
2162
  readonly emojis: Array<Emoji>;
2157
2163
  }
2158
- export declare const enum GuildFeature {
2164
+ export declare enum GuildFeature {
2159
2165
  /** guild has access to set an animated guild banner image */
2160
2166
  ANIMATED_BANNER = "ANIMATED_BANNER",
2161
2167
  /** guild has access to set an animated guild icon */
@@ -2302,7 +2308,7 @@ export interface GuildMemberUpdateEvent {
2302
2308
  /** 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 */
2303
2309
  readonly communication_disabled_until?: string | null;
2304
2310
  }
2305
- export declare const enum GuildNsfwLevel {
2311
+ export declare enum GuildNsfwLevel {
2306
2312
  DEFAULT = 0,
2307
2313
  EXPLICIT = 1,
2308
2314
  SAFE = 2,
@@ -2402,16 +2408,16 @@ export interface GuildScheduledEventEntityMetadatum {
2402
2408
  /** location of the event (1-100 characters) */
2403
2409
  readonly location?: string;
2404
2410
  }
2405
- export declare const enum GuildScheduledEventEntityType {
2411
+ export declare enum GuildScheduledEventEntityType {
2406
2412
  STAGE_INSTANCE = 1,
2407
2413
  VOICE = 2,
2408
2414
  EXTERNAL = 3
2409
2415
  }
2410
- export declare const enum GuildScheduledEventPrivacyLevel {
2416
+ export declare enum GuildScheduledEventPrivacyLevel {
2411
2417
  /** the scheduled event is only accessible to guild members */
2412
2418
  GUILD_ONLY = 2
2413
2419
  }
2414
- export declare const enum GuildScheduledEventStatus {
2420
+ export declare enum GuildScheduledEventStatus {
2415
2421
  SCHEDULED = 1,
2416
2422
  ACTIVE = 2,
2417
2423
  COMPLETED = 3,
@@ -2593,7 +2599,7 @@ export interface IntegrationDeleteEvent {
2593
2599
  /** ID of the bot/OAuth2 application for this discord integration */
2594
2600
  readonly application_id?: Snowflake;
2595
2601
  }
2596
- export declare const enum IntegrationExpireBehavior {
2602
+ export declare enum IntegrationExpireBehavior {
2597
2603
  REMOVE_ROLE = 0,
2598
2604
  KICK = 1
2599
2605
  }
@@ -2663,7 +2669,7 @@ export interface InteractionCallbackModal {
2663
2669
  /** between 1 and 5 (inclusive) components that make up the modal */
2664
2670
  readonly components: Array<Component>;
2665
2671
  }
2666
- export declare const enum InteractionCallbackType {
2672
+ export declare enum InteractionCallbackType {
2667
2673
  /** ACK a Ping */
2668
2674
  PONG = 1,
2669
2675
  /** respond to an interaction with a message */
@@ -2687,7 +2693,7 @@ export interface InteractionResponse {
2687
2693
  /** an optional response message */
2688
2694
  readonly data?: InteractionCallbackDatum;
2689
2695
  }
2690
- export declare const enum InteractionType {
2696
+ export declare enum InteractionType {
2691
2697
  PING = 1,
2692
2698
  APPLICATION_COMMAND = 2,
2693
2699
  MESSAGE_COMPONENT = 3,
@@ -2777,11 +2783,11 @@ export interface InviteStageInstance {
2777
2783
  /** the topic of the Stage instance (1-120 characters) */
2778
2784
  readonly topic: string;
2779
2785
  }
2780
- export declare const enum InviteTargetType {
2786
+ export declare enum InviteTargetType {
2781
2787
  STREAM = 1,
2782
2788
  EMBEDDED_APPLICATION = 2
2783
2789
  }
2784
- export declare const enum KeywordPresetType {
2790
+ export declare enum KeywordPresetType {
2785
2791
  /** words that may be considered forms of swearing or cursing */
2786
2792
  PROFANITY = 1,
2787
2793
  /** words that refer to sexually explicit behavior or activity */
@@ -2917,7 +2923,7 @@ export interface Locale {
2917
2923
  /** Korean */
2918
2924
  readonly ko?: string;
2919
2925
  }
2920
- export declare const enum MembershipState {
2926
+ export declare enum MembershipState {
2921
2927
  INVITED = 1,
2922
2928
  ACCEPTED = 2
2923
2929
  }
@@ -2991,7 +2997,7 @@ export interface MessageActivity {
2991
2997
  /** party_id from a Rich Presence event */
2992
2998
  readonly party_id?: string;
2993
2999
  }
2994
- export declare const enum MessageActivityType {
3000
+ export declare enum MessageActivityType {
2995
3001
  JOIN = 1,
2996
3002
  SPECTATE = 2,
2997
3003
  LISTEN = 3,
@@ -3122,7 +3128,7 @@ export interface MessageReference {
3122
3128
  /** when sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */
3123
3129
  readonly fail_if_not_exists?: boolean;
3124
3130
  }
3125
- export declare const enum MessageType {
3131
+ export declare enum MessageType {
3126
3132
  DEFAULT = 0,
3127
3133
  RECIPIENT_ADD = 1,
3128
3134
  RECIPIENT_REMOVE = 2,
@@ -3156,7 +3162,7 @@ export declare const enum MessageType {
3156
3162
  GUILD_APPLICATION_PREMIUM_SUBSCRIPTION = 32
3157
3163
  }
3158
3164
  export type MessageUpdateEvent = MessageCreateEvent;
3159
- export declare const enum MfaLevel {
3165
+ export declare enum MfaLevel {
3160
3166
  /** guild has no MFA/2FA requirement for moderation actions */
3161
3167
  NONE = 0,
3162
3168
  /** guild has a 2FA requirement for moderation actions */
@@ -3197,7 +3203,7 @@ export interface ModifyChannelGuildChannelParams {
3197
3203
  readonly type: ChannelType;
3198
3204
  /** the position of the channel in the left-hand listing */
3199
3205
  readonly position?: number | null;
3200
- /** 0-1024 character channel topic (0-4096 characters for GUILD_FORUM channels) */
3206
+ /** 0-1024 character channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels) */
3201
3207
  readonly topic?: string | null;
3202
3208
  /** whether the channel is nsfw */
3203
3209
  readonly nsfw?: boolean | null;
@@ -3217,15 +3223,15 @@ export interface ModifyChannelGuildChannelParams {
3217
3223
  readonly video_quality_mode?: VideoQualityMode | null;
3218
3224
  /** the default duration that the clients use (not the API) for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity */
3219
3225
  readonly default_auto_archive_duration?: number | null;
3220
- /** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported. */
3226
+ /** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported by GUILD_FORUM and GUILD_MEDIA channels. HIDE_MEDIA_DOWNLOAD_OPTIONS (1 << 15) is supported only by GUILD_MEDIA channels */
3221
3227
  readonly flags?: number;
3222
- /** the set of tags that can be used in a GUILD_FORUM channel; limited to 20 */
3228
+ /** the set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel; limited to 20 */
3223
3229
  readonly available_tags?: Array<ForumTag>;
3224
- /** the emoji to show in the add reaction button on a thread in a GUILD_FORUM channel */
3230
+ /** the emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
3225
3231
  readonly default_reaction_emoji?: DefaultReaction | null;
3226
3232
  /** 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. */
3227
3233
  readonly default_thread_rate_limit_per_user?: number;
3228
- /** the default sort order type used to order posts in GUILD_FORUM channels */
3234
+ /** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels */
3229
3235
  readonly default_sort_order?: SortOrderType | null;
3230
3236
  /** the default forum layout type used to display posts in GUILD_FORUM channels */
3231
3237
  readonly default_forum_layout?: ForumLayoutType;
@@ -3244,9 +3250,9 @@ export interface ModifyChannelThreadParams {
3244
3250
  readonly invitable: boolean;
3245
3251
  /** amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages, manage_thread, or manage_channel, are unaffected */
3246
3252
  readonly rate_limit_per_user?: number | null;
3247
- /** channel flags combined as a bitfield; PINNED can only be set for threads in forum channels */
3253
+ /** channel flags combined as a bitfield; PINNED can only be set for threads in forum and media channels */
3248
3254
  readonly flags?: number;
3249
- /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel; limited to 5 */
3255
+ /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel; limited to 5 */
3250
3256
  readonly applied_tags?: Array<Snowflake>;
3251
3257
  }
3252
3258
  export interface ModifyCurrentMemberParams {
@@ -3447,13 +3453,13 @@ export interface ModifyWebhookParams {
3447
3453
  /** the new channel id this webhook should be moved to */
3448
3454
  readonly channel_id: Snowflake;
3449
3455
  }
3450
- export declare const enum MutableGuildFeature {
3456
+ export declare enum MutableGuildFeature {
3451
3457
  COMMUNITY = "COMMUNITY",
3452
3458
  DISCOVERABLE = "DISCOVERABLE",
3453
3459
  INVITES_DISABLED = "INVITES_DISABLED",
3454
3460
  RAID_ALERTS_DISABLED = "RAID_ALERTS_DISABLED"
3455
3461
  }
3456
- export declare const enum OAuth2Scope {
3462
+ export declare enum OAuth2Scope {
3457
3463
  /** allows your app to fetch data from a user's "Now Playing/Recently Played" list — not currently available for apps */
3458
3464
  ACTIVITIES_READ = "activities.read",
3459
3465
  /** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
@@ -3511,7 +3517,7 @@ export declare const enum OAuth2Scope {
3511
3517
  /** this generates a webhook that is returned in the oauth token response for authorization code grants */
3512
3518
  WEBHOOK_INCOMING = "webhook.incoming"
3513
3519
  }
3514
- export declare const enum OnboardingMode {
3520
+ export declare enum OnboardingMode {
3515
3521
  /** Counts only Default Channels towards constraints */
3516
3522
  ONBOARDING_DEFAULT = 0,
3517
3523
  /** Counts Default Channels and Questions towards constraints */
@@ -3635,7 +3641,7 @@ export declare const PermissionFlag: {
3635
3641
  /** Allows sending voice messages */
3636
3642
  readonly SEND_VOICE_MESSAGES: bigint;
3637
3643
  };
3638
- export declare const enum PremiumTier {
3644
+ export declare enum PremiumTier {
3639
3645
  /** guild has not unlocked any Server Boost perks */
3640
3646
  NONE = 0,
3641
3647
  /** guild has unlocked Server Boost level 1 perks */
@@ -3645,7 +3651,7 @@ export declare const enum PremiumTier {
3645
3651
  /** guild has unlocked Server Boost level 3 perks */
3646
3652
  TIER_3 = 3
3647
3653
  }
3648
- export declare const enum PremiumType {
3654
+ export declare enum PremiumType {
3649
3655
  NONE = 0,
3650
3656
  NITRO_CLASSIC = 1,
3651
3657
  NITRO = 2,
@@ -3663,7 +3669,7 @@ export interface PresenceUpdateEvent {
3663
3669
  /** User's platform-dependent status */
3664
3670
  readonly client_status: ClientStatus;
3665
3671
  }
3666
- export declare const enum PrivacyLevel {
3672
+ export declare enum PrivacyLevel {
3667
3673
  /** The Stage instance is visible publicly. (deprecated) */
3668
3674
  PUBLIC = 1,
3669
3675
  /** The Stage instance is visible to only guild members. */
@@ -3683,17 +3689,29 @@ export interface PromptOption {
3683
3689
  /** Description of the option */
3684
3690
  readonly description?: string | null;
3685
3691
  }
3686
- export declare const enum PromptType {
3692
+ export declare enum PromptType {
3687
3693
  MULTIPLE_CHOICE = 0,
3688
3694
  DROPDOWN = 1
3689
3695
  }
3690
3696
  export interface Reaction {
3691
- /** times this emoji has been used to react */
3697
+ /** Total number of times this emoji has been used to react (including super reacts) */
3692
3698
  readonly count: number;
3693
- /** whether the current user reacted using this emoji */
3699
+ /** Reaction count details object */
3700
+ readonly count_details: ReactionCountDetail;
3701
+ /** Whether the current user reacted using this emoji */
3694
3702
  readonly me: boolean;
3703
+ /** Whether the current user super-reacted using this emoji */
3704
+ readonly me_burst: boolean;
3695
3705
  /** emoji information */
3696
3706
  readonly emoji: Emoji;
3707
+ /** HEX colors used for super reaction */
3708
+ readonly burst_colors: Array<any>;
3709
+ }
3710
+ export interface ReactionCountDetail {
3711
+ /** Count of super reactions */
3712
+ readonly burst: number;
3713
+ /** Count of normal reactions */
3714
+ readonly normal: number;
3697
3715
  }
3698
3716
  export interface ReadyEvent {
3699
3717
  /** API version */
@@ -3950,7 +3968,7 @@ export interface SessionStartLimit {
3950
3968
  readonly max_concurrency: number;
3951
3969
  }
3952
3970
  export type Snowflake = `${bigint}`;
3953
- export declare const enum SortOrderType {
3971
+ export declare enum SortOrderType {
3954
3972
  /** Sort forum posts by activity */
3955
3973
  LATEST_ACTIVITY = 0,
3956
3974
  /** Sort forum posts by creation time (from most recent to oldest) */
@@ -3983,36 +4001,16 @@ export interface StartThreadFromMessageParams {
3983
4001
  /** amount of seconds a user has to wait before sending another message (0-21600) */
3984
4002
  readonly rate_limit_per_user?: number | null;
3985
4003
  }
3986
- export interface StartThreadInForumChannelForumThreadMessageParams {
3987
- /** Message contents (up to 2000 characters) */
3988
- readonly content?: string;
3989
- /** Up to 10 rich embeds (up to 6000 characters) */
3990
- readonly embeds?: Array<Embed>;
3991
- /** Allowed mentions for the message */
3992
- readonly allowed_mentions?: AllowedMention;
3993
- /** Components to include with the message */
3994
- readonly components?: Array<Component>;
3995
- /** IDs of up to 3 stickers in the server to send in the message */
3996
- readonly sticker_ids?: Array<Snowflake>;
3997
- /** Contents of the file being sent. See Uploading Files */
3998
- readonly files: string;
3999
- /** JSON-encoded body of non-file params, only for multipart/form-data requests. See Uploading Files */
4000
- readonly payload_json?: string;
4001
- /** Attachment objects with filename and description. See Uploading Files */
4002
- readonly attachments?: Array<Attachment>;
4003
- /** Message flags combined as a bitfield (only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set) */
4004
- readonly flags?: number;
4005
- }
4006
- export interface StartThreadInForumChannelParams {
4004
+ export interface StartThreadInForumOrMediaChannelParams {
4007
4005
  /** 1-100 character channel name */
4008
4006
  readonly name: string;
4009
4007
  /** duration in minutes to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080 */
4010
4008
  readonly auto_archive_duration?: number;
4011
4009
  /** amount of seconds a user has to wait before sending another message (0-21600) */
4012
4010
  readonly rate_limit_per_user?: number | null;
4013
- /** contents of the first message in the forum thread */
4014
- readonly message: StartThreadInForumChannelForumThreadMessageParams;
4015
- /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */
4011
+ /** contents of the first message in the forum/media thread */
4012
+ readonly message: Message;
4013
+ /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
4016
4014
  readonly applied_tags?: Array<Snowflake>;
4017
4015
  }
4018
4016
  export interface StartThreadWithoutMessageParams {
@@ -4027,7 +4025,7 @@ export interface StartThreadWithoutMessageParams {
4027
4025
  /** amount of seconds a user has to wait before sending another message (0-21600) */
4028
4026
  readonly rate_limit_per_user?: number | null;
4029
4027
  }
4030
- export declare const enum StatusType {
4028
+ export declare enum StatusType {
4031
4029
  /** Online */
4032
4030
  ONLINE = "online",
4033
4031
  /** Do Not Disturb */
@@ -4065,7 +4063,7 @@ export interface Sticker {
4065
4063
  /** the standard sticker's sort order within its pack */
4066
4064
  readonly sort_value?: number;
4067
4065
  }
4068
- export declare const enum StickerFormatType {
4066
+ export declare enum StickerFormatType {
4069
4067
  PNG = 1,
4070
4068
  APNG = 2,
4071
4069
  LOTTIE = 3,
@@ -4095,8 +4093,8 @@ export interface StickerPack {
4095
4093
  /** id of the sticker pack's banner image */
4096
4094
  readonly banner_asset_id?: Snowflake;
4097
4095
  }
4098
- export declare const enum StickerType {
4099
- /** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
4096
+ export declare enum StickerType {
4097
+ /** an official sticker in a pack */
4100
4098
  STANDARD = 1,
4101
4099
  /** a sticker uploaded to a guild for the guild's members */
4102
4100
  GUILD = 2
@@ -4116,26 +4114,36 @@ export declare const SystemChannelFlag: {
4116
4114
  readonly SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: number;
4117
4115
  };
4118
4116
  export interface Team {
4119
- /** a hash of the image of the team's icon */
4117
+ /** Hash of the image of the team's icon */
4120
4118
  readonly icon?: string | null;
4121
- /** the unique id of the team */
4119
+ /** Unique ID of the team */
4122
4120
  readonly id: Snowflake;
4123
- /** the members of the team */
4121
+ /** Members of the team */
4124
4122
  readonly members: Array<TeamMember>;
4125
- /** the name of the team */
4123
+ /** Name of the team */
4126
4124
  readonly name: string;
4127
- /** the user id of the current team owner */
4125
+ /** User ID of the current team owner */
4128
4126
  readonly owner_user_id: Snowflake;
4129
4127
  }
4130
4128
  export interface TeamMember {
4131
- /** the user's membership state on the team */
4129
+ /** User's membership state on the team */
4132
4130
  readonly membership_state: MembershipState;
4133
- /** will always be ["*"] */
4134
- readonly permissions: Array<string>;
4135
- /** the id of the parent team of which they are a member */
4131
+ /** ID of the parent team of which they are a member */
4136
4132
  readonly team_id: Snowflake;
4137
- /** the avatar, discriminator, id, and username of the user */
4133
+ /** Avatar, discriminator, ID, and username of the user */
4138
4134
  readonly user: User;
4135
+ /** Role of the team member */
4136
+ readonly role: TeamMemberRoleType;
4137
+ }
4138
+ export declare enum TeamMemberRoleType {
4139
+ /** 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. */
4140
+ OWNER = "",
4141
+ /** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
4142
+ ADMIN = "admin",
4143
+ /** 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. */
4144
+ DEVELOPER = "developer",
4145
+ /** 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. */
4146
+ READONLY = "read_only"
4139
4147
  }
4140
4148
  export interface TextInput {
4141
4149
  /** 4 for a text input */
@@ -4157,7 +4165,7 @@ export interface TextInput {
4157
4165
  /** Custom placeholder text if the input is empty; max 100 characters */
4158
4166
  readonly placeholder?: string;
4159
4167
  }
4160
- export declare const enum TextInputStyle {
4168
+ export declare enum TextInputStyle {
4161
4169
  /** Single-line input */
4162
4170
  SHORT = 1,
4163
4171
  /** Multi-line input */
@@ -4233,7 +4241,7 @@ export interface TriggerMetadatum {
4233
4241
  /** MENTION_SPAM */
4234
4242
  readonly mention_raid_protection_enabled: boolean;
4235
4243
  }
4236
- export declare const enum TriggerType {
4244
+ export declare enum TriggerType {
4237
4245
  /** check if content contains words from a user defined list of keywords */
4238
4246
  KEYWORD = 1,
4239
4247
  /** check if content represents generic spam */
@@ -4358,7 +4366,7 @@ export declare const UserFlag: {
4358
4366
  readonly ACTIVE_DEVELOPER: number;
4359
4367
  };
4360
4368
  export type UserUpdateEvent = User;
4361
- export declare const enum VerificationLevel {
4369
+ export declare enum VerificationLevel {
4362
4370
  /** unrestricted */
4363
4371
  NONE = 0,
4364
4372
  /** must have verified email on account */
@@ -4370,19 +4378,19 @@ export declare const enum VerificationLevel {
4370
4378
  /** must have a verified phone number */
4371
4379
  VERY_HIGH = 4
4372
4380
  }
4373
- export declare const enum VideoQualityMode {
4381
+ export declare enum VideoQualityMode {
4374
4382
  /** Discord chooses the quality for optimal performance */
4375
4383
  AUTO = 1,
4376
4384
  /** 720p */
4377
4385
  FULL = 2
4378
4386
  }
4379
- export declare const enum VisibilityType {
4387
+ export declare enum VisibilityType {
4380
4388
  /** invisible to everyone except the user themselves */
4381
4389
  NONE = 0,
4382
4390
  /** visible to everyone */
4383
4391
  EVERYONE = 1
4384
4392
  }
4385
- export declare const enum VoiceOpcode {
4393
+ export declare enum VoiceOpcode {
4386
4394
  /** Begin a voice websocket connection. */
4387
4395
  IDENTIFY = 0,
4388
4396
  /** Select the voice protocol. */
@@ -4487,7 +4495,7 @@ export interface WebhooksUpdateEvent {
4487
4495
  /** ID of the channel */
4488
4496
  readonly channel_id: Snowflake;
4489
4497
  }
4490
- export declare const enum WebhookType {
4498
+ export declare enum WebhookType {
4491
4499
  /** Incoming Webhooks can post messages to channels with a generated token */
4492
4500
  INCOMING = 1,
4493
4501
  /** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */