```js
const { getUserFromMention } = require("../userinfo/getuser.js");

module.exports = {
    name: "kick",
    description: "kick a player",
    execute(message, client) {
        const split = message.content.split(/ +/);
        const args = split.slice(1);

        const member = getUserFromMention(args[0], client);

        if (!member) {
            return message.reply("Say the name lets dew it !");
        }

        if (!message.member.permissions.has("KICK_MEMBERS")) {
            return message.reply("I can't kick this user.");
        }

        return message.guild.members
            .kick(member)
            .then(() => message.reply(`${member.username} was kicked.`))
            .catch((error) => message.reply("They are above my paygrade"));
    },
};

```