@discordeno/bot 22.0.1-next.a3bb9fc → 22.0.1-next.a3e4339

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 (239) hide show
  1. package/dist/bot.d.ts +3 -3
  2. package/dist/bot.d.ts.map +1 -1
  3. package/dist/bot.js +3 -2
  4. package/dist/commandOptionsParser.d.ts +1 -1
  5. package/dist/commandOptionsParser.d.ts.map +1 -1
  6. package/dist/commandOptionsParser.js +2 -2
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/constants.js +2 -2
  9. package/dist/desiredProperties.d.ts +118 -92
  10. package/dist/desiredProperties.d.ts.map +1 -1
  11. package/dist/desiredProperties.js +314 -2
  12. package/dist/events.d.ts +43 -17
  13. package/dist/events.d.ts.map +1 -1
  14. package/dist/events.js +1 -1
  15. package/dist/handlers/channels/CHANNEL_INFO.d.ts +4 -0
  16. package/dist/handlers/channels/CHANNEL_INFO.d.ts.map +1 -0
  17. package/dist/handlers/channels/CHANNEL_INFO.js +7 -0
  18. package/dist/handlers/channels/THREAD_LIST_SYNC.d.ts.map +1 -1
  19. package/dist/handlers/channels/THREAD_LIST_SYNC.js +3 -6
  20. package/dist/handlers/channels/THREAD_MEMBERS_UPDATE.js +2 -2
  21. package/dist/handlers/channels/index.d.ts +1 -0
  22. package/dist/handlers/channels/index.d.ts.map +1 -1
  23. package/dist/handlers/channels/index.js +2 -1
  24. package/dist/handlers/guilds/GUILD_AUDIT_LOG_ENTRY_CREATE.d.ts.map +1 -1
  25. package/dist/handlers/guilds/GUILD_AUDIT_LOG_ENTRY_CREATE.js +1 -2
  26. package/dist/handlers/guilds/automod/AUTO_MODERATION_ACTION_EXECUTION.js +2 -2
  27. package/dist/handlers/guilds/automod/AUTO_MODERATION_RULE_CREATE.js +2 -2
  28. package/dist/handlers/guilds/automod/AUTO_MODERATION_RULE_DELETE.js +2 -2
  29. package/dist/handlers/guilds/automod/AUTO_MODERATION_RULE_UPDATE.js +2 -2
  30. package/dist/handlers/interactions/APPLICATION_COMMAND_PERMISSIONS_UPDATE.js +2 -2
  31. package/dist/handlers/invites/INVITE_CREATE.d.ts.map +1 -1
  32. package/dist/handlers/invites/INVITE_CREATE.js +20 -4
  33. package/dist/handlers/invites/INVITE_DELETE.d.ts.map +1 -1
  34. package/dist/handlers/invites/INVITE_DELETE.js +4 -4
  35. package/dist/handlers/members/GUILD_MEMBER_UPDATE.d.ts.map +1 -1
  36. package/dist/handlers/members/GUILD_MEMBER_UPDATE.js +4 -4
  37. package/dist/handlers/messages/MESSAGE_REACTION_ADD.d.ts.map +1 -1
  38. package/dist/handlers/messages/MESSAGE_REACTION_ADD.js +4 -3
  39. package/dist/handlers/messages/MESSAGE_REACTION_REMOVE.d.ts.map +1 -1
  40. package/dist/handlers/messages/MESSAGE_REACTION_REMOVE.js +4 -3
  41. package/dist/handlers/messages/MESSAGE_REACTION_REMOVE_EMOJI.d.ts.map +1 -1
  42. package/dist/handlers/messages/MESSAGE_REACTION_REMOVE_EMOJI.js +4 -3
  43. package/dist/handlers/misc/READY.d.ts.map +1 -1
  44. package/dist/handlers/misc/READY.js +4 -4
  45. package/dist/handlers/voice/VOICE_CHANNEL_START_TIME_UPDATE.d.ts +4 -0
  46. package/dist/handlers/voice/VOICE_CHANNEL_START_TIME_UPDATE.d.ts.map +1 -0
  47. package/dist/handlers/voice/VOICE_CHANNEL_START_TIME_UPDATE.js +11 -0
  48. package/dist/handlers/voice/VOICE_CHANNEL_STATUS_UPDATE.d.ts +4 -0
  49. package/dist/handlers/voice/VOICE_CHANNEL_STATUS_UPDATE.d.ts.map +1 -0
  50. package/dist/handlers/voice/VOICE_CHANNEL_STATUS_UPDATE.js +11 -0
  51. package/dist/handlers/voice/index.d.ts +2 -0
  52. package/dist/handlers/voice/index.d.ts.map +1 -1
  53. package/dist/handlers/voice/index.js +3 -1
  54. package/dist/handlers.d.ts.map +1 -1
  55. package/dist/handlers.js +5 -2
  56. package/dist/helpers.d.ts +86 -46
  57. package/dist/helpers.d.ts.map +1 -1
  58. package/dist/helpers.js +319 -218
  59. package/dist/transformers/activity.d.ts +17 -5
  60. package/dist/transformers/activity.d.ts.map +1 -1
  61. package/dist/transformers/activity.js +55 -37
  62. package/dist/transformers/application.d.ts +3 -3
  63. package/dist/transformers/application.d.ts.map +1 -1
  64. package/dist/transformers/application.js +55 -41
  65. package/dist/transformers/applicationCommand.d.ts +3 -2
  66. package/dist/transformers/applicationCommand.d.ts.map +1 -1
  67. package/dist/transformers/applicationCommand.js +19 -17
  68. package/dist/transformers/applicationCommandOption.d.ts +3 -2
  69. package/dist/transformers/applicationCommandOption.d.ts.map +1 -1
  70. package/dist/transformers/applicationCommandOption.js +22 -19
  71. package/dist/transformers/applicationCommandOptionChoice.d.ts +3 -2
  72. package/dist/transformers/applicationCommandOptionChoice.d.ts.map +1 -1
  73. package/dist/transformers/applicationCommandOptionChoice.js +10 -8
  74. package/dist/transformers/applicationCommandPermission.d.ts +7 -3
  75. package/dist/transformers/applicationCommandPermission.d.ts.map +1 -1
  76. package/dist/transformers/applicationCommandPermission.js +20 -13
  77. package/dist/transformers/attachment.d.ts +3 -1
  78. package/dist/transformers/attachment.d.ts.map +1 -1
  79. package/dist/transformers/attachment.js +12 -4
  80. package/dist/transformers/auditLogEntry.d.ts +7 -3
  81. package/dist/transformers/auditLogEntry.d.ts.map +1 -1
  82. package/dist/transformers/auditLogEntry.js +33 -25
  83. package/dist/transformers/automodActionExecution.d.ts +10 -3
  84. package/dist/transformers/automodActionExecution.d.ts.map +1 -1
  85. package/dist/transformers/automodActionExecution.js +35 -23
  86. package/dist/transformers/automodRule.d.ts +7 -3
  87. package/dist/transformers/automodRule.d.ts.map +1 -1
  88. package/dist/transformers/automodRule.js +30 -30
  89. package/dist/transformers/avatarDecorationData.d.ts +3 -2
  90. package/dist/transformers/avatarDecorationData.d.ts.map +1 -1
  91. package/dist/transformers/avatarDecorationData.js +6 -3
  92. package/dist/transformers/channel.d.ts +16 -4
  93. package/dist/transformers/channel.d.ts.map +1 -1
  94. package/dist/transformers/channel.js +44 -9
  95. package/dist/transformers/component.d.ts +17 -5
  96. package/dist/transformers/component.d.ts.map +1 -1
  97. package/dist/transformers/component.js +232 -46
  98. package/dist/transformers/embed.d.ts +16 -3
  99. package/dist/transformers/embed.d.ts.map +1 -1
  100. package/dist/transformers/embed.js +72 -42
  101. package/dist/transformers/emoji.d.ts +7 -3
  102. package/dist/transformers/emoji.d.ts.map +1 -1
  103. package/dist/transformers/emoji.js +10 -5
  104. package/dist/transformers/entitlement.d.ts +3 -2
  105. package/dist/transformers/entitlement.d.ts.map +1 -1
  106. package/dist/transformers/entitlement.js +6 -3
  107. package/dist/transformers/gatewayBot.d.ts +7 -3
  108. package/dist/transformers/gatewayBot.d.ts.map +1 -1
  109. package/dist/transformers/gatewayBot.js +20 -13
  110. package/dist/transformers/guild.d.ts +3 -2
  111. package/dist/transformers/guild.d.ts.map +1 -1
  112. package/dist/transformers/guild.js +26 -34
  113. package/dist/transformers/incidentsData.d.ts +3 -2
  114. package/dist/transformers/incidentsData.d.ts.map +1 -1
  115. package/dist/transformers/incidentsData.js +6 -3
  116. package/dist/transformers/integration.d.ts +10 -3
  117. package/dist/transformers/integration.d.ts.map +1 -1
  118. package/dist/transformers/integration.js +43 -31
  119. package/dist/transformers/interaction.d.ts +20 -12
  120. package/dist/transformers/interaction.d.ts.map +1 -1
  121. package/dist/transformers/interaction.js +58 -34
  122. package/dist/transformers/invite.d.ts +4 -4
  123. package/dist/transformers/invite.d.ts.map +1 -1
  124. package/dist/transformers/invite.js +26 -23
  125. package/dist/transformers/lobby.d.ts +16 -4
  126. package/dist/transformers/lobby.d.ts.map +1 -1
  127. package/dist/transformers/lobby.js +45 -5
  128. package/dist/transformers/member.d.ts +3 -2
  129. package/dist/transformers/member.d.ts.map +1 -1
  130. package/dist/transformers/member.js +6 -3
  131. package/dist/transformers/message.d.ts +20 -10
  132. package/dist/transformers/message.d.ts.map +1 -1
  133. package/dist/transformers/message.js +56 -38
  134. package/dist/transformers/onboarding.d.ts +9 -4
  135. package/dist/transformers/onboarding.d.ts.map +1 -1
  136. package/dist/transformers/onboarding.js +17 -10
  137. package/dist/transformers/poll.d.ts +6 -3
  138. package/dist/transformers/poll.d.ts.map +1 -1
  139. package/dist/transformers/poll.js +14 -7
  140. package/dist/transformers/presence.d.ts +3 -2
  141. package/dist/transformers/presence.d.ts.map +1 -1
  142. package/dist/transformers/presence.js +10 -6
  143. package/dist/transformers/reverse/activity.d.ts +4 -3
  144. package/dist/transformers/reverse/activity.d.ts.map +1 -1
  145. package/dist/transformers/reverse/activity.js +20 -24
  146. package/dist/transformers/reverse/applicationCommand.d.ts.map +1 -1
  147. package/dist/transformers/reverse/applicationCommand.js +3 -3
  148. package/dist/transformers/reverse/component.d.ts.map +1 -1
  149. package/dist/transformers/reverse/component.js +153 -11
  150. package/dist/transformers/reverse/embed.d.ts +1 -1
  151. package/dist/transformers/reverse/embed.d.ts.map +1 -1
  152. package/dist/transformers/reverse/embed.js +22 -5
  153. package/dist/transformers/reverse/member.d.ts.map +1 -1
  154. package/dist/transformers/reverse/member.js +5 -3
  155. package/dist/transformers/reverse/presence.d.ts +2 -1
  156. package/dist/transformers/reverse/presence.d.ts.map +1 -1
  157. package/dist/transformers/reverse/presence.js +5 -5
  158. package/dist/transformers/reverse/user.d.ts +5 -0
  159. package/dist/transformers/reverse/user.d.ts.map +1 -0
  160. package/dist/transformers/reverse/user.js +17 -0
  161. package/dist/transformers/role.d.ts +7 -4
  162. package/dist/transformers/role.d.ts.map +1 -1
  163. package/dist/transformers/role.js +11 -7
  164. package/dist/transformers/scheduledEvent.d.ts +6 -3
  165. package/dist/transformers/scheduledEvent.d.ts.map +1 -1
  166. package/dist/transformers/scheduledEvent.js +10 -5
  167. package/dist/transformers/sku.d.ts +3 -2
  168. package/dist/transformers/sku.d.ts.map +1 -1
  169. package/dist/transformers/sku.js +6 -3
  170. package/dist/transformers/soundboardSound.d.ts +3 -2
  171. package/dist/transformers/soundboardSound.d.ts.map +1 -1
  172. package/dist/transformers/soundboardSound.js +7 -4
  173. package/dist/transformers/stageInstance.d.ts +3 -2
  174. package/dist/transformers/stageInstance.d.ts.map +1 -1
  175. package/dist/transformers/stageInstance.js +6 -3
  176. package/dist/transformers/stageInviteInstance.d.ts +3 -3
  177. package/dist/transformers/stageInviteInstance.d.ts.map +1 -1
  178. package/dist/transformers/stageInviteInstance.js +10 -8
  179. package/dist/transformers/sticker.d.ts +6 -3
  180. package/dist/transformers/sticker.d.ts.map +1 -1
  181. package/dist/transformers/sticker.js +18 -14
  182. package/dist/transformers/subscription.d.ts +3 -2
  183. package/dist/transformers/subscription.d.ts.map +1 -1
  184. package/dist/transformers/subscription.js +6 -3
  185. package/dist/transformers/team.d.ts +7 -3
  186. package/dist/transformers/team.d.ts.map +1 -1
  187. package/dist/transformers/team.js +22 -16
  188. package/dist/transformers/template.d.ts +3 -2
  189. package/dist/transformers/template.d.ts.map +1 -1
  190. package/dist/transformers/template.js +18 -16
  191. package/dist/transformers/threadMember.d.ts +6 -3
  192. package/dist/transformers/threadMember.d.ts.map +1 -1
  193. package/dist/transformers/threadMember.js +20 -16
  194. package/dist/transformers/toggles/channel.d.ts +2 -2
  195. package/dist/transformers/toggles/channel.d.ts.map +1 -1
  196. package/dist/transformers/toggles/channel.js +2 -2
  197. package/dist/transformers/toggles/emoji.d.ts +1 -1
  198. package/dist/transformers/toggles/emoji.d.ts.map +1 -1
  199. package/dist/transformers/toggles/emoji.js +1 -1
  200. package/dist/transformers/toggles/guild.d.ts +19 -16
  201. package/dist/transformers/toggles/guild.d.ts.map +1 -1
  202. package/dist/transformers/toggles/guild.js +30 -23
  203. package/dist/transformers/toggles/role.d.ts +1 -1
  204. package/dist/transformers/toggles/role.d.ts.map +1 -1
  205. package/dist/transformers/toggles/role.js +1 -1
  206. package/dist/transformers/toggles/user.d.ts +1 -1
  207. package/dist/transformers/toggles/user.d.ts.map +1 -1
  208. package/dist/transformers/toggles/user.js +1 -1
  209. package/dist/transformers/toggles/voice.d.ts +1 -1
  210. package/dist/transformers/toggles/voice.d.ts.map +1 -1
  211. package/dist/transformers/toggles/voice.js +1 -1
  212. package/dist/transformers/types.d.ts +304 -59
  213. package/dist/transformers/types.d.ts.map +1 -1
  214. package/dist/transformers/types.js +2 -2
  215. package/dist/transformers/user.d.ts +13 -5
  216. package/dist/transformers/user.d.ts.map +1 -1
  217. package/dist/transformers/user.js +19 -10
  218. package/dist/transformers/voiceRegion.d.ts +3 -2
  219. package/dist/transformers/voiceRegion.d.ts.map +1 -1
  220. package/dist/transformers/voiceRegion.js +12 -10
  221. package/dist/transformers/voiceState.d.ts +3 -3
  222. package/dist/transformers/voiceState.d.ts.map +1 -1
  223. package/dist/transformers/voiceState.js +6 -4
  224. package/dist/transformers/webhook.d.ts +3 -1
  225. package/dist/transformers/webhook.d.ts.map +1 -1
  226. package/dist/transformers/webhook.js +10 -7
  227. package/dist/transformers/welcomeScreen.d.ts +7 -3
  228. package/dist/transformers/welcomeScreen.d.ts.map +1 -1
  229. package/dist/transformers/welcomeScreen.js +19 -12
  230. package/dist/transformers/widget.d.ts +3 -2
  231. package/dist/transformers/widget.d.ts.map +1 -1
  232. package/dist/transformers/widget.js +17 -13
  233. package/dist/transformers/widgetSettings.d.ts +3 -2
  234. package/dist/transformers/widgetSettings.d.ts.map +1 -1
  235. package/dist/transformers/widgetSettings.js +9 -7
  236. package/dist/transformers.d.ts +191 -81
  237. package/dist/transformers.d.ts.map +1 -1
  238. package/dist/transformers.js +99 -29
  239. package/package.json +25 -19
@@ -1,4 +1,4 @@
1
- import type { ActivityTypes, ApplicationCommandOptionTypes, ApplicationCommandPermissionTypes, ApplicationCommandTypes, ApplicationFlags, AttachmentFlags, AuditLogEvents, AutoModerationActionType, AutoModerationEventTypes, AutoModerationTriggerTypes, BigString, ButtonStyles, Camelize, ChannelTypes, DefaultMessageNotificationLevels, DiscordActivityInstanceResource, DiscordActivityLocationKind, DiscordApplicationEventWebhookStatus, DiscordApplicationIntegrationType, DiscordAuditLogChange, DiscordAutoModerationRuleTriggerMetadataPresets, DiscordEntitlementType, DiscordGuildOnboardingMode, DiscordGuildOnboardingPromptType, DiscordInteractionContextType, DiscordInviteType, DiscordPollLayoutType, DiscordScheduledEventRecurrenceRuleFrequency, DiscordScheduledEventRecurrenceRuleMonth, DiscordScheduledEventRecurrenceRuleNWeekday, DiscordScheduledEventRecurrenceRuleWeekday, DiscordSkuType, DiscordSubscriptionStatus, DiscordTeamMemberRole, DiscordTemplateSerializedSourceGuild, DiscordWebhookEventType, EmbedTypes, ExplicitContentFilterLevels, ForumLayout, GuildNsfwLevel, IntegrationExpireBehaviors, InteractionCallbackData, InteractionCallbackOptions, InteractionResponseTypes, InteractionTypes, Localization, MessageActivityTypes, MessageComponentTypes, MessageTypes, MfaLevels, OAuth2Scope, Overwrite, PremiumTiers, PremiumTypes, PresenceStatus, RoleFlags, ScheduledEventEntityType, ScheduledEventPrivacyLevel, ScheduledEventStatus, SelectOption, SeparatorSpacingSize, SkuFlags, SortOrderTypes, StickerFormatTypes, StickerTypes, SystemChannelFlags, TeamMembershipStates, TextStyles, VerificationLevels, VideoQualityModes, WebhookTypes } from '@discordeno/types';
1
+ import type { ActivityTypes, ApplicationCommandOptionTypes, ApplicationCommandPermissionTypes, ApplicationCommandTypes, ApplicationFlags, AttachmentFlags, AuditLogEvents, AutoModerationActionType, AutoModerationEventTypes, AutoModerationTriggerTypes, BigString, ButtonStyles, Camelize, ChannelTypes, CheckboxGroupOption, DefaultMessageNotificationLevels, DiscordActivityInstanceResource, DiscordActivityLocationKind, DiscordActivityParty, DiscordActivitySecrets, DiscordActivityTimestamps, DiscordApplicationEventWebhookStatus, DiscordApplicationIntegrationType, DiscordAuditLogChange, DiscordAutoModerationRuleTriggerMetadataPresets, DiscordBaseTheme, DiscordContentScanMetadata, DiscordEntitlementType, DiscordGuildOnboardingMode, DiscordGuildOnboardingPromptType, DiscordInteractionContextType, DiscordInviteType, DiscordPollLayoutType, DiscordScheduledEventRecurrenceRuleFrequency, DiscordScheduledEventRecurrenceRuleMonth, DiscordScheduledEventRecurrenceRuleNWeekday, DiscordScheduledEventRecurrenceRuleWeekday, DiscordSkuType, DiscordStatusDisplayType, DiscordSubscriptionStatus, DiscordTeamMemberRole, DiscordTemplateSerializedSourceGuild, DiscordWebhookEventType, EmbedTypes, ExplicitContentFilterLevels, ForumLayout, GuildAgeRestrictionLevel, IntegrationExpireBehaviors, InteractionCallbackData, InteractionCallbackOptions, InteractionResponseTypes, InteractionTypes, Localization, MessageActivityTypes, MessageComponentTypes, MessageTypes, MfaLevels, OAuth2Scope, OverwriteTypes, PremiumTiers, PremiumTypes, PresenceStatus, RadioGroupOption, RoleFlags, ScheduledEventEntityType, ScheduledEventPrivacyLevel, ScheduledEventStatus, SelectOption, SeparatorSpacingSize, SkuFlags, SortOrderTypes, StickerFormatTypes, StickerTypes, SystemChannelFlags, TargetTypes, TeamMembershipStates, TextStyles, VerificationLevels, VideoQualityModes, WebhookTypes } from '@discordeno/types';
2
2
  import type { Collection, ImageOptions } from '@discordeno/utils';
3
3
  import type { Bot } from '../bot.js';
4
4
  import type { InteractionResolvedDataChannel, InteractionResolvedDataMember } from '../commandOptionsParser.js';
@@ -13,36 +13,64 @@ import type { ToggleBitfield } from './toggles/ToggleBitfield.js';
13
13
  import type { UserToggles } from './toggles/user.js';
14
14
  import type { VoiceStateToggles } from './toggles/voice.js';
15
15
  export interface Activity {
16
- join?: string;
17
- flags?: number;
18
- applicationId?: bigint;
19
- spectate?: string;
16
+ /** The activity's name */
17
+ name: string;
18
+ /** Activity type */
19
+ type: ActivityTypes;
20
+ /** Stream url, is validated when type is 1 */
20
21
  url?: string;
21
- startedAt?: number;
22
- endedAt?: number;
22
+ /** Unix timestamp of when the activity was added to the user's session */
23
+ createdAt: number;
24
+ /** Unix timestamps for start and/or end of the game */
25
+ timestamps?: DiscordActivityTimestamps;
26
+ /** Application id for the game */
27
+ applicationId?: bigint;
28
+ /** Controls which field is displayed in the user's status text in the member list */
29
+ statusDisplayType?: DiscordStatusDisplayType;
30
+ /** What the player is currently doing */
23
31
  details?: string;
32
+ /** URL that is linked when clicking on the details text */
33
+ detailsUrl?: string;
34
+ /** The user's current party status */
24
35
  state?: string;
36
+ /** URL that is linked when clicking on the state text */
37
+ stateUrl?: string;
38
+ /** The emoji used for a custom status */
25
39
  emoji?: ActivityEmoji;
26
- partyId?: string;
27
- partyCurrentSize?: number;
28
- partyMaxSize?: number;
29
- largeImage?: string;
30
- largeText?: string;
31
- smallImage?: string;
32
- smallText?: string;
33
- inviteCoverImage?: string;
34
- match?: string;
40
+ /** Information for the current party of the player */
41
+ party?: DiscordActivityParty;
42
+ /** Images for the presence and their hover texts */
43
+ assets?: ActivityAssets;
44
+ /** Secrets for Rich Presence joining and spectating */
45
+ secrets?: DiscordActivitySecrets;
46
+ /** Whether or not the activity is an instanced game session */
35
47
  instance?: boolean;
48
+ /** Activity flags `OR`d together, describes what the payload includes */
49
+ flags?: number;
50
+ /** The custom buttons shown in the Rich Presence (max 2) */
36
51
  buttons?: ActivityButton[];
37
- name: string;
38
- type: ActivityTypes;
39
- createdAt: number;
40
52
  }
41
53
  export interface ActivityEmoji {
42
54
  id?: bigint;
43
55
  animated?: boolean;
44
56
  name: string;
45
57
  }
58
+ export interface ActivityAssets {
59
+ /** The id for a large asset of the activity, usually a snowflake */
60
+ largeImage?: string;
61
+ /** Text displayed when hovering over the large image of the activity */
62
+ largeText?: string;
63
+ /** URL that is opened when clicking on the large image */
64
+ largeUrl?: string;
65
+ /** The id for a small asset of the activity, usually a snowflake */
66
+ smallImage?: string;
67
+ /** Text displayed when hovering over the small image of the activity */
68
+ smallText?: string;
69
+ /** URL that is opened when clicking on the small image */
70
+ smallUrl?: string;
71
+ /** See Activity Asset Image. Displayed as a banner on a Game Invite. */
72
+ inviteCoverImage?: string;
73
+ }
46
74
  export interface ActivityButton {
47
75
  url: string;
48
76
  label: string;
@@ -71,6 +99,7 @@ export interface ActivityLocation {
71
99
  }
72
100
  export interface Application {
73
101
  flags?: ApplicationFlags;
102
+ flagsNew?: ToggleBitfield;
74
103
  icon?: bigint;
75
104
  rpcOrigins?: string[];
76
105
  termsOfServiceUrl?: string;
@@ -156,6 +185,24 @@ export interface ApplicationCommandOption {
156
185
  maxLength?: number;
157
186
  /** if autocomplete interactions are enabled for this `String`, `Integer`, or `Number` type option */
158
187
  autocomplete?: boolean;
188
+ /**
189
+ * The accepted file types for the file upload
190
+ *
191
+ * @remarks
192
+ * The supported values are `image`, `video`, `audio` or any dot prefixed extension (e.g. `.pdf`)
193
+ *
194
+ * Extensions are case-insensitive and are normalized to lowercase, so `.PDF` and `.pdf` are equivalent.
195
+ *
196
+ * Discord recommends using the provided file groups rather than listing extensions individually.
197
+ * If you do list extensions individually, include `.jpg` for image uploads and both `.mp4` and `.mov` for video uploads,
198
+ * as some mobile clients rely on those extensions.
199
+ *
200
+ * This feature only checks the file extension against the filename and does not inspect the file contents.
201
+ * You are still responsible for validating the actual contents of the file.
202
+ *
203
+ * Up to 10 file types.
204
+ */
205
+ fileTypes?: string[];
159
206
  }
160
207
  export interface ApplicationCommandOptionChoice {
161
208
  nameLocalizations?: Localization;
@@ -187,17 +234,31 @@ export interface Attachment {
187
234
  size: number;
188
235
  /** Source url of file */
189
236
  url: string;
190
- /** A proxied url of file */
237
+ /**
238
+ * A proxied url of file
239
+ *
240
+ * @remarks
241
+ * The proxy url supports images and videos (which have a defined `width` and `height`) as well as audio files, which are passed through unmodified. For all other attachment types, the proxy returns a `415: Unsupported Media Type` error.
242
+ */
191
243
  proxyUrl: string;
192
244
  /** Attachment id */
193
245
  id: bigint;
194
246
  /** description for the file (max 1024 characters) */
195
247
  description?: string;
196
- /** Height of file (if image) */
248
+ /** Height of file (if image or video) */
197
249
  height?: number;
198
- /** Width of file (if image) */
250
+ /** Width of file (if image or video) */
199
251
  width?: number;
200
- /** whether this attachment is ephemeral. Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists. */
252
+ /** Thumbhash placeholder (if image or video) */
253
+ placeholder?: string;
254
+ /** Version of the placeholder (if image or video) */
255
+ placeholderVersion?: number;
256
+ /**
257
+ * Whether this attachment is ephemeral.
258
+ *
259
+ * @remarks
260
+ * Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.
261
+ */
201
262
  ephemeral?: boolean;
202
263
  /** The duration of the audio file for a voice message */
203
264
  duration_secs?: number;
@@ -205,6 +266,12 @@ export interface Attachment {
205
266
  waveform?: string;
206
267
  /** Attachment flags combined as a bitfield */
207
268
  flags?: AttachmentFlags;
269
+ /** for Clips, array of users who were in the stream */
270
+ clipParticipants?: User[];
271
+ /** for Clips, when the clip was created. ISO8601 timestamp */
272
+ clipCreatedAt?: string;
273
+ /** for Clips, the application in the stream, if recognized */
274
+ application?: Application;
208
275
  }
209
276
  export interface AuditLogEntry {
210
277
  id: bigint;
@@ -228,6 +295,7 @@ export interface OptionalAuditEntryInfo {
228
295
  roleName?: string;
229
296
  type?: number;
230
297
  integrationType?: string;
298
+ status?: string;
231
299
  }
232
300
  export interface AutoModerationActionExecution {
233
301
  channelId?: bigint;
@@ -340,11 +408,11 @@ export interface Channel {
340
408
  topic?: string;
341
409
  /** The id of the last message sent in this channel (may not point to an existing or valid message) */
342
410
  lastMessageId?: bigint;
343
- /** The bitrate (in bits) of the voice or stage channel */
411
+ /** The bitrate (in bits per second) of the voice or stage channel */
344
412
  bitrate?: number;
345
413
  /** The user limit of the voice or stage channel */
346
414
  userLimit?: number;
347
- /** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `manage_messages` or `manage_channel`, are unaffected */
415
+ /** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `BYPASS_SLOWMODE`, are unaffected */
348
416
  rateLimitPerUser?: number;
349
417
  /** Id of the creator of the thread */
350
418
  ownerId?: bigint;
@@ -372,6 +440,8 @@ export interface Channel {
372
440
  defaultAutoArchiveDuration?: number;
373
441
  /** computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on an interaction. This does not include implicit permissions, which may need to be checked separately. */
374
442
  permissions?: Permissions;
443
+ /**computed permissions for the bot user in the channel, including overwrites, only included when part of the resolved data received on an interaction. This does not include implicit permissions, which may need to be checked separately */
444
+ appPermissions?: Permissions;
375
445
  /** The flags of the channel */
376
446
  flags?: number;
377
447
  /**
@@ -400,7 +470,7 @@ export interface Channel {
400
470
  /** 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 */
401
471
  defaultSortOrder?: SortOrderTypes | null;
402
472
  defaultForumLayout?: ForumLayout;
403
- /** Whether the channel is nsfw */
473
+ /** Whether the channel is age-restricted */
404
474
  nsfw: boolean;
405
475
  /** Thread-specific fields not needed by other channels */
406
476
  threadMetadata?: ChannelThreadMetadata;
@@ -415,7 +485,26 @@ export interface Channel {
415
485
  /** for group DM channels: whether the channel is managed by an application via the `gdm.join` OAuth2 scope */
416
486
  managed: boolean;
417
487
  /** Explicit permission overwrites for members and roles. */
418
- permissionOverwrites: Overwrite[];
488
+ permissionOverwrites: {
489
+ /** Role or user id */
490
+ id: bigint;
491
+ /** Either 0 (role) or 1 (member) */
492
+ type: OverwriteTypes;
493
+ /** Permission bit set */
494
+ allow: bigint;
495
+ /** Permission bit set */
496
+ deny: bigint;
497
+ }[];
498
+ }
499
+ export interface ChannelMention {
500
+ /** Id of the channel */
501
+ id: bigint;
502
+ /** Id of the guild containing the channel */
503
+ guildId: bigint;
504
+ /** The type of channel */
505
+ type: ChannelTypes;
506
+ /** The name of the channel */
507
+ name: string;
419
508
  }
420
509
  export interface ForumTag {
421
510
  /** The id of the tag */
@@ -468,8 +557,8 @@ export interface Component {
468
557
  style?: ButtonStyles | TextStyles;
469
558
  /** text that appears on the button (max 80 characters) */
470
559
  label?: string;
471
- /** the dev-define value of the option, max 100 characters for select or 4000 for input. */
472
- value?: string;
560
+ /** the dev-define value of the option, max 100 characters for select or 4000 for input; or boolean for checkbox response. */
561
+ value?: string | boolean;
473
562
  /** Emoji object that includes fields of name, id, and animated supporting unicode and custom emojis. */
474
563
  emoji?: Pick<Partial<Emoji>, 'id' | 'name' | 'animated'>;
475
564
  /** optional url for link-style buttons that can navigate a user to the web. Only type 5 Link buttons can have a url */
@@ -477,7 +566,8 @@ export interface Component {
477
566
  /** List of channel types to include in a channel select menu options list */
478
567
  channelTypes?: ChannelTypes[];
479
568
  /** The choices! Maximum of 25 items. */
480
- options?: SelectOption[];
569
+ /** The string select options or the radio or checkbox group options */
570
+ options?: SelectOption[] | RadioGroupOption[] | CheckboxGroupOption[];
481
571
  /** A custom placeholder text if nothing is selected. Maximum 150 characters. */
482
572
  placeholder?: string;
483
573
  /** The minimum number of items that must be selected. Default 1. Between 1-25. */
@@ -491,7 +581,7 @@ export interface Component {
491
581
  /** a list of child components */
492
582
  components?: Component[];
493
583
  /** List of default values for auto-populated select menu components; number of default values must be in the range defined by min_values and max_values */
494
- defaultValues?: DiscordComponentDefaultValue[];
584
+ defaultValues?: ComponentDefaultValue[];
495
585
  /** Identifier for a purchasable SKU, only available when using premium-style buttons */
496
586
  skuId?: bigint;
497
587
  /** Optional identifier for component */
@@ -524,6 +614,28 @@ export interface Component {
524
614
  component?: Component;
525
615
  /** The text of the selected options */
526
616
  values?: string[];
617
+ /** Whether the checkbox is selected by default (Checkbox component). */
618
+ default?: boolean;
619
+ /** Resolved entities from selected options */
620
+ resolved?: InteractionDataResolved;
621
+ /**
622
+ * The accepted file types for the file upload
623
+ *
624
+ * @remarks
625
+ * The supported values are `image`, `video`, `audio` or any dot prefixed extension (e.g. `.pdf`)
626
+ *
627
+ * Extensions are case-insensitive and are normalized to lowercase, so `.PDF` and `.pdf` are equivalent.
628
+ *
629
+ * Discord recommends using the provided file groups rather than listing extensions individually.
630
+ * If you do list extensions individually, include `.jpg` for image uploads and both `.mp4` and `.mov` for video uploads,
631
+ * as some mobile clients rely on those extensions.
632
+ *
633
+ * This feature only checks the file extension against the filename and does not inspect the file contents.
634
+ * You are still responsible for validating the actual contents of the file.
635
+ *
636
+ * Up to 10 file types.
637
+ */
638
+ fileTypes?: string[];
527
639
  }
528
640
  export interface UnfurledMediaItem {
529
641
  /** Supports arbitrary urls and attachment://<filename> references */
@@ -534,8 +646,23 @@ export interface UnfurledMediaItem {
534
646
  height?: number | null;
535
647
  /** The width of the media item. This field is ignored and provided by the API as part of the response */
536
648
  width?: number | null;
649
+ /** Thumbhash placeholder if image or video. This field is ignored and provided by the API as part of the response */
650
+ placeholder?: string;
651
+ /** Version of the placeholder (if image or video). This field is ignored and provided by the API as part of the response */
652
+ placeholderVersion?: number;
537
653
  /** The media type of the content. This field is ignored and provided by the API as part of the response */
538
654
  contentType?: string;
655
+ /**
656
+ * Unfurled media item flags combined as a bitfield
657
+ *
658
+ * @remarks
659
+ * This field is ignored and provided by the API as part of the response
660
+ *
661
+ * @see {@link DiscordUnfurledMediaItemFlags}
662
+ */
663
+ flags?: ToggleBitfield;
664
+ /** Results of Discord's content scanning, if the media item has been scanned */
665
+ contentScanMetadata?: DiscordContentScanMetadata;
539
666
  /** The id of the uploaded attachment. Only present if the media was uploaded as an attachment. This field is ignored and provided by the API as part of the response */
540
667
  attachmentId?: bigint;
541
668
  }
@@ -547,7 +674,7 @@ export interface MediaGalleryItem {
547
674
  /** Whether the media should be a spoiler (or blurred out). Defaults to `false` */
548
675
  spoiler?: boolean;
549
676
  }
550
- export interface DiscordComponentDefaultValue {
677
+ export interface ComponentDefaultValue {
551
678
  /** ID of a user, role, or channel */
552
679
  id: bigint;
553
680
  /** Type of value that id represents. */
@@ -563,34 +690,51 @@ export interface Embed {
563
690
  timestamp?: number;
564
691
  color?: number;
565
692
  footer?: EmbedFooter;
566
- thumbnail?: EmbedThumbnail;
693
+ thumbnail?: EmbedImage;
567
694
  provider?: EmbedProvider;
568
695
  author?: EmbedAuthor;
569
696
  fields?: EmbedField[];
697
+ components?: Component[];
698
+ /** @see {@link DiscordEmbedFlags} */
699
+ flags?: ToggleBitfield;
570
700
  }
571
701
  export interface EmbedImage {
572
702
  proxyUrl?: string;
573
703
  height?: number;
574
704
  width?: number;
575
705
  url: string;
706
+ contentType?: string;
707
+ placeholder?: string;
708
+ placeholderVersion?: number;
709
+ description?: string;
710
+ /**
711
+ * Embed media flags combined as a bitfield
712
+ *
713
+ * @see {@link DiscordEmbedMediaFlags}
714
+ */
715
+ flags?: ToggleBitfield;
576
716
  }
577
717
  export interface EmbedVideo {
578
718
  url?: string;
579
719
  proxyUrl?: string;
580
720
  height?: number;
581
721
  width?: number;
722
+ contentType?: string;
723
+ placeholder?: string;
724
+ placeholderVersion?: number;
725
+ description?: string;
726
+ /**
727
+ * Embed media flags combined as a bitfield
728
+ *
729
+ * @see {@link DiscordEmbedMediaFlags}
730
+ */
731
+ flags?: ToggleBitfield;
582
732
  }
583
733
  export interface EmbedFooter {
584
734
  iconUrl?: string;
585
735
  proxyIconUrl?: string;
586
736
  text: string;
587
737
  }
588
- export interface EmbedThumbnail {
589
- proxyUrl?: string;
590
- height?: number;
591
- width?: number;
592
- url: string;
593
- }
594
738
  export interface EmbedProvider {
595
739
  name?: string;
596
740
  url?: string;
@@ -714,7 +858,7 @@ export interface Guild {
714
858
  /** Approximate number of non-offline members in this guild, returned from the GET /guilds/id endpoint when with_counts is true */
715
859
  approximatePresenceCount?: number;
716
860
  /** Guild NSFW level */
717
- nsfwLevel: GuildNsfwLevel;
861
+ nsfwLevel: GuildAgeRestrictionLevel;
718
862
  /** Whether the guild has the boost progress bar enabled */
719
863
  premiumProgressBarEnabled: boolean;
720
864
  /** Guild id */
@@ -756,7 +900,7 @@ export interface Guild {
756
900
  /** All active threads in the guild that the current user has permission to view */
757
901
  threads: Collection<bigint, Channel>;
758
902
  /** Presences of the members in the guild, will only include non-offline members if the size is greater than large threshold */
759
- presences?: PresenceUpdate[];
903
+ presences?: Partial<PresenceUpdate>[];
760
904
  /** Banner hash */
761
905
  banner?: bigint;
762
906
  /** The preferred locale of a Community guild; used in server discovery and notices from Discord; defaults to "en-US" */
@@ -799,7 +943,7 @@ export interface Integration {
799
943
  id: bigint;
800
944
  name: string;
801
945
  guildId: bigint;
802
- type: 'twitch' | 'youtube' | 'discord';
946
+ type: 'twitch' | 'youtube' | 'discord' | 'guild_subscription';
803
947
  account: IntegrationAccount;
804
948
  scopes: OAuth2Scope[];
805
949
  }
@@ -811,7 +955,7 @@ export interface IntegrationApplication {
811
955
  description: string;
812
956
  }
813
957
  export interface IntegrationAccount {
814
- id: bigint;
958
+ id: string;
815
959
  name: string;
816
960
  }
817
961
  export interface Interaction {
@@ -867,7 +1011,7 @@ export interface Interaction {
867
1011
  * Sends a response to an interaction.
868
1012
  *
869
1013
  * @remarks
870
- * This will send a ChannelMessageWithSource, ApplicationCommandAutocompleteResult or Modal response based on the type of the interaction you are responding to.
1014
+ * If you did not provide a response type, this will send a ChannelMessageWithSource, ApplicationCommandAutocompleteResult or Modal response based on the type of the interaction you are responding to.
871
1015
  *
872
1016
  * If the interaction has been already acknowledged, indicated by {@link Interaction.acknowledged}, it will send a followup message instead.
873
1017
  */
@@ -876,6 +1020,8 @@ export interface Interaction {
876
1020
  withResponse?: boolean;
877
1021
  type?: InteractionResponseTypes;
878
1022
  }) => Promise<Message | InteractionCallbackResponse | void>;
1023
+ /** Sends a followup message to an interaction. */
1024
+ sendFollowupMessage: (response: string | InteractionCallbackData) => Promise<Message>;
879
1025
  /**
880
1026
  * Edit the original response of an interaction or a followup if the message id is provided.
881
1027
  *
@@ -948,7 +1094,7 @@ export interface InteractionData {
948
1094
  targetId?: bigint;
949
1095
  }
950
1096
  export interface InteractionDataResolved {
951
- messages?: Collection<bigint, Message>;
1097
+ messages?: Collection<bigint, Partial<Message>>;
952
1098
  users?: Collection<bigint, User>;
953
1099
  members?: Collection<bigint, InteractionResolvedDataMember<TransformersDesiredProperties, DesiredPropertiesBehavior>>;
954
1100
  roles?: Collection<bigint, Role>;
@@ -980,14 +1126,14 @@ export interface Invite {
980
1126
  /** The maximum number of times the invite can be used */
981
1127
  maxUses: number;
982
1128
  /** The type of target for this voice channel invite */
983
- targetType: number;
1129
+ targetType?: TargetTypes;
984
1130
  /** The target user for this invite */
985
- targetUser: User;
1131
+ targetUser?: User;
986
1132
  /** The embedded application to open for this voice channel embedded application invite */
987
- targetApplication?: Application;
1133
+ targetApplication?: Partial<Application>;
988
1134
  /** Whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role) */
989
1135
  temporary: boolean;
990
- /** How many times the invite has been used (always will be 0) */
1136
+ /** How many times the invite has been used */
991
1137
  uses: number;
992
1138
  /** Approximate count of online members (only present when target_user is set) */
993
1139
  approximateMemberCount: number;
@@ -999,6 +1145,10 @@ export interface Invite {
999
1145
  approximatePresenceCount?: number;
1000
1146
  /** Guild invite flags for guild invites. */
1001
1147
  flags?: ToggleBitfield;
1148
+ /**
1149
+ * The roles assigned to the user upon accepting the invite
1150
+ */
1151
+ roles?: Pick<Role, 'id' | 'name' | 'position' | 'color' | 'colors' | 'icon' | 'unicodeEmoji'>[];
1002
1152
  }
1003
1153
  export interface Member {
1004
1154
  /** The user id of the member. */
@@ -1048,6 +1198,8 @@ export interface Member {
1048
1198
  completedOnboarding?: boolean;
1049
1199
  /** Guild member flags */
1050
1200
  flags: number;
1201
+ /** Data for the member's collectibles */
1202
+ collectibles?: Collectibles;
1051
1203
  }
1052
1204
  export interface Message {
1053
1205
  /** Sent with Rich Presence-related chat embeds */
@@ -1086,15 +1238,29 @@ export interface Message {
1086
1238
  member?: Member;
1087
1239
  /** Users specifically mentioned in the message Note: The user objects in the mentions array will only have the partial member field present in MESSAGE_CREATE and MESSAGE_UPDATE events from text-based guild channels. */
1088
1240
  mentions?: User[];
1089
- /** Channels specifically mentioned in this message Note: Not all channel mentions in a message will appear in mention_channels. Only textual channels that are visible to everyone in a discoverable guild will ever be included. Only crossposted messages (via Channel Following) currently include mention_channels at all. If no mentions in the message meet these requirements, this field will not be sent. */
1090
- mentionedChannelIds?: bigint[];
1241
+ /** The type of channel the message was sent in. Only present when received from the gateway MESSAGE_CREATE event */
1242
+ channelType?: ChannelTypes;
1243
+ /**
1244
+ * Channels specifically mentioned in this message
1245
+ *
1246
+ * @remarks
1247
+ * Note: Not all channel mentions in a message will appear in `mentionChannels`.
1248
+ *
1249
+ * Only textual channels that are visible to everyone in a discoverable guild will ever be included.
1250
+ * Only crossposted messages (via Channel Following) currently include `mentionChannels` at all.
1251
+ *
1252
+ * If no mentions in the message meet these requirements, this field will not be sent.
1253
+ */
1254
+ mentionChannels?: ChannelMention[];
1091
1255
  /** Roles specifically mentioned in this message */
1092
1256
  mentionedRoleIds?: bigint[];
1093
1257
  /** Data showing the source of a crossposted channel follow add, pin or reply message */
1094
1258
  messageReference?: MessageReference;
1095
1259
  /**
1096
1260
  * The message associated with the `message_reference`
1097
- * Note: This field is only returned for messages with a `type` of `19` (REPLY). If the message is a reply but the `referenced_message` field is not present, the backend did not attempt to fetch the message that was being replied to, so its state is unknown. If the field exists but is null, the referenced message was deleted.
1261
+ *
1262
+ * @remarks
1263
+ * This field is only returned for messages with a `type` of `19` (REPLY), `21` (THREAD_STARTER_MESSAGE), or `23` (CONTEXT_MENU_COMMAND). If the message is one of these but the `referenced_message` field is not present, the backend did not attempt to fetch the message that was being replied to, so its state is unknown. If the field exists but is null, the referenced message was deleted or, for a `THREAD_STARTER_MESSAGE`, is unavailable to the requester.
1098
1264
  */
1099
1265
  referencedMessage?: Message;
1100
1266
  /** The message associated with the `message_reference`. This is a minimal subset of fields in a message (e.g. `author` is excluded.) */
@@ -1114,6 +1280,8 @@ export interface Message {
1114
1280
  poll?: Poll;
1115
1281
  /** The call associated with the message */
1116
1282
  call?: MessageCall;
1283
+ /** The custom client-side theme shared via the message */
1284
+ sharedClientTheme?: SharedClientTheme;
1117
1285
  /** Holds all the boolean values on this message. */
1118
1286
  bitfield?: ToggleBitfield;
1119
1287
  /** Whether this message has been published to subscribed channels (via Channel Following) */
@@ -1148,6 +1316,8 @@ export interface Message {
1148
1316
  tts: boolean;
1149
1317
  /** Whether this message came from the urgent message system */
1150
1318
  urgent: boolean;
1319
+ /** data for users, members, channels, and roles referenced in this message */
1320
+ resolved?: InteractionDataResolved;
1151
1321
  }
1152
1322
  export interface MessageActivity {
1153
1323
  /** Type of message activity */
@@ -1231,6 +1401,16 @@ export interface MessagePin {
1231
1401
  /** the pinned message */
1232
1402
  message: Message;
1233
1403
  }
1404
+ export interface SharedClientTheme {
1405
+ /** The hexadecimal-encoded colors of the theme (max of 5) */
1406
+ colors: string[];
1407
+ /** The direction of the theme's colors (max of 360) */
1408
+ gradientAngle: number;
1409
+ /** The intensity of the theme's colors (max of 100) */
1410
+ baseMix: number;
1411
+ /** The mode of the theme */
1412
+ baseTheme?: DiscordBaseTheme;
1413
+ }
1234
1414
  export interface Reaction {
1235
1415
  /** Whether the current user reacted using this emoji */
1236
1416
  me: boolean;
@@ -1363,6 +1543,7 @@ export interface PresenceUpdate {
1363
1543
  desktop?: string;
1364
1544
  mobile?: string;
1365
1545
  web?: string;
1546
+ vr?: string;
1366
1547
  user: User;
1367
1548
  guildId: bigint;
1368
1549
  status: PresenceStatus;
@@ -1543,7 +1724,7 @@ export interface InviteStageInstance {
1543
1724
  topic: string;
1544
1725
  }
1545
1726
  export interface Sticker {
1546
- /** [Id of the sticker](https://discord.com/developers/docs/reference#image-formatting) */
1727
+ /** [Id of the sticker](https://docs.discord.com/developers/reference#image-formatting) */
1547
1728
  id: bigint;
1548
1729
  /** Id of the pack the sticker is from */
1549
1730
  packId?: bigint;
@@ -1553,9 +1734,9 @@ export interface Sticker {
1553
1734
  description: string;
1554
1735
  /** a unicode emoji representing the sticker's expression */
1555
1736
  tags: string;
1556
- /** [type of sticker](https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-types) */
1737
+ /** [type of sticker](https://docs.discord.com/developers/resources/sticker#sticker-object-sticker-types) */
1557
1738
  type: StickerTypes;
1558
- /** [Type of sticker format](https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-format-types) */
1739
+ /** [Type of sticker format](https://docs.discord.com/developers/resources/sticker#sticker-object-sticker-format-types) */
1559
1740
  formatType: StickerFormatTypes;
1560
1741
  /** Whether or not the sticker is available */
1561
1742
  available?: boolean;
@@ -1621,7 +1802,7 @@ export interface User {
1621
1802
  toggles?: UserToggles;
1622
1803
  /** The user's username, not unique across the platform */
1623
1804
  username: string;
1624
- /** The user's display name, if it is set. For bots, this is the application name */
1805
+ /** The user's display name, if it is set */
1625
1806
  globalName?: string;
1626
1807
  /** The user's display name based on `globalName` and `username` */
1627
1808
  displayName: string;
@@ -1793,7 +1974,7 @@ export interface Subscription {
1793
1974
  /** ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope. */
1794
1975
  country?: string;
1795
1976
  }
1796
- /** https://discord.com/developers/docs/resources/soundboard#soundboard-sound-object-soundboard-sound-structure */
1977
+ /** https://docs.discord.com/developers/resources/soundboard#soundboard-sound-object-soundboard-sound-structure */
1797
1978
  export interface SoundboardSound {
1798
1979
  /** The name of this sound */
1799
1980
  name: string;
@@ -1812,7 +1993,7 @@ export interface SoundboardSound {
1812
1993
  /** The user who created this sound */
1813
1994
  user?: User;
1814
1995
  }
1815
- /** https://discord.com/developers/docs/resources/lobby#lobby-object-lobby-structure */
1996
+ /** https://docs.discord.com/developers/resources/lobby#lobby-object-lobby-structure */
1816
1997
  export interface Lobby {
1817
1998
  /** The id of this channel */
1818
1999
  id: bigint;
@@ -1825,7 +2006,7 @@ export interface Lobby {
1825
2006
  /** the guild channel linked to the lobby */
1826
2007
  linkedChannel?: Channel;
1827
2008
  }
1828
- /** https://discord.com/developers/docs/resources/lobby#lobby-member-object-lobby-member-structure */
2009
+ /** https://docs.discord.com/developers/resources/lobby#lobby-member-object-lobby-member-structure */
1829
2010
  export interface LobbyMember {
1830
2011
  /** The id of the user */
1831
2012
  id: bigint;
@@ -1833,5 +2014,69 @@ export interface LobbyMember {
1833
2014
  metadata?: Record<string, string>;
1834
2015
  /** lobby member flags combined as as bitfield */
1835
2016
  flags?: ToggleBitfield;
2017
+ /**
2018
+ * An additional 1-80 character display name for the member, such as an in-game character name.
2019
+ *
2020
+ * Can only be set via Add a Member to a Lobby or Bulk Update Lobby Members.
2021
+ */
2022
+ additionalName?: string;
2023
+ }
2024
+ /** https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-structure */
2025
+ export interface ChannelInfo {
2026
+ /** The guild id */
2027
+ guildId: bigint;
2028
+ /** Ephemeral data for channels in the guild */
2029
+ channels: ChannelInfoData[];
2030
+ }
2031
+ /** https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-channel-structure */
2032
+ export interface ChannelInfoData {
2033
+ /** The channel id */
2034
+ id: bigint;
2035
+ /** The voice channel status */
2036
+ status?: string;
2037
+ /** Unix timestamp (in seconds) of when the voice session started */
2038
+ voiceStartTime?: number;
2039
+ }
2040
+ /** https://docs.discord.com/developers/resources/lobby#lobby-message-object */
2041
+ export interface LobbyMessage {
2042
+ /** id of the message */
2043
+ id: bigint;
2044
+ /** Message type */
2045
+ type: MessageTypes;
2046
+ /** Message content */
2047
+ content: string;
2048
+ /** id of the lobby this message was sent to */
2049
+ lobbyId: bigint;
2050
+ /** Included for compatibility with the messages interface; equal to lobby_id */
2051
+ channelId: bigint;
2052
+ /** The user who sent the message */
2053
+ author: User;
2054
+ /** Additional informations about the lobby member */
2055
+ lobbyMember?: LobbyMessageLobbyMember;
2056
+ /** Dispatch-only metadata sent with the message */
2057
+ metadata?: Record<string, string>;
2058
+ /** Moderation metadata set via Update Lobby Message Moderation Metadata */
2059
+ moderationMetadata?: Record<string, string>;
2060
+ /**
2061
+ * Message flags bitfield
2062
+ *
2063
+ * @see {@link MessageFlags}
2064
+ */
2065
+ flags: ToggleBitfield;
2066
+ /** The application that sent the message */
2067
+ applicationId: bigint;
2068
+ }
2069
+ export interface LobbyMessageLobbyMember {
2070
+ /**
2071
+ * The author's lobby member additional display name, captured when the message was sent.
2072
+ *
2073
+ * Omitted if the author had no `additional_name` set.
2074
+ */
2075
+ additionalName?: string;
2076
+ }
2077
+ /** https://docs.discord.com/developers/resources/lobby#lobby-invite-object */
2078
+ export interface LobbyInvite {
2079
+ /** The invite code for the lobby's linked channel */
2080
+ code: string;
1836
2081
  }
1837
2082
  //# sourceMappingURL=types.d.ts.map