diff --git a/structure/client/DiscordClient.js b/structure/client/DiscordClient.js index 34c9595..7aee72c 100644 --- a/structure/client/DiscordClient.js +++ b/structure/client/DiscordClient.js @@ -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)) {