diff --git a/deno/rest/v10/channel.ts b/deno/rest/v10/channel.ts index 7121c160..893d0969 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -25,6 +25,9 @@ import type { APIAttachment, APIMessageTopLevelComponent, APIMessagePin, + APIAnnouncementThreadChannel, + APIPrivateThreadChannel, + APIPublicThreadChannel, } from '../../payloads/v10/mod.ts'; import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals.ts'; import type { RESTAPIPoll } from './poll.ts'; @@ -767,7 +770,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message} */ -export type RESTPostAPIChannelThreadsResult = APIChannel; +export type RESTPostAPIChannelThreadsResult = + | APIAnnouncementThreadChannel + | APIPrivateThreadChannel + | APIPublicThreadChannel; /** * @see {@link https://discord.com/developers/docs/resources/channel#join-thread} diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index f7da4ee5..0d937ff9 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -25,6 +25,9 @@ import type { APIAttachment, APIMessageTopLevelComponent, APIMessagePin, + APIAnnouncementThreadChannel, + APIPrivateThreadChannel, + APIPublicThreadChannel, } from '../../payloads/v9/mod.ts'; import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals.ts'; import type { RESTAPIPoll } from './poll.ts'; @@ -780,7 +783,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message} */ -export type RESTPostAPIChannelThreadsResult = APIChannel; +export type RESTPostAPIChannelThreadsResult = + | APIAnnouncementThreadChannel + | APIPrivateThreadChannel + | APIPublicThreadChannel; /** * @see {@link https://discord.com/developers/docs/resources/channel#join-thread} diff --git a/rest/v10/channel.ts b/rest/v10/channel.ts index e7bb8332..076bb7d4 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -25,6 +25,9 @@ import type { APIAttachment, APIMessageTopLevelComponent, APIMessagePin, + APIAnnouncementThreadChannel, + APIPrivateThreadChannel, + APIPublicThreadChannel, } from '../../payloads/v10/index'; import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals'; import type { RESTAPIPoll } from './poll'; @@ -767,7 +770,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message} */ -export type RESTPostAPIChannelThreadsResult = APIChannel; +export type RESTPostAPIChannelThreadsResult = + | APIAnnouncementThreadChannel + | APIPrivateThreadChannel + | APIPublicThreadChannel; /** * @see {@link https://discord.com/developers/docs/resources/channel#join-thread} diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 3c1380ac..ec533888 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -25,6 +25,9 @@ import type { APIAttachment, APIMessageTopLevelComponent, APIMessagePin, + APIAnnouncementThreadChannel, + APIPrivateThreadChannel, + APIPublicThreadChannel, } from '../../payloads/v9/index'; import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals'; import type { RESTAPIPoll } from './poll'; @@ -780,7 +783,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes /** * @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message} */ -export type RESTPostAPIChannelThreadsResult = APIChannel; +export type RESTPostAPIChannelThreadsResult = + | APIAnnouncementThreadChannel + | APIPrivateThreadChannel + | APIPublicThreadChannel; /** * @see {@link https://discord.com/developers/docs/resources/channel#join-thread}