mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
refactor(VoiceState): Change kick to disconnect (#6251)
This commit is contained in:
@@ -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<GuildMember>}
|
||||
*/
|
||||
kick(reason) {
|
||||
disconnect(reason) {
|
||||
return this.setChannel(null, reason);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user