mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 18:41:26 +03:00
Update i18n (and fix commands)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -4,7 +4,7 @@ const { footer } = require('../utils/discord');
|
||||
|
||||
module.exports = class CloseCommand 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.close.name'),
|
||||
@@ -27,7 +27,7 @@ module.exports = class CloseCommand 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);
|
||||
|
||||
}
|
||||
};
|
@@ -6,7 +6,7 @@ const { wait } = require('../utils');
|
||||
|
||||
module.exports = class NewCommand 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.new.name'),
|
||||
@@ -30,7 +30,7 @@ module.exports = class NewCommand 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);
|
||||
|
||||
const editOrSend = async (msg, content) => {
|
||||
if (msg) return await msg.edit(content);
|
||||
|
@@ -4,7 +4,7 @@ const { MessageAttachment } = require('discord.js');
|
||||
|
||||
module.exports = class SettingsCommand 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.settings.name'),
|
||||
@@ -19,7 +19,7 @@ module.exports = class SettingsCommand extends Command {
|
||||
async execute(message) {
|
||||
|
||||
let settings = await message.guild.settings;
|
||||
const i18n = this.client.i18n.get(settings.locale);
|
||||
const i18n = this.client.i18n.getLocale(settings.locale);
|
||||
|
||||
let attachments = [ ...message.attachments.values() ];
|
||||
|
||||
|
Reference in New Issue
Block a user