dfx 0.95.0 → 0.95.2
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.js +4 -4
- package/Cache.js.map +1 -1
- package/DiscordGateway/DiscordWS.js +2 -2
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Shard/StateStore.d.ts +25 -0
- package/DiscordGateway/Shard/StateStore.d.ts.map +1 -0
- package/DiscordGateway/Shard/StateStore.js +33 -0
- package/DiscordGateway/Shard/StateStore.js.map +1 -0
- package/DiscordGateway/Shard/heartbeats.d.ts +2 -2
- package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js +4 -4
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/identify.d.ts +2 -6
- package/DiscordGateway/Shard/identify.d.ts.map +1 -1
- package/DiscordGateway/Shard/identify.js +5 -12
- package/DiscordGateway/Shard/identify.js.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts +1 -8
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/Shard/utils.js +1 -10
- package/DiscordGateway/Shard/utils.js.map +1 -1
- package/DiscordGateway/Shard.d.ts +5 -4
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +43 -28
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordGateway/Sharder.d.ts.map +1 -1
- package/DiscordGateway/Sharder.js +1 -1
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway.d.ts +1 -1
- package/DiscordGateway.d.ts.map +1 -1
- package/DiscordREST.d.ts +1 -1
- package/Helpers/intents.d.ts +2 -2
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/permissions.d.ts +2 -2
- package/Helpers/permissions.d.ts.map +1 -1
- package/Helpers/ui.d.ts +7 -1
- package/Helpers/ui.d.ts.map +1 -1
- package/Helpers/ui.js +11 -1
- package/Helpers/ui.js.map +1 -1
- package/Interactions/gateway.js +1 -1
- package/Interactions/gateway.js.map +1 -1
- package/gateway.d.ts +2 -2
- package/gateway.d.ts.map +1 -1
- package/gateway.js +2 -1
- package/gateway.js.map +1 -1
- package/mjs/Cache.mjs +4 -4
- package/mjs/Cache.mjs.map +1 -1
- package/mjs/DiscordGateway/DiscordWS.mjs +2 -2
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/StateStore.mjs +25 -0
- package/mjs/DiscordGateway/Shard/StateStore.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard/heartbeats.mjs +4 -4
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/identify.mjs +5 -12
- package/mjs/DiscordGateway/Shard/identify.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/utils.mjs +0 -8
- package/mjs/DiscordGateway/Shard/utils.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard.mjs +43 -28
- package/mjs/DiscordGateway/Shard.mjs.map +1 -1
- package/mjs/DiscordGateway/Sharder.mjs +1 -1
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
- package/mjs/Helpers/ui.mjs +9 -0
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/Interactions/gateway.mjs +1 -1
- package/mjs/Interactions/gateway.mjs.map +1 -1
- package/mjs/gateway.mjs +2 -1
- package/mjs/gateway.mjs.map +1 -1
- package/mjs/types.mjs +45 -2
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +2 -2
- package/src/Cache.ts +4 -4
- package/src/DiscordGateway/DiscordWS.ts +2 -2
- package/src/DiscordGateway/Shard/StateStore.ts +46 -0
- package/src/DiscordGateway/Shard/heartbeats.ts +8 -7
- package/src/DiscordGateway/Shard/identify.ts +10 -18
- package/src/DiscordGateway/Shard/utils.ts +1 -28
- package/src/DiscordGateway/Shard.ts +55 -52
- package/src/DiscordGateway/Sharder.ts +1 -1
- package/src/Helpers/ui.ts +15 -0
- package/src/Interactions/gateway.ts +1 -1
- package/src/gateway.ts +2 -0
- package/src/types.ts +168 -3
- package/src/version.ts +1 -1
- package/types.d.ts +134 -4
- package/types.d.ts.map +1 -1
- package/types.js +46 -3
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/DiscordGateway/Shard/invalidSession.ts +0 -11
package/types.d.ts
CHANGED
|
@@ -1198,6 +1198,8 @@ export interface CreateMessageParams {
|
|
|
1198
1198
|
readonly flags?: number;
|
|
1199
1199
|
/** If true and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created. */
|
|
1200
1200
|
readonly enforce_nonce?: boolean;
|
|
1201
|
+
/** A poll! */
|
|
1202
|
+
readonly poll?: PollCreateRequest;
|
|
1201
1203
|
}
|
|
1202
1204
|
export declare function createRoutes<O = any>(fetch: <R, P>(route: Route<P, O>) => RestResponse<R>): Endpoints<O>;
|
|
1203
1205
|
export interface CreateStageInstanceParams {
|
|
@@ -1484,6 +1486,8 @@ export interface Endpoints<O> {
|
|
|
1484
1486
|
bulkOverwriteGlobalApplicationCommands: (applicationId: string, options?: O) => RestResponse<Array<ApplicationCommand>>;
|
|
1485
1487
|
/** Takes a list of application commands, overwriting the existing command list for this application for the targeted guild. Returns 200 and a list of application command objects. */
|
|
1486
1488
|
bulkOverwriteGuildApplicationCommands: (applicationId: string, guildId: string, params?: Partial<BulkOverwriteGuildApplicationCommandParams>, options?: O) => RestResponse<Array<ApplicationCommand>>;
|
|
1489
|
+
/** For One-Time Purchase consumable SKUs, marks a given entitlement for the user as consumed. The entitlement will have consumed: true when using List Entitlements. */
|
|
1490
|
+
consumeAnEntitlement: (applicationId: string, entitlementId: string, options?: O) => RestResponse<any>;
|
|
1487
1491
|
/** Create a new rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Create Gateway event. */
|
|
1488
1492
|
createAutoModerationRule: (guildId: string, params?: Partial<CreateAutoModerationRuleParams>, options?: O) => RestResponse<AutoModerationRule>;
|
|
1489
1493
|
/** Create a new invite object for the channel. Only usable for guild channels. Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this route are optional, however the request body is not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object. Fires an Invite Create Gateway event. */
|
|
@@ -1596,6 +1600,8 @@ export interface Endpoints<O> {
|
|
|
1596
1600
|
editOriginalInteractionResponse: (applicationId: string, interactionToken: string, params?: Partial<EditWebhookMessageParams>, options?: O) => RestResponse<Message>;
|
|
1597
1601
|
/** Edits a previously-sent webhook message from the same token. Returns a message object on success. */
|
|
1598
1602
|
editWebhookMessage: (webhookId: string, webhookToken: string, messageId: string, params?: Partial<EditWebhookMessageParams>, options?: O) => RestResponse<Message>;
|
|
1603
|
+
/** Immediately ends the poll. You cannot end polls from other users. */
|
|
1604
|
+
endPoll: (channelId: string, messageId: string, options?: O) => RestResponse<Message>;
|
|
1599
1605
|
/** Add a new webhook to your GitHub repo (in the repo's settings), and use this endpoint as the "Payload URL." You can choose what events your Discord channel receives by choosing the "Let me select individual events" option and selecting individual events for the new webhook you're configuring. The supported events are commit_comment, create, delete, fork, issue_comment, issues, member, public, pull_request, pull_request_review, pull_request_review_comment, push, release, watch, check_run, check_suite, discussion, and discussion_comment. */
|
|
1600
1606
|
executeGitHubCompatibleWebhook: (webhookId: string, webhookToken: string, options?: O) => RestResponse<any>;
|
|
1601
1607
|
/** Refer to Slack's documentation for more information. We do not support Slack's channel, icon_emoji, mrkdwn, or mrkdwn_in properties. */
|
|
@@ -1604,6 +1610,8 @@ export interface Endpoints<O> {
|
|
|
1604
1610
|
executeWebhook: (webhookId: string, webhookToken: string, params?: Partial<ExecuteWebhookParams>, options?: O) => RestResponse<any>;
|
|
1605
1611
|
/** Follow an Announcement Channel to send messages to a target channel. Requires the MANAGE_WEBHOOKS permission in the target channel. Returns a followed channel object. Fires a Webhooks Update Gateway event for the target channel. */
|
|
1606
1612
|
followAnnouncementChannel: (channelId: string, params?: Partial<FollowAnnouncementChannelParams>, options?: O) => RestResponse<FollowedChannel>;
|
|
1613
|
+
/** Get a list of users that voted for this specific answer. */
|
|
1614
|
+
getAnswerVoters: (channelId: string, messageId: string, answerId: string, params?: Partial<GetAnswerVoterParams>, options?: O) => RestResponse<GetAnswerVoterResponse>;
|
|
1607
1615
|
/** Fetches permissions for a specific command for your application in a guild. Returns a guild application command permissions object. */
|
|
1608
1616
|
getApplicationCommandPermissions: (applicationId: string, guildId: string, commandId: string, options?: O) => RestResponse<GuildApplicationCommandPermission>;
|
|
1609
1617
|
/** Returns a list of application role connection metadata objects for the given application. */
|
|
@@ -1752,7 +1760,7 @@ export interface Endpoints<O> {
|
|
|
1752
1760
|
listPublicArchivedThreads: (channelId: string, params?: Partial<ListPublicArchivedThreadParams>, options?: O) => RestResponse<ListPublicArchivedThreadResponse>;
|
|
1753
1761
|
/** Returns a list of guild scheduled event objects for the given guild. */
|
|
1754
1762
|
listScheduledEventsForGuild: (guildId: string, params?: Partial<ListScheduledEventsForGuildParams>, options?: O) => RestResponse<Array<GuildScheduledEvent>>;
|
|
1755
|
-
/** Returns all SKUs for a given application.
|
|
1763
|
+
/** Returns all SKUs for a given application. */
|
|
1756
1764
|
listSkUs: (applicationId: string, options?: O) => RestResponse<any>;
|
|
1757
1765
|
/** Returns a list of available sticker packs. */
|
|
1758
1766
|
listStickerPacks: (options?: O) => RestResponse<any>;
|
|
@@ -1852,10 +1860,26 @@ export interface Entitlement {
|
|
|
1852
1860
|
readonly ends_at?: string;
|
|
1853
1861
|
/** ID of the guild that is granted access to the entitlement's sku */
|
|
1854
1862
|
readonly guild_id?: Snowflake;
|
|
1863
|
+
/** For consumable items, whether or not the entitlement has been consumed */
|
|
1864
|
+
readonly consumed?: boolean;
|
|
1855
1865
|
}
|
|
1856
1866
|
export type EntitlementCreateEvent = Entitlement;
|
|
1857
1867
|
export type EntitlementDeleteEvent = Entitlement;
|
|
1858
1868
|
export declare enum EntitlementType {
|
|
1869
|
+
/** Entitlement was purchased by user */
|
|
1870
|
+
PURCHASE = 1,
|
|
1871
|
+
/** Entitlement for Discord Nitro subscription */
|
|
1872
|
+
PREMIUM_SUBSCRIPTION = 2,
|
|
1873
|
+
/** Entitlement was gifted by developer */
|
|
1874
|
+
DEVELOPER_GIFT = 3,
|
|
1875
|
+
/** Entitlement was purchased by a dev in application test mode */
|
|
1876
|
+
TEST_MODE_PURCHASE = 4,
|
|
1877
|
+
/** Entitlement was granted when the SKU was free */
|
|
1878
|
+
FREE_PURCHASE = 5,
|
|
1879
|
+
/** Entitlement was gifted by another user */
|
|
1880
|
+
USER_GIFT = 6,
|
|
1881
|
+
/** Entitlement was claimed by user for free as a Nitro Subscriber */
|
|
1882
|
+
PREMIUM_PURCHASE = 7,
|
|
1859
1883
|
/** Entitlement was purchased as an app subscription */
|
|
1860
1884
|
APPLICATION_SUBSCRIPTION = 8
|
|
1861
1885
|
}
|
|
@@ -1891,6 +1915,8 @@ export interface ExecuteWebhookParams {
|
|
|
1891
1915
|
readonly thread_name: string;
|
|
1892
1916
|
/** array of tag ids to apply to the thread (requires the webhook channel to be a forum or media channel) */
|
|
1893
1917
|
readonly applied_tags: Array<Snowflake>;
|
|
1918
|
+
/** A poll! */
|
|
1919
|
+
readonly poll: PollCreateRequest;
|
|
1894
1920
|
}
|
|
1895
1921
|
export declare enum ExplicitContentFilterLevel {
|
|
1896
1922
|
/** media content will not be scanned */
|
|
@@ -1966,6 +1992,8 @@ export declare const GatewayIntents: {
|
|
|
1966
1992
|
readonly GUILD_SCHEDULED_EVENTS: number;
|
|
1967
1993
|
readonly AUTO_MODERATION_CONFIGURATION: number;
|
|
1968
1994
|
readonly AUTO_MODERATION_EXECUTION: number;
|
|
1995
|
+
readonly GUILD_MESSAGE_POLLS: number;
|
|
1996
|
+
readonly DIRECT_MESSAGE_POLLS: number;
|
|
1969
1997
|
};
|
|
1970
1998
|
export declare enum GatewayOpcode {
|
|
1971
1999
|
/** An event was dispatched. */
|
|
@@ -2009,6 +2037,16 @@ export interface GatewayUrlQueryStringParam {
|
|
|
2009
2037
|
/** The optional transport compression of gateway packets */
|
|
2010
2038
|
readonly compress?: string;
|
|
2011
2039
|
}
|
|
2040
|
+
export interface GetAnswerVoterParams {
|
|
2041
|
+
/** Get users after this user ID */
|
|
2042
|
+
readonly after?: Snowflake;
|
|
2043
|
+
/** Max number of users to return (1-100) */
|
|
2044
|
+
readonly limit?: number;
|
|
2045
|
+
}
|
|
2046
|
+
export interface GetAnswerVoterResponse {
|
|
2047
|
+
/** Users who voted for this answer */
|
|
2048
|
+
readonly users: Array<User>;
|
|
2049
|
+
}
|
|
2012
2050
|
export interface GetChannelMessageParams {
|
|
2013
2051
|
/** Get messages around this message ID */
|
|
2014
2052
|
readonly around?: Snowflake;
|
|
@@ -2779,6 +2817,8 @@ export interface InteractionCallbackMessage {
|
|
|
2779
2817
|
readonly components?: Array<Component>;
|
|
2780
2818
|
/** attachment objects with filename and description */
|
|
2781
2819
|
readonly attachments?: Array<Attachment>;
|
|
2820
|
+
/** A poll! */
|
|
2821
|
+
readonly poll?: PollCreateRequest;
|
|
2782
2822
|
}
|
|
2783
2823
|
export interface InteractionCallbackModal {
|
|
2784
2824
|
/** a developer-defined identifier for the modal, max 100 characters */
|
|
@@ -2924,6 +2964,10 @@ export declare enum KeywordPresetType {
|
|
|
2924
2964
|
/** personal insults or words that may be considered hate speech */
|
|
2925
2965
|
SLURS = 3
|
|
2926
2966
|
}
|
|
2967
|
+
export declare enum LayoutType {
|
|
2968
|
+
/** The, uhm, default layout type. */
|
|
2969
|
+
DEFAULT = 1
|
|
2970
|
+
}
|
|
2927
2971
|
export interface ListActiveGuildThreadResponse {
|
|
2928
2972
|
/** the active threads */
|
|
2929
2973
|
readonly threads: Array<Channel>;
|
|
@@ -3123,6 +3167,8 @@ export interface Message {
|
|
|
3123
3167
|
readonly role_subscription_data?: RoleSubscriptionDatum;
|
|
3124
3168
|
/** data for users, members, channels, and roles in the message's auto-populated select menus */
|
|
3125
3169
|
readonly resolved?: ResolvedDatum;
|
|
3170
|
+
/** A poll! */
|
|
3171
|
+
readonly poll?: PollCreateRequest;
|
|
3126
3172
|
}
|
|
3127
3173
|
export interface MessageActivity {
|
|
3128
3174
|
/** type of message activity */
|
|
@@ -3212,8 +3258,8 @@ export interface MessageInteractionMetadatum {
|
|
|
3212
3258
|
readonly id: Snowflake;
|
|
3213
3259
|
/** Type of interaction */
|
|
3214
3260
|
readonly type: InteractionType;
|
|
3215
|
-
/**
|
|
3216
|
-
readonly
|
|
3261
|
+
/** User who triggered the interaction */
|
|
3262
|
+
readonly user: User;
|
|
3217
3263
|
/** IDs for installation context(s) related to an interaction. Details in Authorizing Integration Owners Object */
|
|
3218
3264
|
readonly authorizing_integration_owners: ApplicationIntegrationType;
|
|
3219
3265
|
/** ID of the original response message, present only on follow-up messages */
|
|
@@ -3223,6 +3269,30 @@ export interface MessageInteractionMetadatum {
|
|
|
3223
3269
|
/** Metadata for the interaction that was used to open the modal, present only on modal submit interactions */
|
|
3224
3270
|
readonly triggering_interaction_metadata?: MessageInteractionMetadatum;
|
|
3225
3271
|
}
|
|
3272
|
+
export interface MessagePollVoteAddEvent {
|
|
3273
|
+
/** ID of the user */
|
|
3274
|
+
readonly user_id: Snowflake;
|
|
3275
|
+
/** ID of the channel */
|
|
3276
|
+
readonly channel_id: Snowflake;
|
|
3277
|
+
/** ID of the message */
|
|
3278
|
+
readonly message_id: Snowflake;
|
|
3279
|
+
/** ID of the guild */
|
|
3280
|
+
readonly guild_id?: Snowflake;
|
|
3281
|
+
/** ID of the answer */
|
|
3282
|
+
readonly answer_id: number;
|
|
3283
|
+
}
|
|
3284
|
+
export interface MessagePollVoteRemoveEvent {
|
|
3285
|
+
/** ID of the user */
|
|
3286
|
+
readonly user_id: Snowflake;
|
|
3287
|
+
/** ID of the channel */
|
|
3288
|
+
readonly channel_id: Snowflake;
|
|
3289
|
+
/** ID of the message */
|
|
3290
|
+
readonly message_id: Snowflake;
|
|
3291
|
+
/** ID of the guild */
|
|
3292
|
+
readonly guild_id?: Snowflake;
|
|
3293
|
+
/** ID of the answer */
|
|
3294
|
+
readonly answer_id: number;
|
|
3295
|
+
}
|
|
3226
3296
|
export interface MessageReactionAddEvent {
|
|
3227
3297
|
/** ID of the user */
|
|
3228
3298
|
readonly user_id: Snowflake;
|
|
@@ -3795,7 +3865,61 @@ export declare const PermissionFlag: {
|
|
|
3795
3865
|
readonly USE_EXTERNAL_SOUNDS: bigint;
|
|
3796
3866
|
/** Allows sending voice messages */
|
|
3797
3867
|
readonly SEND_VOICE_MESSAGES: bigint;
|
|
3868
|
+
/** Allows sending polls */
|
|
3869
|
+
readonly SEND_POLLS: bigint;
|
|
3798
3870
|
};
|
|
3871
|
+
export interface Poll {
|
|
3872
|
+
/** The question of the poll. Only text is supported. */
|
|
3873
|
+
readonly question: PollMedia;
|
|
3874
|
+
/** Each of the answers available in the poll. */
|
|
3875
|
+
readonly answers: Array<PollAnswer>;
|
|
3876
|
+
/** The time when the poll ends. */
|
|
3877
|
+
readonly expiry?: string | null;
|
|
3878
|
+
/** Whether a user can select multiple answers */
|
|
3879
|
+
readonly allow_multiselect: boolean;
|
|
3880
|
+
/** The layout type of the poll */
|
|
3881
|
+
readonly layout_type: LayoutType;
|
|
3882
|
+
/** The results of the poll */
|
|
3883
|
+
readonly results?: PollResult;
|
|
3884
|
+
}
|
|
3885
|
+
export interface PollAnswer {
|
|
3886
|
+
/** The ID of the answer */
|
|
3887
|
+
readonly answer_id: number;
|
|
3888
|
+
/** The data of the answer */
|
|
3889
|
+
readonly poll_media: PollMedia;
|
|
3890
|
+
}
|
|
3891
|
+
export interface PollAnswerCount {
|
|
3892
|
+
/** The answer_id */
|
|
3893
|
+
readonly id: number;
|
|
3894
|
+
/** The number of votes for this answer */
|
|
3895
|
+
readonly count: number;
|
|
3896
|
+
/** Whether the current user voted for this answer */
|
|
3897
|
+
readonly me_voted: boolean;
|
|
3898
|
+
}
|
|
3899
|
+
export interface PollCreateRequest {
|
|
3900
|
+
/** The question of the poll. Only text is supported. */
|
|
3901
|
+
readonly question: PollMedia;
|
|
3902
|
+
/** Each of the answers available in the poll, up to 10 */
|
|
3903
|
+
readonly answers: Array<PollAnswer>;
|
|
3904
|
+
/** Number of hours the poll should be open for, up to 7 days */
|
|
3905
|
+
readonly duration: number;
|
|
3906
|
+
/** Whether a user can select multiple answers */
|
|
3907
|
+
readonly allow_multiselect: boolean;
|
|
3908
|
+
/** The layout type of the poll. Defaults to... DEFAULT! */
|
|
3909
|
+
readonly layout_type?: LayoutType;
|
|
3910
|
+
}
|
|
3911
|
+
export interface PollMedia {
|
|
3912
|
+
/** The text of the field */
|
|
3913
|
+
readonly text?: string;
|
|
3914
|
+
/** The emoji of the field */
|
|
3915
|
+
readonly emoji?: Emoji;
|
|
3916
|
+
}
|
|
3917
|
+
export interface PollResult {
|
|
3918
|
+
/** Whether the votes have been precisely counted */
|
|
3919
|
+
readonly is_finalized: boolean;
|
|
3920
|
+
/** The counts for each answer */
|
|
3921
|
+
readonly answer_counts: Array<PollAnswerCount>;
|
|
3922
|
+
}
|
|
3799
3923
|
export declare enum PremiumTier {
|
|
3800
3924
|
/** guild has not unlocked any Server Boost perks */
|
|
3801
3925
|
NONE = 0,
|
|
@@ -3890,7 +4014,7 @@ export interface ReadyEvent {
|
|
|
3890
4014
|
/** Contains id and flags */
|
|
3891
4015
|
readonly application: Application;
|
|
3892
4016
|
}
|
|
3893
|
-
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;
|
|
4017
|
+
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;
|
|
3894
4018
|
export interface ReceiveEvents {
|
|
3895
4019
|
HELLO: HelloEvent;
|
|
3896
4020
|
READY: ReadyEvent;
|
|
@@ -3959,6 +4083,8 @@ export interface ReceiveEvents {
|
|
|
3959
4083
|
VOICE_STATE_UPDATE: VoiceStateUpdateEvent;
|
|
3960
4084
|
VOICE_SERVER_UPDATE: VoiceServerUpdateEvent;
|
|
3961
4085
|
WEBHOOKS_UPDATE: WebhooksUpdateEvent;
|
|
4086
|
+
MESSAGE_POLL_VOTE_ADD: MessagePollVoteAddEvent;
|
|
4087
|
+
MESSAGE_POLL_VOTE_REMOVE: MessagePollVoteRemoveEvent;
|
|
3962
4088
|
}
|
|
3963
4089
|
export type ReconnectEvent = null;
|
|
3964
4090
|
export interface RequestGuildMember {
|
|
@@ -4162,6 +4288,10 @@ export declare const SkuFlag: {
|
|
|
4162
4288
|
readonly USER_SUBSCRIPTION: number;
|
|
4163
4289
|
};
|
|
4164
4290
|
export declare enum SkuType {
|
|
4291
|
+
/** Durable one-time purchase */
|
|
4292
|
+
DURABLE = 2,
|
|
4293
|
+
/** Consumable one-time purchase */
|
|
4294
|
+
CONSUMABLE = 3,
|
|
4165
4295
|
/** Represents a recurring subscription */
|
|
4166
4296
|
SUBSCRIPTION = 5,
|
|
4167
4297
|
/** System-generated group for each SUBSCRIPTION SKU created */
|