dfx 0.102.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cache/memory.js +2 -2
- package/Cache/memory.js.map +1 -1
- package/Cache/memoryTTL.js +4 -4
- package/Cache/memoryTTL.js.map +1 -1
- package/Cache/prelude.js +2 -2
- package/Cache/prelude.js.map +1 -1
- package/Cache.js +5 -5
- package/Cache.js.map +1 -1
- package/DiscordConfig.js +5 -5
- package/DiscordConfig.js.map +1 -1
- package/DiscordGateway/DiscordWS.js +9 -9
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Messaging.js +6 -6
- package/DiscordGateway/Messaging.js.map +1 -1
- package/DiscordGateway/Shard/StateStore.js +5 -5
- package/DiscordGateway/Shard/StateStore.js.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js +8 -8
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/identify.js +4 -4
- package/DiscordGateway/Shard/identify.js.map +1 -1
- package/DiscordGateway/Shard/sendEvents.js +1 -1
- package/DiscordGateway/Shard/sendEvents.js.map +1 -1
- package/DiscordGateway/Shard/utils.js +1 -1
- package/DiscordGateway/Shard/utils.js.map +1 -1
- package/DiscordGateway/Shard.js +13 -13
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/ShardStore.js +3 -3
- package/DiscordGateway/ShardStore.js.map +1 -1
- package/DiscordGateway/Sharder.js +9 -9
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway.js +3 -3
- package/DiscordGateway.js.map +1 -1
- package/DiscordREST/utils.js +3 -3
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.js +12 -12
- package/DiscordREST.js.map +1 -1
- package/Helpers/intents.d.ts +2 -2
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/intents.js +2 -2
- package/Helpers/intents.js.map +1 -1
- package/Helpers/interactions.js +4 -4
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/permissions.js +4 -4
- package/Helpers/permissions.js.map +1 -1
- package/Interactions/builder.js +4 -4
- package/Interactions/builder.js.map +1 -1
- package/Interactions/context.js +4 -4
- package/Interactions/context.js.map +1 -1
- package/Interactions/gateway.js +11 -11
- package/Interactions/gateway.js.map +1 -1
- package/Interactions/handlers.js +4 -4
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/utils.js +4 -4
- package/Interactions/utils.js.map +1 -1
- package/Interactions/webhook.js +6 -6
- package/Interactions/webhook.js.map +1 -1
- package/RateLimit/memory.js +2 -2
- package/RateLimit/memory.js.map +1 -1
- package/RateLimit.js +4 -4
- package/RateLimit.js.map +1 -1
- package/gateway.js +8 -8
- package/gateway.js.map +1 -1
- package/index.js +12 -12
- package/index.js.map +1 -1
- package/mjs/Cache.mjs +1 -1
- package/mjs/Cache.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard.mjs +1 -1
- package/mjs/DiscordGateway/Shard.mjs.map +1 -1
- package/mjs/DiscordGateway/Sharder.mjs +3 -3
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
- package/mjs/DiscordGateway.mjs +1 -1
- package/mjs/DiscordGateway.mjs.map +1 -1
- package/mjs/DiscordREST.mjs +1 -1
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/Interactions/builder.mjs +1 -1
- package/mjs/Interactions/builder.mjs.map +1 -1
- package/mjs/Interactions/gateway.mjs +1 -1
- package/mjs/Interactions/gateway.mjs.map +1 -1
- package/mjs/gateway.mjs +2 -2
- package/mjs/gateway.mjs.map +1 -1
- package/mjs/index.mjs +1 -1
- package/mjs/index.mjs.map +1 -1
- package/mjs/types.mjs +75 -1
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/mjs/webhooks.mjs +1 -1
- package/mjs/webhooks.mjs.map +1 -1
- package/package.json +4 -4
- package/src/types.ts +198 -1
- package/src/version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types.d.ts +128 -5
- package/types.d.ts.map +1 -1
- package/types.js +75 -1
- package/types.js.map +1 -1
- package/utils/Effect.js +4 -4
- package/utils/Effect.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/webhooks.js +2 -2
- package/webhooks.js.map +1 -1
package/types.d.ts
CHANGED
|
@@ -646,6 +646,12 @@ export declare enum AuditLogEvent {
|
|
|
646
646
|
THREAD_DELETE = 112,
|
|
647
647
|
/** Permissions were updated for a command */
|
|
648
648
|
APPLICATION_COMMAND_PERMISSION_UPDATE = 121,
|
|
649
|
+
/** Soundboard sound was created */
|
|
650
|
+
SOUNDBOARD_SOUND_CREATE = 130,
|
|
651
|
+
/** Soundboard sound was updated */
|
|
652
|
+
SOUNDBOARD_SOUND_UPDATE = 131,
|
|
653
|
+
/** Soundboard sound was deleted */
|
|
654
|
+
SOUNDBOARD_SOUND_DELETE = 132,
|
|
649
655
|
/** Auto Moderation rule was created */
|
|
650
656
|
AUTO_MODERATION_RULE_CREATE = 140,
|
|
651
657
|
/** Auto Moderation rule was updated */
|
|
@@ -1228,6 +1234,18 @@ export interface CreateGuildScheduledEventParams {
|
|
|
1228
1234
|
/** the definition for how often this event should recur */
|
|
1229
1235
|
readonly recurrence_rule?: GuildScheduledEventRecurrenceRule;
|
|
1230
1236
|
}
|
|
1237
|
+
export interface CreateGuildSoundboardSoundParams {
|
|
1238
|
+
/** name of the soundboard sound (2-32 characters) */
|
|
1239
|
+
readonly name: string;
|
|
1240
|
+
/** the mp3 or ogg sound data, base64 encoded, similar to image data */
|
|
1241
|
+
readonly sound: string;
|
|
1242
|
+
/** the volume of the soundboard sound, from 0 to 1, defaults to 1 */
|
|
1243
|
+
readonly volume?: number | null;
|
|
1244
|
+
/** the id of the custom emoji for the soundboard sound */
|
|
1245
|
+
readonly emoji_id?: Snowflake | null;
|
|
1246
|
+
/** the unicode character of a standard emoji for the soundboard sound */
|
|
1247
|
+
readonly emoji_name?: string | null;
|
|
1248
|
+
}
|
|
1231
1249
|
export interface CreateGuildStickerParams {
|
|
1232
1250
|
/** name of the sticker (2-30 characters) */
|
|
1233
1251
|
readonly name: string;
|
|
@@ -1592,6 +1610,8 @@ export interface Endpoints<O> {
|
|
|
1592
1610
|
createGuildRole: (guildId: string, params?: Partial<CreateGuildRoleParams>, options?: O) => RestResponse<Role>;
|
|
1593
1611
|
/** Create a guild scheduled event in the guild. Returns a guild scheduled event object on success. Fires a Guild Scheduled Event Create Gateway event. */
|
|
1594
1612
|
createGuildScheduledEvent: (guildId: string, params?: Partial<CreateGuildScheduledEventParams>, options?: O) => RestResponse<GuildScheduledEvent>;
|
|
1613
|
+
/** Create a new soundboard sound for the guild. Requires the CREATE_GUILD_EXPRESSIONS permission. Returns the new soundboard sound object on success. Fires a Guild Soundboard Sound Create Gateway event. */
|
|
1614
|
+
createGuildSoundboardSound: (guildId: string, params?: Partial<CreateGuildSoundboardSoundParams>, options?: O) => RestResponse<SoundboardSound>;
|
|
1595
1615
|
/** Create a new sticker for the guild. Send a multipart/form-data body. Requires the CREATE_GUILD_EXPRESSIONS permission. Returns the new sticker object on success. Fires a Guild Stickers Update Gateway event. */
|
|
1596
1616
|
createGuildSticker: (guildId: string, params?: Partial<CreateGuildStickerParams>, options?: O) => RestResponse<Sticker>;
|
|
1597
1617
|
/** Creates a template for the guild. Requires the MANAGE_GUILD permission. Returns the created guild template object on success. */
|
|
@@ -1639,6 +1659,8 @@ export interface Endpoints<O> {
|
|
|
1639
1659
|
deleteGuildRole: (guildId: string, roleId: string, options?: O) => RestResponse<any>;
|
|
1640
1660
|
/** Delete a guild scheduled event. Returns a 204 on success. Fires a Guild Scheduled Event Delete Gateway event. */
|
|
1641
1661
|
deleteGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, options?: O) => RestResponse<any>;
|
|
1662
|
+
/** Delete the given soundboard sound. For sounds created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other sounds, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns 204 No Content on success. Fires a Guild Soundboard Sound Delete Gateway event. */
|
|
1663
|
+
deleteGuildSoundboardSound: (guildId: string, soundId: string, options?: O) => RestResponse<any>;
|
|
1642
1664
|
/** Delete the given sticker. For stickers created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other stickers, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns 204 No Content on success. Fires a Guild Stickers Update Gateway event. */
|
|
1643
1665
|
deleteGuildSticker: (guildId: string, stickerId: string, options?: O) => RestResponse<any>;
|
|
1644
1666
|
/** Deletes the template. Requires the MANAGE_GUILD permission. Returns the deleted guild template object on success. */
|
|
@@ -1775,6 +1797,8 @@ export interface Endpoints<O> {
|
|
|
1775
1797
|
getGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, params?: Partial<GetGuildScheduledEventParams>, options?: O) => RestResponse<GuildScheduledEvent>;
|
|
1776
1798
|
/** Get a list of guild scheduled event users subscribed to a guild scheduled event. Returns a list of guild scheduled event user objects on success. Guild member data, if it exists, is included if the with_member query parameter is set. */
|
|
1777
1799
|
getGuildScheduledEventUsers: (guildId: string, guildScheduledEventId: string, params?: Partial<GetGuildScheduledEventUserParams>, options?: O) => RestResponse<Array<GuildScheduledEventUser>>;
|
|
1800
|
+
/** Returns a soundboard sound object for the given sound id. Includes the user field if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1801
|
+
getGuildSoundboardSound: (guildId: string, soundId: string, options?: O) => RestResponse<SoundboardSound>;
|
|
1778
1802
|
/** Returns a sticker object for the given guild and sticker IDs. Includes the user field if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1779
1803
|
getGuildSticker: (guildId: string, stickerId: string, options?: O) => RestResponse<Sticker>;
|
|
1780
1804
|
/** Returns a guild template object for the given code. */
|
|
@@ -1840,12 +1864,16 @@ export interface Endpoints<O> {
|
|
|
1840
1864
|
listApplicationEmojis: (applicationId: string, options?: O) => RestResponse<Array<Emoji>>;
|
|
1841
1865
|
/** Get a list of all rules currently configured for the guild. Returns a list of auto moderation rule objects for the given guild. */
|
|
1842
1866
|
listAutoModerationRulesForGuild: (guildId: string, options?: O) => RestResponse<Array<AutoModerationRule>>;
|
|
1867
|
+
/** Returns an array of soundboard sound objects that can be used by all users. */
|
|
1868
|
+
listDefaultSoundboardSounds: (options?: O) => RestResponse<Array<SoundboardSound>>;
|
|
1843
1869
|
/** Returns all entitlements for a given app, active and expired. */
|
|
1844
1870
|
listEntitlements: (applicationId: string, options?: O) => RestResponse<any>;
|
|
1845
1871
|
/** Returns a list of emoji objects for the given guild. Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1846
1872
|
listGuildEmojis: (guildId: string, options?: O) => RestResponse<Array<Emoji>>;
|
|
1847
1873
|
/** Returns a list of guild member objects that are members of the guild. */
|
|
1848
1874
|
listGuildMembers: (guildId: string, params?: Partial<ListGuildMemberParams>, options?: O) => RestResponse<Array<GuildMember>>;
|
|
1875
|
+
/** Returns a list of the guild's soundboard sounds. Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1876
|
+
listGuildSoundboardSounds: (guildId: string, options?: O) => RestResponse<any>;
|
|
1849
1877
|
/** Returns an array of sticker objects for the given guild. Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. */
|
|
1850
1878
|
listGuildStickers: (guildId: string, options?: O) => RestResponse<Array<Sticker>>;
|
|
1851
1879
|
/** 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. */
|
|
@@ -1896,6 +1924,8 @@ export interface Endpoints<O> {
|
|
|
1896
1924
|
modifyGuildRolePositions: (guildId: string, params?: Partial<ModifyGuildRolePositionParams>, options?: O) => RestResponse<Array<Role>>;
|
|
1897
1925
|
/** Modify a guild scheduled event. Returns the modified guild scheduled event object on success. Fires a Guild Scheduled Event Update Gateway event. */
|
|
1898
1926
|
modifyGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, params?: Partial<ModifyGuildScheduledEventParams>, options?: O) => RestResponse<GuildScheduledEvent>;
|
|
1927
|
+
/** Modify the given soundboard sound. For sounds created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other sounds, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated soundboard sound object on success. Fires a Guild Soundboard Sound Update Gateway event. */
|
|
1928
|
+
modifyGuildSoundboardSound: (guildId: string, soundId: string, params?: Partial<ModifyGuildSoundboardSoundParams>, options?: O) => RestResponse<SoundboardSound>;
|
|
1899
1929
|
/** Modify the given sticker. For stickers created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other stickers, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated sticker object on success. Fires a Guild Stickers Update Gateway event. */
|
|
1900
1930
|
modifyGuildSticker: (guildId: string, stickerId: string, params?: Partial<ModifyGuildStickerParams>, options?: O) => RestResponse<Sticker>;
|
|
1901
1931
|
/** Modifies the template's metadata. Requires the MANAGE_GUILD permission. Returns the guild template object on success. */
|
|
@@ -1924,6 +1954,8 @@ export interface Endpoints<O> {
|
|
|
1924
1954
|
removeThreadMember: (channelId: string, userId: string, options?: O) => RestResponse<any>;
|
|
1925
1955
|
/** Returns a list of guild member objects whose username or nickname starts with a provided string. */
|
|
1926
1956
|
searchGuildMembers: (guildId: string, params?: Partial<SearchGuildMemberParams>, options?: O) => RestResponse<Array<GuildMember>>;
|
|
1957
|
+
/** Send a soundboard sound to a voice channel the user is connected to. Fires a Voice Channel Effect Send Gateway event. */
|
|
1958
|
+
sendSoundboardSound: (channelId: string, params?: Partial<SendSoundboardSoundParams>, options?: O) => RestResponse<any>;
|
|
1927
1959
|
/** 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. */
|
|
1928
1960
|
startThreadFromMessage: (channelId: string, messageId: string, params?: Partial<StartThreadFromMessageParams>, options?: O) => RestResponse<Channel>;
|
|
1929
1961
|
/** 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. */
|
|
@@ -2082,7 +2114,7 @@ export declare const GatewayIntents: {
|
|
|
2082
2114
|
readonly GUILDS: number;
|
|
2083
2115
|
readonly GUILD_MEMBERS: number;
|
|
2084
2116
|
readonly GUILD_MODERATION: number;
|
|
2085
|
-
readonly
|
|
2117
|
+
readonly GUILD_EXPRESSIONS: number;
|
|
2086
2118
|
readonly GUILD_INTEGRATIONS: number;
|
|
2087
2119
|
readonly GUILD_WEBHOOKS: number;
|
|
2088
2120
|
readonly GUILD_INVITES: number;
|
|
@@ -2123,7 +2155,9 @@ export declare enum GatewayOpcode {
|
|
|
2123
2155
|
/** Sent immediately after connecting, contains the heartbeat_interval to use. */
|
|
2124
2156
|
HELLO = 10,
|
|
2125
2157
|
/** Sent in response to receiving a heartbeat to acknowledge that it has been received. */
|
|
2126
|
-
HEARTBEAT_ACK = 11
|
|
2158
|
+
HEARTBEAT_ACK = 11,
|
|
2159
|
+
/** Request information about soundboard sounds in a set of guilds. */
|
|
2160
|
+
REQUEST_SOUNDBOARD_SOUNDS = 31
|
|
2127
2161
|
}
|
|
2128
2162
|
export interface GatewayPayload<T = any | null> {
|
|
2129
2163
|
/** opcode for the payload */
|
|
@@ -2416,6 +2450,8 @@ export interface GuildCreateExtra {
|
|
|
2416
2450
|
readonly stage_instances: Array<StageInstance>;
|
|
2417
2451
|
/** Scheduled events in the guild */
|
|
2418
2452
|
readonly guild_scheduled_events: Array<GuildScheduledEvent>;
|
|
2453
|
+
/** Soundboard sounds in the guild */
|
|
2454
|
+
readonly soundboard_sounds: Array<SoundboardSound>;
|
|
2419
2455
|
}
|
|
2420
2456
|
export type GuildDeleteEvent = UnavailableGuild;
|
|
2421
2457
|
export interface GuildEmojisUpdateEvent {
|
|
@@ -2453,6 +2489,8 @@ export declare enum GuildFeature {
|
|
|
2453
2489
|
INVITE_SPLASH = "INVITE_SPLASH",
|
|
2454
2490
|
/** guild has enabled Membership Screening */
|
|
2455
2491
|
MEMBER_VERIFICATION_GATE_ENABLED = "MEMBER_VERIFICATION_GATE_ENABLED",
|
|
2492
|
+
/** guild has increased custom soundboard sound slots */
|
|
2493
|
+
MORE_SOUNDBOARD = "MORE_SOUNDBOARD",
|
|
2456
2494
|
/** guild has increased custom sticker slots */
|
|
2457
2495
|
MORE_STICKERS = "MORE_STICKERS",
|
|
2458
2496
|
/** guild has access to create announcement channels */
|
|
@@ -2469,6 +2507,8 @@ export declare enum GuildFeature {
|
|
|
2469
2507
|
ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
|
|
2470
2508
|
/** guild has enabled role subscriptions */
|
|
2471
2509
|
ROLE_SUBSCRIPTIONS_ENABLED = "ROLE_SUBSCRIPTIONS_ENABLED",
|
|
2510
|
+
/** guild has created soundboard sounds */
|
|
2511
|
+
SOUNDBOARD = "SOUNDBOARD",
|
|
2472
2512
|
/** guild has enabled ticketed events */
|
|
2473
2513
|
TICKETED_EVENTS_ENABLED = "TICKETED_EVENTS_ENABLED",
|
|
2474
2514
|
/** guild has access to set a vanity URL */
|
|
@@ -2786,6 +2826,15 @@ export interface GuildScheduledEventUserRemoveEvent {
|
|
|
2786
2826
|
/** ID of the guild */
|
|
2787
2827
|
readonly guild_id: Snowflake;
|
|
2788
2828
|
}
|
|
2829
|
+
export type GuildSoundboardSoundCreateEvent = SoundboardSound;
|
|
2830
|
+
export interface GuildSoundboardSoundDeleteEvent {
|
|
2831
|
+
/** ID of the sound that was deleted */
|
|
2832
|
+
readonly sound_id: Snowflake;
|
|
2833
|
+
/** ID of the guild the sound was in */
|
|
2834
|
+
readonly guild_id: Snowflake;
|
|
2835
|
+
}
|
|
2836
|
+
export type GuildSoundboardSoundsUpdateEvent = SoundboardSound;
|
|
2837
|
+
export type GuildSoundboardSoundUpdateEvent = SoundboardSound;
|
|
2789
2838
|
export interface GuildStickersUpdateEvent {
|
|
2790
2839
|
/** ID of the guild */
|
|
2791
2840
|
readonly guild_id: Snowflake;
|
|
@@ -3908,6 +3957,16 @@ export interface ModifyGuildScheduledEventParams {
|
|
|
3908
3957
|
/** the definition for how often this event should recur */
|
|
3909
3958
|
readonly recurrence_rule?: GuildScheduledEventRecurrenceRule | null;
|
|
3910
3959
|
}
|
|
3960
|
+
export interface ModifyGuildSoundboardSoundParams {
|
|
3961
|
+
/** name of the soundboard sound (2-32 characters) */
|
|
3962
|
+
readonly name: string;
|
|
3963
|
+
/** the volume of the soundboard sound, from 0 to 1 */
|
|
3964
|
+
readonly volume?: number | null;
|
|
3965
|
+
/** the id of the custom emoji for the soundboard sound */
|
|
3966
|
+
readonly emoji_id?: Snowflake | null;
|
|
3967
|
+
/** the unicode character of a standard emoji for the soundboard sound */
|
|
3968
|
+
readonly emoji_name?: string | null;
|
|
3969
|
+
}
|
|
3911
3970
|
export interface ModifyGuildStickerParams {
|
|
3912
3971
|
/** name of the sticker (2-30 characters) */
|
|
3913
3972
|
readonly name: string;
|
|
@@ -4296,7 +4355,7 @@ export interface ReadyEvent {
|
|
|
4296
4355
|
/** Contains id and flags */
|
|
4297
4356
|
readonly application: Application;
|
|
4298
4357
|
}
|
|
4299
|
-
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 | SubscriptionCreateEvent | SubscriptionUpdateEvent | SubscriptionDeleteEvent | TypingStartEvent | UserUpdateEvent | VoiceChannelEffectSendEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent | MessagePollVoteAddEvent | MessagePollVoteRemoveEvent;
|
|
4358
|
+
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 | GuildSoundboardSoundCreateEvent | GuildSoundboardSoundUpdateEvent | GuildSoundboardSoundDeleteEvent | GuildSoundboardSoundsUpdateEvent | SoundboardSoundEvent | IntegrationCreateEvent | IntegrationUpdateEvent | IntegrationDeleteEvent | InteractionCreateEvent | InviteCreateEvent | InviteDeleteEvent | MessageCreateEvent | MessageUpdateEvent | MessageDeleteEvent | MessageDeleteBulkEvent | MessageReactionAddEvent | MessageReactionRemoveEvent | MessageReactionRemoveAllEvent | MessageReactionRemoveEmojiEvent | PresenceUpdateEvent | StageInstanceCreateEvent | StageInstanceUpdateEvent | StageInstanceDeleteEvent | SubscriptionCreateEvent | SubscriptionUpdateEvent | SubscriptionDeleteEvent | TypingStartEvent | UserUpdateEvent | VoiceChannelEffectSendEvent | VoiceStateUpdateEvent | VoiceServerUpdateEvent | WebhooksUpdateEvent | MessagePollVoteAddEvent | MessagePollVoteRemoveEvent;
|
|
4300
4359
|
export interface ReceiveEvents {
|
|
4301
4360
|
HELLO: HelloEvent;
|
|
4302
4361
|
READY: ReadyEvent;
|
|
@@ -4342,6 +4401,11 @@ export interface ReceiveEvents {
|
|
|
4342
4401
|
GUILD_SCHEDULED_EVENT_DELETE: GuildScheduledEventDeleteEvent;
|
|
4343
4402
|
GUILD_SCHEDULED_EVENT_USER_ADD: GuildScheduledEventUserAddEvent;
|
|
4344
4403
|
GUILD_SCHEDULED_EVENT_USER_REMOVE: GuildScheduledEventUserRemoveEvent;
|
|
4404
|
+
GUILD_SOUNDBOARD_SOUND_CREATE: GuildSoundboardSoundCreateEvent;
|
|
4405
|
+
GUILD_SOUNDBOARD_SOUND_UPDATE: GuildSoundboardSoundUpdateEvent;
|
|
4406
|
+
GUILD_SOUNDBOARD_SOUND_DELETE: GuildSoundboardSoundDeleteEvent;
|
|
4407
|
+
GUILD_SOUNDBOARD_SOUNDS_UPDATE: GuildSoundboardSoundsUpdateEvent;
|
|
4408
|
+
SOUNDBOARD_SOUNDS: SoundboardSoundEvent;
|
|
4345
4409
|
INTEGRATION_CREATE: IntegrationCreateEvent;
|
|
4346
4410
|
INTEGRATION_UPDATE: IntegrationUpdateEvent;
|
|
4347
4411
|
INTEGRATION_DELETE: IntegrationDeleteEvent;
|
|
@@ -4387,6 +4451,10 @@ export interface RequestGuildMember {
|
|
|
4387
4451
|
/** nonce to identify the Guild Members Chunk response */
|
|
4388
4452
|
readonly nonce?: string;
|
|
4389
4453
|
}
|
|
4454
|
+
export interface RequestSoundboardSound {
|
|
4455
|
+
/** IDs of the guilds to get soundboard sounds for */
|
|
4456
|
+
readonly guild_ids: Array<Snowflake>;
|
|
4457
|
+
}
|
|
4390
4458
|
export interface ResolvedDatum {
|
|
4391
4459
|
/** IDs and User objects */
|
|
4392
4460
|
readonly users?: Record<Snowflake, User>;
|
|
@@ -4532,15 +4600,22 @@ export interface SelectOption {
|
|
|
4532
4600
|
/** Will show this option as selected by default */
|
|
4533
4601
|
readonly default?: boolean;
|
|
4534
4602
|
}
|
|
4535
|
-
export type SendEvent = Identify | Resume | Heartbeat | RequestGuildMember | UpdateVoiceState | UpdatePresence;
|
|
4603
|
+
export type SendEvent = Identify | Resume | Heartbeat | RequestGuildMember | RequestSoundboardSound | UpdateVoiceState | UpdatePresence;
|
|
4536
4604
|
export interface SendEvents {
|
|
4537
4605
|
IDENTIFY: Identify;
|
|
4538
4606
|
RESUME: Resume;
|
|
4539
4607
|
HEARTBEAT: Heartbeat;
|
|
4540
4608
|
REQUEST_GUILD_MEMBERS: RequestGuildMember;
|
|
4609
|
+
REQUEST_SOUNDBOARD_SOUNDS: RequestSoundboardSound;
|
|
4541
4610
|
UPDATE_VOICE_STATE: UpdateVoiceState;
|
|
4542
4611
|
UPDATE_PRESENCE: UpdatePresence;
|
|
4543
4612
|
}
|
|
4613
|
+
export interface SendSoundboardSoundParams {
|
|
4614
|
+
/** the id of the soundboard sound to play */
|
|
4615
|
+
readonly sound_id: Snowflake;
|
|
4616
|
+
/** the id of the guild the soundboard sound is from, required to play sounds from different servers */
|
|
4617
|
+
readonly source_guild_id?: Snowflake;
|
|
4618
|
+
}
|
|
4544
4619
|
export interface SessionStartLimit {
|
|
4545
4620
|
/** Total number of session starts the current user is allowed */
|
|
4546
4621
|
readonly total: number;
|
|
@@ -4590,6 +4665,30 @@ export declare enum SortOrderType {
|
|
|
4590
4665
|
/** Sort forum posts by creation time (from most recent to oldest) */
|
|
4591
4666
|
CREATION_DATE = 1
|
|
4592
4667
|
}
|
|
4668
|
+
export interface SoundboardSound {
|
|
4669
|
+
/** the name of this sound */
|
|
4670
|
+
readonly name: string;
|
|
4671
|
+
/** the id of this sound */
|
|
4672
|
+
readonly sound_id: Snowflake;
|
|
4673
|
+
/** the volume of this sound, from 0 to 1 */
|
|
4674
|
+
readonly volume: number;
|
|
4675
|
+
/** the id of this sound's custom emoji */
|
|
4676
|
+
readonly emoji_id?: Snowflake | null;
|
|
4677
|
+
/** the unicode character of this sound's standard emoji */
|
|
4678
|
+
readonly emoji_name?: string | null;
|
|
4679
|
+
/** the id of the guild this sound is in */
|
|
4680
|
+
readonly guild_id?: Snowflake;
|
|
4681
|
+
/** whether this sound can be used, may be false due to loss of Server Boosts */
|
|
4682
|
+
readonly available: boolean;
|
|
4683
|
+
/** the user who created this sound */
|
|
4684
|
+
readonly user?: User;
|
|
4685
|
+
}
|
|
4686
|
+
export interface SoundboardSoundEvent {
|
|
4687
|
+
/** The guild's soundboard sounds */
|
|
4688
|
+
readonly soundboard_sounds: Array<SoundboardSound>;
|
|
4689
|
+
/** ID of the guild */
|
|
4690
|
+
readonly guild_id: Snowflake;
|
|
4691
|
+
}
|
|
4593
4692
|
export interface StageInstance {
|
|
4594
4693
|
/** The id of this Stage instance */
|
|
4595
4694
|
readonly id: Snowflake;
|
|
@@ -5080,8 +5179,32 @@ export declare enum VoiceOpcode {
|
|
|
5080
5179
|
HELLO = 8,
|
|
5081
5180
|
/** Acknowledge a successful session resume. */
|
|
5082
5181
|
RESUMED = 9,
|
|
5182
|
+
/** One or more clients have connected to the voice channel */
|
|
5183
|
+
CLIENTS_CONNECT = 11,
|
|
5083
5184
|
/** A client has disconnected from the voice channel */
|
|
5084
|
-
CLIENT_DISCONNECT = 13
|
|
5185
|
+
CLIENT_DISCONNECT = 13,
|
|
5186
|
+
/** A downgrade from the DAVE protocol is upcoming */
|
|
5187
|
+
DAVE_PREPARE_TRANSITION = 21,
|
|
5188
|
+
/** Execute a previously announced protocol transition */
|
|
5189
|
+
DAVE_EXECUTE_TRANSITION = 22,
|
|
5190
|
+
/** Acknowledge readiness previously announced transition */
|
|
5191
|
+
DAVE_TRANSITION_READY = 23,
|
|
5192
|
+
/** A DAVE protocol version or group change is upcoming */
|
|
5193
|
+
DAVE_PREPARE_EPOCH = 24,
|
|
5194
|
+
/** Credential and public key for MLS external sender */
|
|
5195
|
+
DAVE_MLS_EXTERNAL_SENDER = 25,
|
|
5196
|
+
/** MLS Key Package for pending group member */
|
|
5197
|
+
DAVE_MLS_KEY_PACKAGE = 26,
|
|
5198
|
+
/** MLS Proposals to be appended or revoked */
|
|
5199
|
+
DAVE_MLS_PROPOSALS = 27,
|
|
5200
|
+
/** MLS Commit with optional MLS Welcome messages */
|
|
5201
|
+
DAVE_MLS_COMMIT_WELCOME = 28,
|
|
5202
|
+
/** MLS Commit to be processed for upcoming transition */
|
|
5203
|
+
DAVE_MLS_ANNOUNCE_COMMIT_TRANSITION = 29,
|
|
5204
|
+
/** MLS Welcome to group for upcoming transition */
|
|
5205
|
+
DAVE_MLS_WELCOME = 30,
|
|
5206
|
+
/** Flag invalid commit or welcome, request re-add */
|
|
5207
|
+
DAVE_MLS_INVALID_COMMIT_WELCOME = 31
|
|
5085
5208
|
}
|
|
5086
5209
|
export interface VoiceRegion {
|
|
5087
5210
|
/** unique ID for the region */
|