-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.cmd.ts
31 lines (28 loc) · 1.11 KB
/
temp.cmd.ts
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
import type { CacheType, ChatInputCommandInteraction } from "discord.js"
import { EnfinityClient } from '../client/enfinity';
import { CommandTemplate } from './cmds.temp';
export default class SampleCommand extends CommandTemplate {
constructor() {
super({
name: 'some_name', // Replace this with the command name
description: 'some_description', // Replace this with the command description
category: 'some_category', // Replace this with the command category
cooldown: 0, // Replace this with the command cooldown
permissions: {
user: ['SendMessages'],
bot: ['SendMessages']
}
})
}
public async exec(bot: EnfinityClient, interaction: ChatInputCommandInteraction<CacheType>): Promise<any> {
return interaction.reply({
embeds: [
new bot.MessageEmbed({
title: 'Sample Command',
color: bot.config.colors.base,
description: 'Sample command description'
})
]
})
}
}