dfx 0.110.0 → 0.110.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/DiscordGateway/Shard.d.ts +1 -1
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/mjs/types.mjs +11 -3
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +2 -2
- package/src/types.ts +47 -12
- package/src/version.ts +1 -1
- package/types.d.ts +36 -12
- package/types.d.ts.map +1 -1
- package/types.js +11 -3
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/types.d.ts
CHANGED
|
@@ -1945,7 +1945,7 @@ export interface Endpoints<O> {
|
|
|
1945
1945
|
modifyApplicationEmoji: (applicationId: string, emojiId: string, params?: Partial<ModifyApplicationEmojiParams>, options?: O) => RestResponse<Emoji>;
|
|
1946
1946
|
/** Modify an existing rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Update Gateway event. */
|
|
1947
1947
|
modifyAutoModerationRule: (guildId: string, autoModerationRuleId: string, params?: Partial<ModifyAutoModerationRuleParams>, options?: O) => RestResponse<AutoModerationRule>;
|
|
1948
|
-
/** Update a channel's settings. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters.
|
|
1948
|
+
/** Update a channel's settings. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. */
|
|
1949
1949
|
modifyChannel: (channelId: string, params?: Partial<ModifyChannelParams>, options?: O) => RestResponse<Channel>;
|
|
1950
1950
|
/** Modifies the current member in a guild. Returns a 200 with the updated member object on success. Fires a Guild Member Update Gateway event. */
|
|
1951
1951
|
modifyCurrentMember: (guildId: string, params?: Partial<ModifyCurrentMemberParams>, options?: O) => RestResponse<any>;
|
|
@@ -1960,6 +1960,8 @@ export interface Endpoints<O> {
|
|
|
1960
1960
|
modifyGuildChannelPositions: (guildId: string, params?: Partial<ModifyGuildChannelPositionParams>, options?: O) => RestResponse<any>;
|
|
1961
1961
|
/** Modify the given emoji. For emojis created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission. For other emojis, requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event. */
|
|
1962
1962
|
modifyGuildEmoji: (guildId: string, emojiId: string, params?: Partial<ModifyGuildEmojiParams>, options?: O) => RestResponse<Emoji>;
|
|
1963
|
+
/** Modifies the incident actions of the guild. Returns a 200 with the Incidents Data object for the guild. Requires the MANAGE_GUILD permission. */
|
|
1964
|
+
modifyGuildIncidentActions: (guildId: string, params?: Partial<ModifyGuildIncidentActionParams>, options?: O) => RestResponse<IncidentsDatum>;
|
|
1963
1965
|
/** Modify attributes of a guild member. Returns a 200 OK with the guild member as the body. Fires a Guild Member Update Gateway event. If the channel_id is set to null, this will force the target user to be disconnected from voice. */
|
|
1964
1966
|
modifyGuildMember: (guildId: string, userId: string, params?: Partial<ModifyGuildMemberParams>, options?: O) => RestResponse<GuildMember>;
|
|
1965
1967
|
/** Modify a guild's MFA level. Requires guild ownership. Returns the updated level on success. Fires a Guild Update Gateway event. */
|
|
@@ -2034,10 +2036,10 @@ export interface Entitlement {
|
|
|
2034
2036
|
readonly type: EntitlementType;
|
|
2035
2037
|
/** Entitlement was deleted */
|
|
2036
2038
|
readonly deleted: boolean;
|
|
2037
|
-
/** Start date at which the entitlement is valid.
|
|
2038
|
-
readonly starts_at?: string;
|
|
2039
|
-
/** Date at which the entitlement is no longer valid.
|
|
2040
|
-
readonly ends_at?: string;
|
|
2039
|
+
/** Start date at which the entitlement is valid. */
|
|
2040
|
+
readonly starts_at?: string | null;
|
|
2041
|
+
/** Date at which the entitlement is no longer valid. */
|
|
2042
|
+
readonly ends_at?: string | null;
|
|
2041
2043
|
/** ID of the guild that is granted access to the entitlement's sku */
|
|
2042
2044
|
readonly guild_id?: Snowflake;
|
|
2043
2045
|
/** For consumable items, whether or not the entitlement has been consumed */
|
|
@@ -2463,6 +2465,8 @@ export interface Guild {
|
|
|
2463
2465
|
readonly premium_progress_bar_enabled: boolean;
|
|
2464
2466
|
/** the id of the channel where admins and moderators of Community guilds receive safety alerts from Discord */
|
|
2465
2467
|
readonly safety_alerts_channel_id?: Snowflake | null;
|
|
2468
|
+
/** the incidents data for this guild */
|
|
2469
|
+
readonly incidents_data?: IncidentsDatum | null;
|
|
2466
2470
|
}
|
|
2467
2471
|
export interface GuildApplicationCommandPermission {
|
|
2468
2472
|
/** ID of the command or the application ID */
|
|
@@ -2989,6 +2993,16 @@ export interface IdentifyConnectionProperty {
|
|
|
2989
2993
|
/** Your library name */
|
|
2990
2994
|
readonly device: string;
|
|
2991
2995
|
}
|
|
2996
|
+
export interface IncidentsDatum {
|
|
2997
|
+
/** when invites get enabled again */
|
|
2998
|
+
readonly invites_disabled_until?: string | null;
|
|
2999
|
+
/** when direct messages get enabled again */
|
|
3000
|
+
readonly dms_disabled_until?: string | null;
|
|
3001
|
+
/** when the dm spam was detected */
|
|
3002
|
+
readonly dm_spam_detected_at?: string | null;
|
|
3003
|
+
/** when the raid was detected */
|
|
3004
|
+
readonly raid_detected_at?: string | null;
|
|
3005
|
+
}
|
|
2992
3006
|
export interface InstallParam {
|
|
2993
3007
|
/** Scopes to add the application to the server with */
|
|
2994
3008
|
readonly scopes: Array<OAuth2Scope>;
|
|
@@ -3617,6 +3631,8 @@ export declare const MessageFlag: {
|
|
|
3617
3631
|
readonly SUPPRESS_NOTIFICATIONS: number;
|
|
3618
3632
|
/** this message is a voice message */
|
|
3619
3633
|
readonly IS_VOICE_MESSAGE: number;
|
|
3634
|
+
/** this message has a snapshot (via Message Forwarding) */
|
|
3635
|
+
readonly HAS_SNAPSHOT: number;
|
|
3620
3636
|
};
|
|
3621
3637
|
export interface MessageInteraction {
|
|
3622
3638
|
/** ID of the interaction */
|
|
@@ -3853,17 +3869,17 @@ export interface ModifyChannelGuildChannelParams {
|
|
|
3853
3869
|
/** the default duration that the clients use (not the API) for newly created threads in the channel, in minutes, to automatically archive the thread after recent activity */
|
|
3854
3870
|
readonly default_auto_archive_duration?: number | null;
|
|
3855
3871
|
/** channel flags combined as a bitfield. Currently only REQUIRE_TAG (1 << 4) is supported by GUILD_FORUM and GUILD_MEDIA channels. HIDE_MEDIA_DOWNLOAD_OPTIONS (1 << 15) is supported only by GUILD_MEDIA channels */
|
|
3856
|
-
readonly flags
|
|
3872
|
+
readonly flags: number;
|
|
3857
3873
|
/** the set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel; limited to 20 */
|
|
3858
|
-
readonly available_tags
|
|
3874
|
+
readonly available_tags: Array<ForumTag>;
|
|
3859
3875
|
/** the emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel */
|
|
3860
3876
|
readonly default_reaction_emoji?: DefaultReaction | null;
|
|
3861
3877
|
/** the initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update. */
|
|
3862
|
-
readonly default_thread_rate_limit_per_user
|
|
3878
|
+
readonly default_thread_rate_limit_per_user: number;
|
|
3863
3879
|
/** the default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels */
|
|
3864
3880
|
readonly default_sort_order?: SortOrderType | null;
|
|
3865
3881
|
/** the default forum layout type used to display posts in GUILD_FORUM channels */
|
|
3866
|
-
readonly default_forum_layout
|
|
3882
|
+
readonly default_forum_layout: ForumLayoutType;
|
|
3867
3883
|
}
|
|
3868
3884
|
export type ModifyChannelParams = ModifyChannelGroupDmParams | ModifyChannelGuildChannelParams | ModifyChannelThreadParams;
|
|
3869
3885
|
export interface ModifyChannelThreadParams {
|
|
@@ -3924,6 +3940,12 @@ export interface ModifyGuildEmojiParams {
|
|
|
3924
3940
|
/** roles allowed to use this emoji */
|
|
3925
3941
|
readonly roles?: Array<Snowflake> | null;
|
|
3926
3942
|
}
|
|
3943
|
+
export interface ModifyGuildIncidentActionParams {
|
|
3944
|
+
/** when invites will be enabled again */
|
|
3945
|
+
readonly invites_disabled_until?: string | null;
|
|
3946
|
+
/** when direct messages will be enabled again */
|
|
3947
|
+
readonly dms_disabled_until?: string | null;
|
|
3948
|
+
}
|
|
3927
3949
|
export interface ModifyGuildMemberParams {
|
|
3928
3950
|
/** value to set user's nickname to */
|
|
3929
3951
|
readonly nick: string;
|
|
@@ -4205,7 +4227,7 @@ export declare const PermissionFlag: {
|
|
|
4205
4227
|
readonly MANAGE_CHANNELS: bigint;
|
|
4206
4228
|
/** Allows management and editing of the guild */
|
|
4207
4229
|
readonly MANAGE_GUILD: bigint;
|
|
4208
|
-
/** Allows for
|
|
4230
|
+
/** Allows for adding new reactions to messages. This permission does not apply to reacting with an existing reaction on a message. */
|
|
4209
4231
|
readonly ADD_REACTIONS: bigint;
|
|
4210
4232
|
/** Allows for viewing of audit logs */
|
|
4211
4233
|
readonly VIEW_AUDIT_LOG: bigint;
|
|
@@ -4271,7 +4293,7 @@ export declare const PermissionFlag: {
|
|
|
4271
4293
|
readonly USE_EXTERNAL_STICKERS: bigint;
|
|
4272
4294
|
/** Allows for sending messages in threads */
|
|
4273
4295
|
readonly SEND_MESSAGES_IN_THREADS: bigint;
|
|
4274
|
-
/** Allows for using Activities (applications with the EMBEDDED flag)
|
|
4296
|
+
/** Allows for using Activities (applications with the EMBEDDED flag) */
|
|
4275
4297
|
readonly USE_EMBEDDED_ACTIVITIES: bigint;
|
|
4276
4298
|
/** Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels */
|
|
4277
4299
|
readonly MODERATE_MEMBERS: bigint;
|
|
@@ -4912,6 +4934,8 @@ export interface Subscription {
|
|
|
4912
4934
|
readonly sku_ids: Array<Snowflake>;
|
|
4913
4935
|
/** List of entitlements granted for this subscription */
|
|
4914
4936
|
readonly entitlement_ids: Array<Snowflake>;
|
|
4937
|
+
/** List of SKUs that this user will be subscribed to at renewal */
|
|
4938
|
+
readonly renewal_sku_ids?: Array<Snowflake> | null;
|
|
4915
4939
|
/** Start of the current subscription period */
|
|
4916
4940
|
readonly current_period_start: string;
|
|
4917
4941
|
/** End of the current subscription period */
|
|
@@ -4919,7 +4943,7 @@ export interface Subscription {
|
|
|
4919
4943
|
/** Current status of the subscription */
|
|
4920
4944
|
readonly status: SubscriptionStatus;
|
|
4921
4945
|
/** When the subscription was canceled */
|
|
4922
|
-
readonly canceled_at
|
|
4946
|
+
readonly canceled_at?: string | null;
|
|
4923
4947
|
/** ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope. */
|
|
4924
4948
|
readonly country?: string;
|
|
4925
4949
|
}
|