Update i18n (and fix commands)

This commit is contained in:
Isaac
2021-04-27 11:34:34 +01:00
parent 0991a48d3d
commit fba2b579fb
10 changed files with 31 additions and 21 deletions

View File

@@ -3,7 +3,7 @@ const Command = require('../modules/commands/command');
module.exports = class BlacklistCommand extends Command {
constructor(client) {
const i18n = client.i18n.get(client.config.locale);
const i18n = client.i18n.getLocale(client.config.locale);
super(client, {
internal: true,
name: i18n('commands.blacklist.name'),
@@ -27,7 +27,7 @@ module.exports = class BlacklistCommand extends Command {
async execute(message, args) {
let settings = await message.guild.settings;
const i18n = this.client.i18n.get(settings.locale);
const i18n = this.client.i18n.getLocale(settings.locale);
let member = message.mentions.members.first();