DiscordTickets/src/commands/user/create.js
Isaac 83ab003db5
fix command options & types
and start on closing
2022-10-11 21:24:09 +01:00

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
}
};