import { MessageEmbed } from 'discord.js'
import { ICommand, CommandErrors } from 'wokcommands'
// Best practice for the built-in help menu
description: 'Replies with "Pong!"',
// Invoked when the command is actually ran
callback: ({ message }) => {
// Invoked when there is an error when running this command
error: ({ error, command, message, info }) => {
// "error" holds one of the strings mentioned in the above list
if (error === CommandErrors.COMMAND_DISABLED) {
// For example we can now create and send a custom embed
const embed = new MessageEmbed()
.setTitle('Command disabled')