mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 08:41:25 +03:00
Command handler stuff, presences, other stuff
This commit is contained in:
36
src/commands/new.js
Normal file
36
src/commands/new.js
Normal 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);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user