mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix(StoreChannel): mark as deprecated (#7072)
This commit is contained in:
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@@ -469,6 +469,7 @@ export class CategoryChannel extends GuildChannel {
|
||||
name: string,
|
||||
options: CategoryCreateChannelOptions & { type: 'GUILD_NEWS' },
|
||||
): Promise<NewsChannel>;
|
||||
/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
|
||||
public createChannel(
|
||||
name: string,
|
||||
options: CategoryCreateChannelOptions & { type: 'GUILD_STORE' },
|
||||
@@ -2054,10 +2055,13 @@ export class StickerPack extends Base {
|
||||
public bannerURL(options?: StaticImageURLOptions): string;
|
||||
}
|
||||
|
||||
/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
|
||||
export class StoreChannel extends GuildChannel {
|
||||
private constructor(guild: Guild, data?: RawGuildChannelData, client?: Client);
|
||||
public createInvite(options?: CreateInviteOptions): Promise<Invite>;
|
||||
public fetchInvites(cache?: boolean): Promise<Collection<string, Invite>>;
|
||||
/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
|
||||
public clone(options?: GuildChannelCloneOptions): Promise<this>;
|
||||
public nsfw: boolean;
|
||||
public type: 'GUILD_STORE';
|
||||
}
|
||||
@@ -2807,6 +2811,7 @@ export class GuildChannelManager extends CachedManager<
|
||||
): Promise<CategoryChannel>;
|
||||
public create(name: string, options?: GuildChannelCreateOptions & { type?: 'GUILD_TEXT' }): Promise<TextChannel>;
|
||||
public create(name: string, options: GuildChannelCreateOptions & { type: 'GUILD_NEWS' }): Promise<NewsChannel>;
|
||||
/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
|
||||
public create(name: string, options: GuildChannelCreateOptions & { type: 'GUILD_STORE' }): Promise<StoreChannel>;
|
||||
public create(
|
||||
name: string,
|
||||
|
||||
Reference in New Issue
Block a user