dfx 0.99.1 → 0.100.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types.d.ts CHANGED
@@ -90,6 +90,34 @@ export declare const ActivityFlag: {
90
90
  readonly PARTY_PRIVACY_VOICE_CHANNEL: number;
91
91
  readonly EMBEDDED: number;
92
92
  };
93
+ export interface ActivityInstance {
94
+ /** Application ID */
95
+ readonly application_id: Snowflake;
96
+ /** Activity Instance ID */
97
+ readonly instance_id: string;
98
+ /** Unique identifier for the launch */
99
+ readonly launch_id: Snowflake;
100
+ /** The Location the instance is runnning in */
101
+ readonly location: ActivityLocation;
102
+ /** The IDs of the Users currently connected to the instance */
103
+ readonly users: Array<Snowflake>;
104
+ }
105
+ export interface ActivityLocation {
106
+ /** The unique identifier for the location */
107
+ readonly id: string;
108
+ /** Enum describing kind of location */
109
+ readonly kind: ActivityLocationKind;
110
+ /** The id of the Channel */
111
+ readonly channel_id: Snowflake;
112
+ /** The id of the Guild */
113
+ readonly guild_id?: Snowflake | null;
114
+ }
115
+ export declare enum ActivityLocationKind {
116
+ /** The Location is a Guild Channel */
117
+ GC = "'gc'",
118
+ /** The Location is a Private Channel, such as a DM or GDM */
119
+ PC = "'pc'"
120
+ }
93
121
  export interface ActivityParty {
94
122
  /** ID of the party */
95
123
  readonly id?: string;
@@ -148,6 +176,12 @@ export declare enum AllowedMentionType {
148
176
  /** Controls @everyone and @here mentions */
149
177
  EVERYONE_MENTIONS = "everyone"
150
178
  }
179
+ export declare enum AnimationType {
180
+ /** A fun animation, sent by a Nitro subscriber */
181
+ PREMIUM = 0,
182
+ /** The standard animation */
183
+ BASIC = 1
184
+ }
151
185
  export interface Application {
152
186
  /** ID of the app */
153
187
  readonly id: Snowflake;
@@ -191,6 +225,8 @@ export interface Application {
191
225
  readonly flags?: number;
192
226
  /** Approximate count of guilds the app has been added to */
193
227
  readonly approximate_guild_count?: number;
228
+ /** Approximate count of users that have installed the app */
229
+ readonly approximate_user_install_count?: number;
194
230
  /** Array of redirect URIs for the app */
195
231
  readonly redirect_uris?: Array<string>;
196
232
  /** Interactions endpoint URL for the app */
@@ -239,21 +275,23 @@ export interface ApplicationCommand {
239
275
  readonly contexts?: Array<InteractionContextType> | null;
240
276
  /** Autoincrementing version identifier updated during substantial record changes */
241
277
  readonly version: Snowflake;
278
+ /** Determines whether the interaction is handled by the app's interactions handler or by Discord */
279
+ readonly handler?: EntryPointCommandHandlerType;
242
280
  }
243
281
  export interface ApplicationCommandDatum {
244
- /** the ID of the invoked command */
282
+ /** ID of the invoked command */
245
283
  readonly id: Snowflake;
246
- /** the name of the invoked command */
284
+ /** name of the invoked command */
247
285
  readonly name: string;
248
- /** the type of the invoked command */
286
+ /** type of the invoked command */
249
287
  readonly type: number;
250
- /** converted users + roles + channels + attachments */
288
+ /** Converted users + roles + channels + attachments */
251
289
  readonly resolved?: ResolvedDatum;
252
- /** the params + values from the user */
290
+ /** Params + values from the user */
253
291
  readonly options?: Array<ApplicationCommandInteractionDataOption>;
254
- /** the id of the guild the command is registered to */
292
+ /** ID of the guild the command is registered to */
255
293
  readonly guild_id?: Snowflake;
256
- /** id of the user or message targeted by a user or message command */
294
+ /** ID of the user or message targeted by a user or message command */
257
295
  readonly target_id?: Snowflake;
258
296
  }
259
297
  export interface ApplicationCommandInteractionDataOption {
@@ -339,7 +377,9 @@ export declare enum ApplicationCommandType {
339
377
  /** A UI-based command that shows up when you right click or tap on a user */
340
378
  USER = 2,
341
379
  /** A UI-based command that shows up when you right click or tap on a message */
342
- MESSAGE = 3
380
+ MESSAGE = 3,
381
+ /** A UI-based command that represents the primary way to invoke an app's Activity */
382
+ PRIMARY_ENTRY_POINT = 4
343
383
  }
344
384
  export declare const ApplicationFlag: {
345
385
  /** Indicates if an app uses the Auto Moderation API */
@@ -1473,7 +1513,9 @@ export declare enum EmbedType {
1473
1513
  /** article embed */
1474
1514
  ARTICLE = "article",
1475
1515
  /** link embed */
1476
- LINK = "link"
1516
+ LINK = "link",
1517
+ /** poll result embed */
1518
+ POLL_RESULT = "poll_result"
1477
1519
  }
1478
1520
  export interface EmbedVideo {
1479
1521
  /** source url of video */
@@ -1554,7 +1596,7 @@ export interface Endpoints<O> {
1554
1596
  createGuildSticker: (guildId: string, params?: Partial<CreateGuildStickerParams>, options?: O) => RestResponse<Sticker>;
1555
1597
  /** Creates a template for the guild. Requires the MANAGE_GUILD permission. Returns the created guild template object on success. */
1556
1598
  createGuildTemplate: (guildId: string, params?: Partial<CreateGuildTemplateParams>, options?: O) => RestResponse<GuildTemplate>;
1557
- /** Create a response to an Interaction from the gateway. Body is an interaction response. Returns 204 No Content. */
1599
+ /** Create a response to an Interaction. Body is an interaction response. Returns 204 unless with_response is set to true which returns 200 with the body as interaction response. */
1558
1600
  createInteractionResponse: (interactionId: string, interactionToken: string, params?: Partial<InteractionResponse>, options?: O) => RestResponse<InteractionResponse>;
1559
1601
  createMessage: (channelId: string, params?: Partial<CreateMessageParams>, options?: O) => RestResponse<Message>;
1560
1602
  /** Create a reaction for the message. This endpoint requires the READ_MESSAGE_HISTORY permission to be present on the current user. Additionally, if nobody else has reacted to the message using this emoji, this endpoint requires the ADD_REACTIONS permission to be present on the current user. Returns a 204 empty response on success. Fires a Message Reaction Add Gateway event.
@@ -1650,6 +1692,8 @@ export interface Endpoints<O> {
1650
1692
  followAnnouncementChannel: (channelId: string, params?: Partial<FollowAnnouncementChannelParams>, options?: O) => RestResponse<FollowedChannel>;
1651
1693
  /** Get a list of users that voted for this specific answer. */
1652
1694
  getAnswerVoters: (channelId: string, messageId: string, answerId: string, params?: Partial<GetAnswerVoterParams>, options?: O) => RestResponse<GetAnswerVoterResponse>;
1695
+ /** Returns a serialized activity instance, if it exists. Useful for preventing unwanted activity sessions. */
1696
+ getApplicationActivityInstance: (applicationId: string, instanceId: string, options?: O) => RestResponse<any>;
1653
1697
  /** Fetches permissions for a specific command for your application in a guild. Returns a guild application command permissions object. */
1654
1698
  getApplicationCommandPermissions: (applicationId: string, guildId: string, commandId: string, options?: O) => RestResponse<GuildApplicationCommandPermission>;
1655
1699
  /** Returns an emoji object for the given application and emoji IDs. Includes the user field. */
@@ -1723,6 +1767,8 @@ export interface Endpoints<O> {
1723
1767
  getGuildPreview: (guildId: string, options?: O) => RestResponse<GuildPreview>;
1724
1768
  /** Returns an object with one pruned key indicating the number of members that would be removed in a prune operation. Requires the MANAGE_GUILD and KICK_MEMBERS permissions. */
1725
1769
  getGuildPruneCount: (guildId: string, params?: Partial<GetGuildPruneCountParams>, options?: O) => RestResponse<any>;
1770
+ /** Returns a role object for the specified role. */
1771
+ getGuildRole: (guildId: string, roleId: string, options?: O) => RestResponse<Role>;
1726
1772
  /** Returns a list of role objects for the guild. */
1727
1773
  getGuildRoles: (guildId: string, options?: O) => RestResponse<Array<Role>>;
1728
1774
  /** Get a guild scheduled event. Returns a guild scheduled event object on success. */
@@ -1762,6 +1808,8 @@ export interface Endpoints<O> {
1762
1808
  getStageInstance: (channelId: string, options?: O) => RestResponse<any>;
1763
1809
  /** Returns a sticker object for the given sticker ID. */
1764
1810
  getSticker: (stickerId: string, options?: O) => RestResponse<Sticker>;
1811
+ /** Returns a sticker pack object for the given sticker pack ID. */
1812
+ getStickerPack: (packId: string, options?: O) => RestResponse<StickerPack>;
1765
1813
  /** Returns a thread member object for the specified user if they are a member of the thread, returns a 404 response otherwise. */
1766
1814
  getThreadMember: (channelId: string, userId: string, params?: Partial<GetThreadMemberParams>, options?: O) => RestResponse<ThreadMember>;
1767
1815
  /** Returns a user object for a given user ID. */
@@ -1932,6 +1980,10 @@ export declare enum EntitlementType {
1932
1980
  APPLICATION_SUBSCRIPTION = 8
1933
1981
  }
1934
1982
  export type EntitlementUpdateEvent = Entitlement;
1983
+ export declare enum EntryPointCommandHandlerType {
1984
+ APP_HANDLER = 1,
1985
+ DISCORD_LAUNCH_ACTIVITY = 2
1986
+ }
1935
1987
  export declare enum EventType {
1936
1988
  /** when a member sends or edits a message in the guild */
1937
1989
  MESSAGE_SEND = 1,
@@ -2639,7 +2691,7 @@ export interface GuildScheduledEventRecurrenceRule {
2639
2691
  readonly end?: string | null;
2640
2692
  /** How often the event occurs */
2641
2693
  readonly frequency: GuildScheduledEventRecurrenceRuleFrequency;
2642
- /** The spacing between the events, defined by frequency. For example, frecency of WEEKLY and an interval of 2 would be "every-other week" */
2694
+ /** The spacing between the events, defined by frequency. For example, frequency of WEEKLY and an interval of 2 would be "every-other week" */
2643
2695
  readonly interval: number;
2644
2696
  /** Set of specific days within a week for the event to recur on */
2645
2697
  readonly by_weekday?: Array<GuildScheduledEventRecurrenceRuleWeekday> | null;
@@ -2920,54 +2972,88 @@ export interface Interaction {
2920
2972
  /** Context where the interaction was triggered from */
2921
2973
  readonly context?: InteractionContextType;
2922
2974
  }
2975
+ export interface InteractionCallback {
2976
+ /** */
2977
+ readonly id: Snowflake;
2978
+ /** Interaction type */
2979
+ readonly type: InteractionType;
2980
+ /** Instance ID of the Activity if one was launched or joined */
2981
+ readonly activity_instance_id?: string;
2982
+ /** ID of the message that was created by the interaction */
2983
+ readonly response_message_id?: Snowflake;
2984
+ /** Whether or not the message is in a loading state */
2985
+ readonly response_message_loading?: boolean;
2986
+ /** Whether or not the response message was ephemeral */
2987
+ readonly response_message_ephemeral?: boolean;
2988
+ }
2989
+ export interface InteractionCallbackActivityInstanceResource {
2990
+ /** Instance ID of the Activity if one was launched or joined. */
2991
+ readonly id: string;
2992
+ }
2923
2993
  export interface InteractionCallbackAutocomplete {
2924
2994
  /** autocomplete choices (max of 25 choices) */
2925
2995
  readonly choices: Array<ApplicationCommandOptionChoice>;
2926
2996
  }
2927
2997
  export type InteractionCallbackDatum = InteractionCallbackAutocomplete | InteractionCallbackMessage | InteractionCallbackModal;
2928
2998
  export interface InteractionCallbackMessage {
2929
- /** is the response TTS */
2999
+ /** Whether the response is TTS */
2930
3000
  readonly tts?: boolean;
2931
- /** message content */
3001
+ /** Message content */
2932
3002
  readonly content?: string;
2933
- /** supports up to 10 embeds */
3003
+ /** Supports up to 10 embeds */
2934
3004
  readonly embeds?: Array<Embed>;
2935
- /** allowed mentions object */
3005
+ /** Allowed mentions object */
2936
3006
  readonly allowed_mentions?: AllowedMention;
2937
- /** message flags combined as a bitfield (only SUPPRESS_EMBEDS, EPHEMERAL, and SUPPRESS_NOTIFICATIONS can be set) */
3007
+ /** Message flags combined as a bitfield (only SUPPRESS_EMBEDS, EPHEMERAL, and SUPPRESS_NOTIFICATIONS can be set) */
2938
3008
  readonly flags?: number;
2939
- /** message components */
3009
+ /** Message components */
2940
3010
  readonly components?: Array<Component>;
2941
- /** attachment objects with filename and description */
3011
+ /** Attachment objects with filename and description */
2942
3012
  readonly attachments?: Array<Attachment>;
2943
- /** A poll! */
3013
+ /** Details about the poll */
2944
3014
  readonly poll?: PollCreateRequest;
2945
3015
  }
2946
3016
  export interface InteractionCallbackModal {
2947
- /** a developer-defined identifier for the modal, max 100 characters */
3017
+ /** Developer-defined identifier for the modal, max 100 characters */
2948
3018
  readonly custom_id: string;
2949
- /** the title of the popup modal, max 45 characters */
3019
+ /** Title of the popup modal, max 45 characters */
2950
3020
  readonly title: string;
2951
- /** between 1 and 5 (inclusive) components that make up the modal */
3021
+ /** Between 1 and 5 (inclusive) components that make up the modal */
2952
3022
  readonly components: Array<Component>;
2953
3023
  }
3024
+ export interface InteractionCallbackResource {
3025
+ /** Interaction callback type */
3026
+ readonly type: InteractionCallbackType;
3027
+ /** Represents the Activity launched by this interaction. */
3028
+ readonly activity_instance?: InteractionCallbackActivityInstanceResource;
3029
+ /** Message created by the interaction. */
3030
+ readonly message?: Message;
3031
+ }
3032
+ export interface InteractionCallbackResponse {
3033
+ /** The interaction object associated with the */
3034
+ readonly interaction: InteractionCallback;
3035
+ /** The resource that was created by the interaction response. */
3036
+ readonly resource?: InteractionCallbackResource;
3037
+ }
2954
3038
  export declare enum InteractionCallbackType {
2955
3039
  /** ACK a Ping */
2956
3040
  PONG = 1,
2957
- /** respond to an interaction with a message */
3041
+ /** Respond to an interaction with a message */
2958
3042
  CHANNEL_MESSAGE_WITH_SOURCE = 4,
2959
3043
  /** ACK an interaction and edit a response later, the user sees a loading state */
2960
3044
  DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE = 5,
2961
- /** for components, ACK an interaction and edit the original message later; the user does not see a loading state */
3045
+ /** For components, ACK an interaction and edit the original message later; the user does not see a loading state */
2962
3046
  DEFERRED_UPDATE_MESSAGE = 6,
2963
- /** for components, edit the message the component was attached to */
3047
+ /** For components, edit the message the component was attached to */
2964
3048
  UPDATE_MESSAGE = 7,
2965
- /** respond to an autocomplete interaction with suggested choices */
3049
+ /** Respond to an autocomplete interaction with suggested choices */
2966
3050
  APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8,
2967
- /** respond to an interaction with a popup modal */
3051
+ /** Respond to an interaction with a popup modal */
2968
3052
  MODAL = 9,
2969
3053
  /** Deprecated; respond to an interaction with an upgrade button, only available for apps with monetization enabled */
2970
- PREMIUM_REQUIRED = 10
3054
+ PREMIUM_REQUIRED = 10,
3055
+ /** Launch the Activity associated with the app. Only available for apps with Activities enabled */
3056
+ LAUNCH_ACTIVITY = 12
2971
3057
  }
2972
3058
  export declare enum InteractionContextType {
2973
3059
  /** Interaction can be used within servers */
@@ -2980,9 +3066,9 @@ export declare enum InteractionContextType {
2980
3066
  export type InteractionCreateEvent = Interaction;
2981
3067
  export type InteractionDatum = ApplicationCommandDatum | MessageComponentDatum | ModalSubmitDatum;
2982
3068
  export interface InteractionResponse {
2983
- /** the type of response */
3069
+ /** Type of response */
2984
3070
  readonly type: InteractionCallbackType;
2985
- /** an optional response message */
3071
+ /** An optional response message */
2986
3072
  readonly data?: InteractionCallbackDatum;
2987
3073
  }
2988
3074
  export declare enum InteractionType {
@@ -3323,13 +3409,13 @@ export interface MessageCall {
3323
3409
  readonly ended_timestamp?: string | null;
3324
3410
  }
3325
3411
  export interface MessageComponentDatum {
3326
- /** the custom_id of the component */
3412
+ /** custom_id of the component */
3327
3413
  readonly custom_id: string;
3328
- /** the type of the component */
3414
+ /** type of the component */
3329
3415
  readonly component_type: ComponentType;
3330
- /** values the user selected in a select menu component */
3416
+ /** Values the user selected in a select menu component */
3331
3417
  readonly values?: Array<SelectOption>;
3332
- /** resolved entities from selected options */
3418
+ /** Resolved entities from selected options */
3333
3419
  readonly resolved?: ResolvedDatum;
3334
3420
  }
3335
3421
  export type MessageCreateEvent = Message & MessageCreateExtra;
@@ -3547,7 +3633,8 @@ export declare enum MessageType {
3547
3633
  GUILD_INCIDENT_ALERT_MODE_DISABLED = 37,
3548
3634
  GUILD_INCIDENT_REPORT_RAID = 38,
3549
3635
  GUILD_INCIDENT_REPORT_FALSE_ALARM = 39,
3550
- PURCHASE_NOTIFICATION = 44
3636
+ PURCHASE_NOTIFICATION = 44,
3637
+ POLL_RESULT = 46
3551
3638
  }
3552
3639
  export type MessageUpdateEvent = MessageCreateEvent;
3553
3640
  export declare enum MfaLevel {
@@ -3557,9 +3644,9 @@ export declare enum MfaLevel {
3557
3644
  ELEVATED = 1
3558
3645
  }
3559
3646
  export interface ModalSubmitDatum {
3560
- /** the custom_id of the modal */
3647
+ /** custom_id of the modal */
3561
3648
  readonly custom_id: string;
3562
- /** the values submitted by the user */
3649
+ /** Values submitted by the user */
3563
3650
  readonly components: Array<Component>;
3564
3651
  }
3565
3652
  export interface ModifyApplicationEmojiParams {
@@ -3805,7 +3892,7 @@ export interface ModifyGuildScheduledEventParams {
3805
3892
  /** the cover image of the scheduled event */
3806
3893
  readonly image?: string;
3807
3894
  /** the definition for how often this event should recur */
3808
- readonly recurrence_rule?: GuildScheduledEventRecurrenceRule;
3895
+ readonly recurrence_rule?: GuildScheduledEventRecurrenceRule | null;
3809
3896
  }
3810
3897
  export interface ModifyGuildStickerParams {
3811
3898
  /** name of the sticker (2-30 characters) */
@@ -4195,7 +4282,7 @@ export interface ReadyEvent {
4195
4282
  /** Contains id and flags */
4196
4283
  readonly application: Application;
4197
4284
  }
4198
- export type ReceiveEvent = HelloEvent | ReadyEvent | ResumedEvent | ReconnectEvent | InvalidSessionEvent | ApplicationCommandPermissionsUpdateEvent | AutoModerationRuleCreateEvent | AutoModerationRuleUpdateEvent | AutoModerationRuleDeleteEvent | AutoModerationActionExecutionEvent | ChannelCreateEvent | ChannelUpdateEvent | ChannelDeleteEvent | ChannelPinsUpdateEvent | ThreadCreateEvent | ThreadUpdateEvent | ThreadDeleteEvent | ThreadListSyncEvent | ThreadMemberUpdateEvent | ThreadMembersUpdateEvent | EntitlementCreateEvent | EntitlementUpdateEvent | EntitlementDeleteEvent | GuildCreateEvent | GuildUpdateEvent | GuildDeleteEvent | GuildAuditLogEntryCreateEvent | GuildBanAddEvent | GuildBanRemoveEvent | GuildEmojisUpdateEvent | GuildStickersUpdateEvent | GuildIntegrationsUpdateEvent | GuildMemberAddEvent | GuildMemberRemoveEvent | GuildMemberUpdateEvent | GuildMembersChunkEvent | GuildRoleCreateEvent | GuildRoleUpdateEvent | GuildRoleDeleteEvent | GuildScheduledEventCreateEvent | GuildScheduledEventUpdateEvent | GuildScheduledEventDeleteEvent | GuildScheduledEventUserAddEvent | GuildScheduledEventUserRemoveEvent | IntegrationCreateEvent | IntegrationUpdateEvent | IntegrationDeleteEvent | InteractionCreateEvent | InviteCreateEvent | InviteDeleteEvent | MessageCreateEvent | MessageUpdateEvent | MessageDeleteEvent | MessageDeleteBulkEvent | MessageReactionAddEvent | MessageReactionRemoveEvent | MessageReactionRemoveAllEvent | MessageReactionRemoveEmojiEvent | PresenceUpdateEvent | StageInstanceCreateEvent | StageInstanceUpdateEvent | StageInstanceDeleteEvent | TypingStartEvent | UserUpdateEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent | MessagePollVoteAddEvent | MessagePollVoteRemoveEvent;
4285
+ export type ReceiveEvent = HelloEvent | ReadyEvent | ResumedEvent | ReconnectEvent | InvalidSessionEvent | ApplicationCommandPermissionsUpdateEvent | AutoModerationRuleCreateEvent | AutoModerationRuleUpdateEvent | AutoModerationRuleDeleteEvent | AutoModerationActionExecutionEvent | ChannelCreateEvent | ChannelUpdateEvent | ChannelDeleteEvent | ChannelPinsUpdateEvent | ThreadCreateEvent | ThreadUpdateEvent | ThreadDeleteEvent | ThreadListSyncEvent | ThreadMemberUpdateEvent | ThreadMembersUpdateEvent | EntitlementCreateEvent | EntitlementUpdateEvent | EntitlementDeleteEvent | GuildCreateEvent | GuildUpdateEvent | GuildDeleteEvent | GuildAuditLogEntryCreateEvent | GuildBanAddEvent | GuildBanRemoveEvent | GuildEmojisUpdateEvent | GuildStickersUpdateEvent | GuildIntegrationsUpdateEvent | GuildMemberAddEvent | GuildMemberRemoveEvent | GuildMemberUpdateEvent | GuildMembersChunkEvent | GuildRoleCreateEvent | GuildRoleUpdateEvent | GuildRoleDeleteEvent | GuildScheduledEventCreateEvent | GuildScheduledEventUpdateEvent | GuildScheduledEventDeleteEvent | GuildScheduledEventUserAddEvent | GuildScheduledEventUserRemoveEvent | IntegrationCreateEvent | IntegrationUpdateEvent | IntegrationDeleteEvent | InteractionCreateEvent | InviteCreateEvent | InviteDeleteEvent | MessageCreateEvent | MessageUpdateEvent | MessageDeleteEvent | MessageDeleteBulkEvent | MessageReactionAddEvent | MessageReactionRemoveEvent | MessageReactionRemoveAllEvent | MessageReactionRemoveEmojiEvent | PresenceUpdateEvent | StageInstanceCreateEvent | StageInstanceUpdateEvent | StageInstanceDeleteEvent | TypingStartEvent | UserUpdateEvent | VoiceChannelEffectSendEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent | MessagePollVoteAddEvent | MessagePollVoteRemoveEvent;
4199
4286
  export interface ReceiveEvents {
4200
4287
  HELLO: HelloEvent;
4201
4288
  READY: ReadyEvent;
@@ -4261,6 +4348,7 @@ export interface ReceiveEvents {
4261
4348
  STAGE_INSTANCE_DELETE: StageInstanceDeleteEvent;
4262
4349
  TYPING_START: TypingStartEvent;
4263
4350
  USER_UPDATE: UserUpdateEvent;
4351
+ VOICE_CHANNEL_EFFECT_SEND: VoiceChannelEffectSendEvent;
4264
4352
  VOICE_STATE_UPDATE: VoiceStateUpdateEvent;
4265
4353
  VOICE_SERVER_UPDATE: VoiceServerUpdateEvent;
4266
4354
  WEBHOOKS_UPDATE: WebhooksUpdateEvent;
@@ -4283,17 +4371,17 @@ export interface RequestGuildMember {
4283
4371
  readonly nonce?: string;
4284
4372
  }
4285
4373
  export interface ResolvedDatum {
4286
- /** the ids and User objects */
4374
+ /** IDs and User objects */
4287
4375
  readonly users?: Record<Snowflake, User>;
4288
- /** the ids and partial Member objects */
4376
+ /** IDs and partial Member objects */
4289
4377
  readonly members?: Record<Snowflake, GuildMember>;
4290
- /** the ids and Role objects */
4378
+ /** IDs and Role objects */
4291
4379
  readonly roles?: Record<Snowflake, Role>;
4292
- /** the ids and partial Channel objects */
4380
+ /** IDs and partial Channel objects */
4293
4381
  readonly channels?: Record<Snowflake, Channel>;
4294
- /** the ids and partial Message objects */
4382
+ /** IDs and partial Message objects */
4295
4383
  readonly messages?: Record<Snowflake, Message>;
4296
- /** the ids and attachment objects */
4384
+ /** IDs and attachment objects */
4297
4385
  readonly attachments?: Record<Snowflake, Attachment>;
4298
4386
  }
4299
4387
  export interface Response {
@@ -4907,6 +4995,24 @@ export declare enum VisibilityType {
4907
4995
  /** visible to everyone */
4908
4996
  EVERYONE = 1
4909
4997
  }
4998
+ export interface VoiceChannelEffectSendEvent {
4999
+ /** ID of the channel the effect was sent in */
5000
+ readonly channel_id: Snowflake;
5001
+ /** ID of the guild the effect was sent in */
5002
+ readonly guild_id: Snowflake;
5003
+ /** ID of the user who sent the effect */
5004
+ readonly user_id: Snowflake;
5005
+ /** The emoji sent, for emoji reaction and soundboard effects */
5006
+ readonly emoji?: Emoji | null;
5007
+ /** The type of emoji animation, for emoji reaction and soundboard effects */
5008
+ readonly animation_type?: AnimationType | null;
5009
+ /** The ID of the emoji animation, for emoji reaction and soundboard effects */
5010
+ readonly animation_id?: number;
5011
+ /** The ID of the soundboard sound, for soundboard effects */
5012
+ readonly sound_id?: Snowflake;
5013
+ /** The volume of the soundboard sound, from 0 to 1, for soundboard effects */
5014
+ readonly sound_volume?: number;
5015
+ }
4910
5016
  export declare enum VoiceOpcode {
4911
5017
  /** Begin a voice websocket connection. */
4912
5018
  IDENTIFY = 0,