Command handler stuff, presences, other stuff

This commit is contained in:
Isaac
2021-02-18 18:41:35 +00:00
parent 7c0b1311dc
commit bdcff221db
15 changed files with 435 additions and 109 deletions

36
src/commands/new.js Normal file
View File

@@ -0,0 +1,36 @@
const {
Command,
OptionTypes
} = require('../modules/commands');
module.exports = class NewCommand extends Command {
constructor(client) {
super(client, {
internal: true,
name: 'new',
description: 'Create a new ticket',
options: [
// {
// name: 'category',
// type: OptionTypes.STRING,
// description: 'The category you would like to create a new ticket for',
// required: true,
// },
{
name: 'topic',
type: OptionTypes.STRING,
description: 'The topic of the ticket',
required: false,
}
]
});
}
async execute(data) {
console.log(data.args);
console.log(data.channel.name);
console.log(data.member.user.tag);
console.log(data.guild.name);
console.log(data.token);
}
};