Added conventional (non-slash) commands support for settings command

Settings server plugin postponed.
This commit is contained in:
Isaac
2021-03-21 22:52:32 +00:00
parent 57ca04288b
commit 04397b3261
6 changed files with 91 additions and 35 deletions

21
src/commands/_settings.js Normal file
View File

@@ -0,0 +1,21 @@
const Command = require('../modules/commands/command');
module.exports = class SettingsCommand extends Command {
constructor(client) {
const i18n = client.i18n.get(client.config.locale);
super(client, {
internal: true,
slash: false,
name: i18n('commands.settings.name'),
description: i18n('commands.settings.description'),
});
}
async execute({ guild, member, channel, args }, message) {
let settings = await guild.settings;
const i18n = this.client.i18n.get(settings.locale);
message.channel.send('Settings!');
}
};