@@ -593,7 +593,7 @@ export class Guild extends AnonymousGuild {
593593 public fetchWidget ( ) : Promise < Widget > ;
594594 public fetchWidgetSettings ( ) : Promise < GuildWidgetSettings > ;
595595 public leave ( ) : Promise < Guild > ;
596- public setAFKChannel ( afkChannel : ChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
596+ public setAFKChannel ( afkChannel : VoiceChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
597597 public setAFKTimeout ( afkTimeout : number , reason ?: string ) : Promise < Guild > ;
598598 public setBanner ( banner : Base64Resolvable | null , reason ?: string ) : Promise < Guild > ;
599599 public setChannelPositions ( channelPositions : readonly ChannelPosition [ ] ) : Promise < Guild > ;
@@ -610,11 +610,11 @@ export class Guild extends AnonymousGuild {
610610 public setName ( name : string , reason ?: string ) : Promise < Guild > ;
611611 public setOwner ( owner : GuildMemberResolvable , reason ?: string ) : Promise < Guild > ;
612612 public setPreferredLocale ( preferredLocale : string , reason ?: string ) : Promise < Guild > ;
613- public setPublicUpdatesChannel ( publicUpdatesChannel : ChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
613+ public setPublicUpdatesChannel ( publicUpdatesChannel : TextChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
614614 public setRolePositions ( rolePositions : readonly RolePosition [ ] ) : Promise < Guild > ;
615- public setRulesChannel ( rulesChannel : ChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
615+ public setRulesChannel ( rulesChannel : TextChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
616616 public setSplash ( splash : Base64Resolvable | null , reason ?: string ) : Promise < Guild > ;
617- public setSystemChannel ( systemChannel : ChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
617+ public setSystemChannel ( systemChannel : TextChannelResolvable | null , reason ?: string ) : Promise < Guild > ;
618618 public setSystemChannelFlags ( systemChannelFlags : SystemChannelFlagsResolvable , reason ?: string ) : Promise < Guild > ;
619619 public setVerificationLevel ( verificationLevel : VerificationLevel | number , reason ?: string ) : Promise < Guild > ;
620620 public setWidgetSettings ( settings : GuildWidgetSettingsData , reason ?: string ) : Promise < Guild > ;
@@ -705,7 +705,7 @@ export class GuildChannel extends Channel {
705705 public permissionsFor ( memberOrRole : GuildMember | Role ) : Readonly < Permissions > ;
706706 public permissionsFor ( memberOrRole : GuildMemberResolvable | RoleResolvable ) : Readonly < Permissions > | null ;
707707 public setName ( name : string , reason ?: string ) : Promise < this> ;
708- public setParent ( channel : CategoryChannel | Snowflake | null , options ?: SetParentOptions ) : Promise < this> ;
708+ public setParent ( channel : CategoryChannelResolvable | null , options ?: SetParentOptions ) : Promise < this> ;
709709 public setPosition ( position : number , options ?: SetChannelPositionOptions ) : Promise < this> ;
710710 public setTopic ( topic : string | null , reason ?: string ) : Promise < this> ;
711711 public isText ( ) : this is TextChannel | NewsChannel ;
@@ -1415,7 +1415,7 @@ export class Role extends Base {
14151415 public delete ( reason ?: string ) : Promise < Role > ;
14161416 public edit ( data : RoleData , reason ?: string ) : Promise < Role > ;
14171417 public equals ( role : Role ) : boolean ;
1418- public permissionsIn ( channel : ChannelResolvable ) : Readonly < Permissions > ;
1418+ public permissionsIn ( channel : GuildChannel | Snowflake ) : Readonly < Permissions > ;
14191419 public setColor ( color : ColorResolvable , reason ?: string ) : Promise < Role > ;
14201420 public setHoist ( hoist : boolean , reason ?: string ) : Promise < Role > ;
14211421 public setMentionable ( mentionable : boolean , reason ?: string ) : Promise < Role > ;
@@ -1885,7 +1885,7 @@ export class VoiceState extends Base {
18851885 public setDeaf ( deaf : boolean , reason ?: string ) : Promise < GuildMember > ;
18861886 public setMute ( mute : boolean , reason ?: string ) : Promise < GuildMember > ;
18871887 public kick ( reason ?: string ) : Promise < GuildMember > ;
1888- public setChannel ( channel : ChannelResolvable | null , reason ?: string ) : Promise < GuildMember > ;
1888+ public setChannel ( channel : VoiceChannelResolvable | null , reason ?: string ) : Promise < GuildMember > ;
18891889 public setRequestToSpeak ( request : boolean ) : Promise < void > ;
18901890 public setSuppressed ( suppressed : boolean ) : Promise < void > ;
18911891}
@@ -2901,7 +2901,7 @@ export interface ChannelData {
29012901 nsfw ?: boolean ;
29022902 bitrate ?: number ;
29032903 userLimit ?: number ;
2904- parentId ?: Snowflake | null ;
2904+ parent ?: CategoryChannelResolvable | null ;
29052905 rateLimitPerUser ?: number ;
29062906 lockPermissions ?: boolean ;
29072907 permissionOverwrites ?: readonly OverwriteResolvable [ ] | Collection < Snowflake , OverwriteResolvable > ;
@@ -2919,7 +2919,7 @@ export interface ChannelLogsQueryOptions {
29192919export type ChannelMention = `<#${Snowflake } >`;
29202920
29212921export interface ChannelPosition {
2922- channel : ChannelResolvable ;
2922+ channel : GuildChannel | Snowflake ;
29232923 lockPermissions ?: boolean ;
29242924 parent ?: CategoryChannelResolvable | null ;
29252925 position ?: number ;
@@ -3517,7 +3517,7 @@ export interface GuildChannelCreateOptions {
35173517 | ChannelTypes . GUILD_PRIVATE_THREAD
35183518 > ;
35193519 nsfw ?: boolean ;
3520- parent ?: ChannelResolvable ;
3520+ parent ?: CategoryChannelResolvable ;
35213521 bitrate ?: number ;
35223522 userLimit ?: number ;
35233523 rateLimitPerUser ?: number ;
@@ -3557,17 +3557,17 @@ export interface GuildEditData {
35573557 verificationLevel ?: VerificationLevel | number ;
35583558 explicitContentFilter ?: ExplicitContentFilterLevel | number ;
35593559 defaultMessageNotifications ?: DefaultMessageNotificationLevel | number ;
3560- afkChannel ?: ChannelResolvable ;
3561- systemChannel ?: ChannelResolvable ;
3560+ afkChannel ?: VoiceChannelResolvable ;
3561+ systemChannel ?: TextChannelResolvable ;
35623562 systemChannelFlags ?: SystemChannelFlagsResolvable ;
35633563 afkTimeout ?: number ;
35643564 icon ?: Base64Resolvable ;
35653565 owner ?: GuildMemberResolvable ;
35663566 splash ?: Base64Resolvable ;
35673567 discoverySplash ?: Base64Resolvable ;
35683568 banner ?: Base64Resolvable ;
3569- rulesChannel ?: ChannelResolvable ;
3570- publicUpdatesChannel ?: ChannelResolvable ;
3569+ rulesChannel ?: TextChannelResolvable ;
3570+ publicUpdatesChannel ?: TextChannelResolvable ;
35713571 preferredLocale ?: string ;
35723572 description ?: string | null ;
35733573 features ?: GuildFeatures [ ] ;
@@ -3623,7 +3623,7 @@ export interface GuildMemberEditData {
36233623 roles ?: Collection < Snowflake , Role > | readonly RoleResolvable [ ] ;
36243624 mute ?: boolean ;
36253625 deaf ?: boolean ;
3626- channel ?: ChannelResolvable | null ;
3626+ channel ?: GuildVoiceChannelResolvable | null ;
36273627}
36283628
36293629export type GuildMemberResolvable = GuildMember | UserResolvable ;
@@ -3651,6 +3651,8 @@ export interface GuildSearchMembersOptions {
36513651
36523652export type GuildTemplateResolvable = string ;
36533653
3654+ export type GuildVoiceChannelResolvable = VoiceChannel | StageChannel | Snowflake ;
3655+
36543656export type HexColorString = `#${string } `;
36553657
36563658export interface HTTPAttachmentData {
@@ -4310,6 +4312,8 @@ export type TextBasedChannelTypes =
43104312 | 'GUILD_PUBLIC_THREAD'
43114313 | 'GUILD_PRIVATE_THREAD' ;
43124314
4315+ export type TextChannelResolvable = Snowflake | TextChannel ;
4316+
43134317export type ThreadAutoArchiveDuration = 60 | 1440 | 4320 | 10080 ;
43144318
43154319export type ThreadChannelResolvable = ThreadChannel | Snowflake ;
@@ -4364,6 +4368,8 @@ export type VerificationLevel = keyof typeof VerificationLevels;
43644368
43654369export type VoiceBasedChannelTypes = 'GUILD_VOICE' | 'GUILD_STAGE_VOICE' ;
43664370
4371+ export type VoiceChannelResolvable = Snowflake | VoiceChannel ;
4372+
43674373export type WebhookClientData = WebhookClientDataIdWithToken | WebhookClientDataURL ;
43684374
43694375export interface WebhookClientDataIdWithToken {
@@ -4383,7 +4389,7 @@ export type WebhookClientOptions = Pick<
43834389export interface WebhookEditData {
43844390 name ?: string ;
43854391 avatar ?: BufferResolvable ;
4386- channel ?: ChannelResolvable ;
4392+ channel ?: GuildTextChannelResolvable ;
43874393}
43884394
43894395export type WebhookEditMessageOptions = Pick <
0 commit comments