Localisation changes

Locale is global not per guild
This commit is contained in:
Isaac
2021-03-16 11:16:08 +00:00
parent b904a4ad3d
commit 57ca04288b
3 changed files with 9 additions and 13 deletions

View File

@@ -4,18 +4,18 @@ const Command = require('../modules/commands/command');
module.exports = class NewCommand extends Command {
constructor(client) {
const i18n = client.i18n.get();
const i18n = client.i18n.get(client.config.locale);
super(client, {
internal: true,
name: i18n('commands.new.name'),
description: i18n('commands.new.description'),
options: [
// {
// name: i18n('commands.new.options.category.name'),
// type: OptionTypes.STRING,
// description: i18n('commands.new.options.topic.description'),
// required: true,
// },
{
name: i18n('commands.new.options.category.name'),
type: OptionTypes.STRING,
description: i18n('commands.new.options.topic.description'),
required: true,
},
{
name: i18n('commands.new.options.topic.name'),
type: OptionTypes.STRING,