@@ -500,11 +500,10 @@ export class CategoryChannel extends GuildChannel {
500
500
public readonly children : Collection < Snowflake , Exclude < NonThreadGuildBasedChannel , CategoryChannel > > ;
501
501
public type : 'GUILD_CATEGORY' ;
502
502
503
- public createChannel < T extends Exclude < CategoryChannelTypes , 'GUILD_STORE' > > (
503
+ public createChannel < T extends Exclude < CategoryChannelTypes , 'GUILD_STORE' | ChannelTypes . GUILD_STORE > > (
504
504
name : string ,
505
505
options : CategoryCreateChannelOptions & { type : T } ,
506
506
) : Promise < MappedChannelCategoryTypes [ T ] > ;
507
-
508
507
/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
509
508
public createChannel (
510
509
name : string ,
@@ -3009,13 +3008,19 @@ export class GuildChannelManager extends CachedManager<Snowflake, GuildBasedChan
3009
3008
private constructor ( guild : Guild , iterable ?: Iterable < RawGuildChannelData > ) ;
3010
3009
public readonly channelCountWithoutThreads : number ;
3011
3010
public guild : Guild ;
3012
- /** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
3013
- public create ( name : string , options : GuildChannelCreateOptions & { type : 'GUILD_STORE' } ) : Promise < StoreChannel > ;
3014
- public create < T extends GuildChannelTypes > (
3011
+
3012
+ public create < T extends Exclude < GuildChannelTypes , 'GUILD_STORE' | ChannelTypes . GUILD_STORE > > (
3015
3013
name : string ,
3016
3014
options : GuildChannelCreateOptions & { type : T } ,
3017
3015
) : Promise < MappedGuildChannelTypes [ T ] > ;
3018
- public create ( name : string , options : GuildChannelCreateOptions ) : Promise < NonThreadGuildBasedChannel > ;
3016
+
3017
+ /** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
3018
+ public create (
3019
+ name : string ,
3020
+ options : GuildChannelCreateOptions & { type : 'GUILD_STORE' | ChannelTypes . GUILD_STORE } ,
3021
+ ) : Promise < StoreChannel > ;
3022
+
3023
+ public create ( name : string , options ?: GuildChannelCreateOptions ) : Promise < TextChannel > ;
3019
3024
public fetch ( id : Snowflake , options ?: BaseFetchOptions ) : Promise < NonThreadGuildBasedChannel | null > ;
3020
3025
public fetch ( id ?: undefined , options ?: BaseFetchOptions ) : Promise < Collection < Snowflake , NonThreadGuildBasedChannel > > ;
3021
3026
public setPositions ( channelPositions : readonly ChannelPosition [ ] ) : Promise < Guild > ;
0 commit comments