mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
typings(VoiceState): allow moving members to stage channels (#6684)
This commit is contained in:
@@ -116,8 +116,7 @@ class Channel extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether this channel is voice-based
|
* Indicates whether this channel is {@link BaseGuildVoiceChannel voice-based}.
|
||||||
* ({@link VoiceChannel} or {@link StageChannel}).
|
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isVoice() {
|
isVoice() {
|
||||||
|
|||||||
@@ -149,8 +149,8 @@ class VoiceState extends Base {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves the member to a different channel, or disconnects them from the one they're in.
|
* 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
|
* @param {GuildVoiceChannelResolvable|null} channel Channel to move the member to, or `null` if you want to
|
||||||
* them from voice.
|
* disconnect them from voice.
|
||||||
* @param {string} [reason] Reason for moving member to another channel or disconnecting
|
* @param {string} [reason] Reason for moving member to another channel or disconnecting
|
||||||
* @returns {Promise<GuildMember>}
|
* @returns {Promise<GuildMember>}
|
||||||
*/
|
*/
|
||||||
|
|||||||
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -25,7 +25,6 @@ import {
|
|||||||
APIActionRowComponent,
|
APIActionRowComponent,
|
||||||
APIApplicationCommand,
|
APIApplicationCommand,
|
||||||
APIApplicationCommandInteractionData,
|
APIApplicationCommandInteractionData,
|
||||||
APIApplicationCommandInteractionDataOption,
|
|
||||||
APIApplicationCommandOption,
|
APIApplicationCommandOption,
|
||||||
APIApplicationCommandPermission,
|
APIApplicationCommandPermission,
|
||||||
APIAuditLogChange,
|
APIAuditLogChange,
|
||||||
@@ -85,7 +84,6 @@ import {
|
|||||||
RawBaseGuildData,
|
RawBaseGuildData,
|
||||||
RawChannelData,
|
RawChannelData,
|
||||||
RawClientApplicationData,
|
RawClientApplicationData,
|
||||||
RawCommandInteractionData,
|
|
||||||
RawDMChannelData,
|
RawDMChannelData,
|
||||||
RawEmojiData,
|
RawEmojiData,
|
||||||
RawGuildAuditLogData,
|
RawGuildAuditLogData,
|
||||||
@@ -407,7 +405,7 @@ export class Channel extends Base {
|
|||||||
public delete(): Promise<Channel>;
|
public delete(): Promise<Channel>;
|
||||||
public fetch(force?: boolean): Promise<Channel>;
|
public fetch(force?: boolean): Promise<Channel>;
|
||||||
public isText(): this is TextBasedChannels;
|
public isText(): this is TextBasedChannels;
|
||||||
public isVoice(): this is VoiceChannel | StageChannel;
|
public isVoice(): this is BaseGuildVoiceChannel;
|
||||||
public isThread(): this is ThreadChannel;
|
public isThread(): this is ThreadChannel;
|
||||||
public toString(): ChannelMention;
|
public toString(): ChannelMention;
|
||||||
}
|
}
|
||||||
@@ -2090,7 +2088,7 @@ export class VoiceState extends Base {
|
|||||||
public setDeaf(deaf?: boolean, reason?: string): Promise<GuildMember>;
|
public setDeaf(deaf?: boolean, reason?: string): Promise<GuildMember>;
|
||||||
public setMute(mute?: boolean, reason?: string): Promise<GuildMember>;
|
public setMute(mute?: boolean, reason?: string): Promise<GuildMember>;
|
||||||
public disconnect(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 setRequestToSpeak(request?: boolean): Promise<void>;
|
||||||
public setSuppressed(suppressed?: boolean): Promise<void>;
|
public setSuppressed(suppressed?: boolean): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user