DiscordTickets/src/commands/user/create.js

22 lines
537 B
JavaScript
Raw Normal View History

2022-08-02 23:13:32 +03:00
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,
});
}
2022-08-14 01:58:41 +03:00
async run(interaction) {
// TODO: isStaff?
// TODO: user->create
2022-08-14 01:58:41 +03:00
// select category
// send button
}
2022-08-02 23:13:32 +03:00
};