You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/owner/emit.js

24 lines
665 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class dmCommand extends Command {
constructor(client) {
super(client, {
name: 'emit',
group: 'owner',
memberName: 'emit',
aliases: ['event', 'emitevent'],
description: 'Trigger an event',
ownerOnly: true,
args: [
{
key: 'event',
prompt: 'Wich event do you want to trigger?',
type: 'string',
}
]
});
}
async run(message, { event }) {
this.client.emit(`${event}`);
}
};