diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index a01fa5193..81779a922 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -236,8 +236,8 @@ class GuildMember extends Base { * @property {Collection|RoleResolvable[]} [roles] The roles or role ids to apply * @property {boolean} [mute] Whether or not the member should be muted * @property {boolean} [deaf] Whether or not the member should be deafened - * @property {GuildVoiceChannelResolvable|null} [channel] Channel to move member to (if they are connected to voice), - * or `null` if you want to disconnect them from voice + * @property {GuildVoiceChannelResolvable|null} [channel] Channel to move the member to + * (if they are connected to voice), or `null` if you want to disconnect them from voice */ /** diff --git a/src/structures/VoiceState.js b/src/structures/VoiceState.js index 5b191dcb7..6cca99404 100644 --- a/src/structures/VoiceState.js +++ b/src/structures/VoiceState.js @@ -139,11 +139,11 @@ class VoiceState extends Base { } /** - * Kicks the member from the channel. - * @param {string} [reason] Reason for kicking member from the channel + * Disconnects the member from the channel. + * @param {string} [reason] Reason for disconnecting the member from the channel * @returns {Promise} */ - kick(reason) { + disconnect(reason) { return this.setChannel(null, reason); } diff --git a/typings/index.d.ts b/typings/index.d.ts index 6ce273f38..c512c14f5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1876,7 +1876,7 @@ export class VoiceState extends Base { public setDeaf(deaf: boolean, reason?: string): Promise; public setMute(mute: boolean, reason?: string): Promise; - public kick(reason?: string): Promise; + public disconnect(reason?: string): Promise; public setChannel(channel: VoiceChannelResolvable | null, reason?: string): Promise; public setRequestToSpeak(request: boolean): Promise; public setSuppressed(suppressed: boolean): Promise;