Can now emit event
This commit is contained in:
parent
997acccd01
commit
0e91a42f4a
1 changed files with 24 additions and 0 deletions
24
commands/owner/emit.js
Normal file
24
commands/owner/emit.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
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}`);
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue