2022-07-23 17:14:42 +05:00
|
|
|
const BaseCommand = require("../base/BaseCommand");
|
|
|
|
|
|
|
|
class Mention extends BaseCommand {
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {import("../base/JaBa")} client
|
|
|
|
*/
|
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
command: {
|
|
|
|
name: "mention",
|
2022-07-25 22:09:02 +05:00
|
|
|
type: 2 // Type 2 is USER COMMAND.
|
2022-07-23 17:14:42 +05:00
|
|
|
},
|
|
|
|
aliases: ["m"], // Application command aliases.
|
|
|
|
guildOnly: true // Determines whether your command is only guild.
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {import("../base/JaBa")} client
|
|
|
|
*/
|
|
|
|
async onLoad() {
|
|
|
|
//...
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {import("../base/JaBa")} client
|
|
|
|
* @param {import("discord.js").ContextMenuInteraction} interaction
|
|
|
|
*/
|
|
|
|
async execute(client, interaction) {
|
|
|
|
const target = interaction.member.guild.members.cache.get(interaction.targetId);
|
|
|
|
return interaction.reply({ content: target.toString(), ephemeral: false, fetchReply: true }).then(m => setTimeout(() => m.delete(), 5000));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Mention;
|