Skip to content

Commit

Permalink
typings(VoiceState): allow moving members to stage channels (#6684)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyClausen authored Sep 26, 2021
1 parent 839974c commit 94ca0f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/structures/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ class Channel extends Base {
}

/**
* Indicates whether this channel is voice-based
* ({@link VoiceChannel} or {@link StageChannel}).
* Indicates whether this channel is {@link BaseGuildVoiceChannel voice-based}.
* @returns {boolean}
*/
isVoice() {
Expand Down
4 changes: 2 additions & 2 deletions src/structures/VoiceState.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ class VoiceState extends Base {

/**
* Moves the member to a different channel, or disconnects them from the one they're in.
* @param {VoiceChannelResolvable|null} channel Channel to move the member to, or `null` if you want to disconnect
* them from voice.
* @param {GuildVoiceChannelResolvable|null} channel Channel to move the member to, or `null` if you want to
* disconnect them from voice.
* @param {string} [reason] Reason for moving member to another channel or disconnecting
* @returns {Promise<GuildMember>}
*/
Expand Down
6 changes: 2 additions & 4 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
APIActionRowComponent,
APIApplicationCommand,
APIApplicationCommandInteractionData,
APIApplicationCommandInteractionDataOption,
APIApplicationCommandOption,
APIApplicationCommandPermission,
APIAuditLogChange,
Expand Down Expand Up @@ -85,7 +84,6 @@ import {
RawBaseGuildData,
RawChannelData,
RawClientApplicationData,
RawCommandInteractionData,
RawDMChannelData,
RawEmojiData,
RawGuildAuditLogData,
Expand Down Expand Up @@ -407,7 +405,7 @@ export class Channel extends Base {
public delete(): Promise<Channel>;
public fetch(force?: boolean): Promise<Channel>;
public isText(): this is TextBasedChannels;
public isVoice(): this is VoiceChannel | StageChannel;
public isVoice(): this is BaseGuildVoiceChannel;
public isThread(): this is ThreadChannel;
public toString(): ChannelMention;
}
Expand Down Expand Up @@ -2090,7 +2088,7 @@ export class VoiceState extends Base {
public setDeaf(deaf?: boolean, reason?: string): Promise<GuildMember>;
public setMute(mute?: boolean, reason?: string): Promise<GuildMember>;
public disconnect(reason?: string): Promise<GuildMember>;
public setChannel(channel: VoiceChannelResolvable | null, reason?: string): Promise<GuildMember>;
public setChannel(channel: GuildVoiceChannelResolvable | null, reason?: string): Promise<GuildMember>;
public setRequestToSpeak(request?: boolean): Promise<void>;
public setSuppressed(suppressed?: boolean): Promise<void>;
}
Expand Down

0 comments on commit 94ca0f5

Please sign in to comment.