discord-slim
Advanced tools
Comparing version 2.6.9 to 2.6.10
@@ -17,10 +17,16 @@ import { RequestOptions } from '../request'; | ||
rate_limit_per_user?: number | null; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.Thread>; | ||
export declare const Start: (channel_id: string, params: { | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.Thread & { | ||
type: Exclude<types.Thread['type'], helpers.ChannelTypes.GUILD_PRIVATE_THREAD>; | ||
}>; | ||
export declare const Start: <T extends helpers.ChannelTypes.GUILD_NEWS_THREAD | helpers.ChannelTypes.GUILD_PUBLIC_THREAD | helpers.ChannelTypes.GUILD_PRIVATE_THREAD>(channel_id: string, params: { | ||
name: string; | ||
auto_archive_duration?: helpers.ThreadArchiveDurations; | ||
type?: (helpers.ChannelTypes.GUILD_PRIVATE_THREAD | helpers.ChannelTypes.GUILD_PUBLIC_THREAD | helpers.ChannelTypes.GUILD_NEWS_THREAD); | ||
invitable?: boolean; | ||
rate_limit_per_user?: number | null; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.Thread>; | ||
type: T; | ||
auto_archive_duration?: helpers.ThreadArchiveDurations | undefined; | ||
rate_limit_per_user?: number | null | undefined; | ||
} & ({} | { | ||
type: helpers.ChannelTypes.GUILD_PRIVATE_THREAD; | ||
invitable?: boolean | undefined; | ||
}), requestOptions?: RequestOptions | undefined) => Promise<types.Thread & { | ||
type: T; | ||
}>; | ||
export declare const StartInForum: (channel_id: string, params: { | ||
@@ -39,2 +45,3 @@ name: string; | ||
}, requestOptions?: RequestOptions | undefined) => Promise<types.Thread & { | ||
type: helpers.ChannelTypes.GUILD_PUBLIC_THREAD; | ||
message: types.Message; | ||
@@ -41,0 +48,0 @@ }>; |
@@ -235,4 +235,2 @@ export declare const HOST = "https://discord.com", API: "https://discord.com/api", API_VERSION = 9, API_PATH: "https://discord.com/api/v9", CDN = "https://cdn.discordapp.com"; | ||
ROLE_ICONS = "ROLE_ICONS", | ||
SEVEN_DAY_THREAD_ARCHIVE = "SEVEN_DAY_THREAD_ARCHIVE", | ||
THREE_DAY_THREAD_ARCHIVE = "THREE_DAY_THREAD_ARCHIVE", | ||
TICKETED_EVENTS_ENABLED = "TICKETED_EVENTS_ENABLED", | ||
@@ -239,0 +237,0 @@ VANITY_URL = "VANITY_URL", |
@@ -336,6 +336,6 @@ import type * as helpers from './helpers'; | ||
export declare type AllowedMentions = { | ||
parse: helpers.AllowedMentionTypes[]; | ||
roles: string[]; | ||
users: string[]; | ||
replied_user: boolean; | ||
parse?: helpers.AllowedMentionTypes[]; | ||
roles?: string[]; | ||
users?: string[]; | ||
replied_user?: boolean; | ||
}; | ||
@@ -641,2 +641,4 @@ export declare type Emoji = { | ||
choices?: ApplicationCommandOptionChoice<string>[]; | ||
options?: undefined; | ||
channel_types?: undefined; | ||
min_value?: undefined; | ||
@@ -647,7 +649,40 @@ max_value?: undefined; | ||
choices?: ApplicationCommandOptionChoice<number>[]; | ||
options?: undefined; | ||
channel_types?: undefined; | ||
} | { | ||
type: helpers.ApplicationCommandOptionTypes.SUB_COMMAND; | ||
required?: undefined; | ||
choices?: undefined; | ||
options?: (ApplicationCommandOption & { | ||
type: Exclude<helpers.ApplicationCommandOptionTypes, (helpers.ApplicationCommandOptionTypes.SUB_COMMAND | helpers.ApplicationCommandOptionTypes.SUB_COMMAND_GROUP)>; | ||
})[]; | ||
channel_types?: undefined; | ||
min_value?: undefined; | ||
max_value?: undefined; | ||
autocomplete?: undefined; | ||
} | { | ||
type: helpers.ApplicationCommandOptionTypes.SUB_COMMAND_GROUP; | ||
required?: undefined; | ||
choices?: undefined; | ||
options: (ApplicationCommandOption & { | ||
type: helpers.ApplicationCommandOptionTypes.SUB_COMMAND; | ||
})[]; | ||
channel_types?: undefined; | ||
min_value?: undefined; | ||
max_value?: undefined; | ||
autocomplete?: undefined; | ||
} | { | ||
type: helpers.ApplicationCommandOptionTypes.CHANNEL; | ||
choices?: undefined; | ||
options?: undefined; | ||
min_value?: undefined; | ||
max_value?: undefined; | ||
autocomplete?: undefined; | ||
} | { | ||
choices?: undefined; | ||
options?: undefined; | ||
channel_types?: undefined; | ||
min_value?: undefined; | ||
max_value?: undefined; | ||
autocomplete?: undefined; | ||
}) & ({ | ||
@@ -654,0 +689,0 @@ choices: ApplicationCommandOptionChoice<string | number>[]; |
{ | ||
"name": "discord-slim", | ||
"version": "2.6.9", | ||
"version": "2.6.10", | ||
"description": "Lightweight Discord API library for Node.js.", | ||
@@ -5,0 +5,0 @@ "author": "Hanabishi", |
Sorry, the diff of this file is too big to display
221285
4965