nyx/commands/Fun/kiss.js
2021-06-24 15:53:19 +08:00

29 lines
931 B
JavaScript

const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "kiss",
usage: "(User)",
description: "Kiss someone",
category: "Fun",
run: async (client, message, args) => {
const words = args.slice(1).join(" ");
const user =
message.mentions.users.first() ||
message.guild.members.cache.get(args[0]);
if (!user) {
return client.err(message, "Fun", "kiss", 1);
}
if (user.id === message.author.id) {
return client.err(message, "Fun", "kiss", 33);
}
const embed = new MessageEmbed();
embed.setDescription(`${message.author} **kisses** ${user}`);
if (words) {
embed.addField("Words: ", words);
}
embed.setImage(
`https://media.discordapp.net/attachments/814310468906123274/817656819416825896/image0.gif`
);
embed.setColor(client.color);
message.inlineReply(embed).then(msg => msg.react("💕"));
},
};