bugfix for prefix formatting
This commit is contained in:
parent
69f0684d39
commit
a57365c767
@ -1,4 +1,5 @@
|
||||
const { Client } = require('discord.js');
|
||||
const escapeRegex = require('escape-string-regexp');
|
||||
|
||||
const options = require('../../options.json');
|
||||
|
||||
@ -16,6 +17,7 @@ const ModerationManager = require('../moderation/ModerationManager.js');
|
||||
const { Guild, GuildMember, User, Message, TextChannel, Role } = require('../../structure/extensions/'); //eslint-disable-line no-unused-vars
|
||||
const { Command, Observer, Inhibitor, Setting } = require('../../structure/interfaces/');
|
||||
const { DefaultGuild, DefaultUser } = require('../../util/defaults/');
|
||||
const { Emojis } = require('../../util/');
|
||||
|
||||
class DiscordClient extends Client {
|
||||
|
||||
@ -75,7 +77,6 @@ class DiscordClient extends Client {
|
||||
|
||||
format(language, index, parameters = { }, code = false) {
|
||||
|
||||
parameters.prefix = this.guild?.prefix;
|
||||
let template = this.localeLoader.template(language, index); //.languages[language][index];
|
||||
|
||||
for(const emoji of Object.keys(Emojis)) {
|
||||
|
Loading…
Reference in New Issue
Block a user