mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Remove guild.kick for consistency
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -146,20 +146,6 @@ class Guild {
|
|||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Tries to kick a member from the guild.
|
|
||||||
* @param {GuildMemberResolvable} member the member to kick
|
|
||||||
* @returns {Promise<GuildMember, Error>}
|
|
||||||
* @example
|
|
||||||
* // kicks a member from a guild:
|
|
||||||
* guild.kick(message.author)
|
|
||||||
* .then(member => console.log(`Kicked ${member}`))
|
|
||||||
* .catch(error => console.log(error));
|
|
||||||
*/
|
|
||||||
kick(member) {
|
|
||||||
return this.member(member).kick();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the GuildMember form of a User object, if the User is present in the guild.
|
* Returns the GuildMember form of a User object, if the User is present in the guild.
|
||||||
* @param {UserResolvable} user the user that you want to obtain the GuildMember of.
|
* @param {UserResolvable} user the user that you want to obtain the GuildMember of.
|
||||||
|
|||||||
Reference in New Issue
Block a user