-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcmd
41 lines (39 loc) · 1.64 KB
/
cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const { EmbedBuilder, ApplicationCommandType, WebhookClient } = require("discord.js"); // packages
const { check_if_dj } = require("../../Util/functions");
const weblog = require('../../Config/webhook.json');
const wbc = new WebhookClient({
id: weblog.cmdl.id,
token: weblog.cmdl.token,
});
module.exports = {
name: 'waifu-', // name of the command
description: '', // description of the command
usage: '/waifu-', // usage of the cmd
category: '', // cmd category
developer: false, // false if the command is for public
type: ApplicationCommandType.ChatInput, // chatinput
cooldown: 3000, // cooldown of the commands
default_member_permissions: '', // discord perms user to see the cmd
userPerms: [''], // user perms need to use the command
botPerms: ['SendMessages', 'ReadMessageHistory', 'Speak', 'Connect', 'UseExternalEmojis', 'AddReactions', 'EmbedLinks', 'AttachFiles'], // bot permissions
inVoiceChannel: true,
sameVoice: true,
options: [], // options string
execute: async (client, interaction) => {
wbc.send(`[slashCommand] :: **Name used by ${interaction.user.tag} from ${interaction.guild.name}**`);
try {
} catch (e) {
console.log(e)
await interaction.reply({
embeds:
[
new EmbedBuilder()
.setTitle(client.emoji.warning + " Error!")
.setDescription("*n error occured!" + `${e}`)
.setColor(client.important.ERR_COLOR)
],
ephemeral: true
})
}
}
}