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) {
|
2022-10-11 23:24:09 +03:00
|
|
|
// 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
|
|
|
};
|