mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-09 22:33:09 +02:00
83ab003db5
and start on closing
22 lines
537 B
JavaScript
22 lines
537 B
JavaScript
const { UserCommand } = require('@eartharoid/dbf');
|
|
|
|
module.exports = class CreateUserCommand extends UserCommand {
|
|
constructor(client, options) {
|
|
const nameLocalizations = {};
|
|
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.user.create.name')));
|
|
|
|
super(client, {
|
|
...options,
|
|
dmPermission: false,
|
|
name: nameLocalizations['en-GB'],
|
|
nameLocalizations,
|
|
});
|
|
}
|
|
|
|
async run(interaction) {
|
|
// TODO: isStaff?
|
|
// TODO: user->create
|
|
// select category
|
|
// send button
|
|
}
|
|
}; |