mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
Parse JSON if its a string
This commit is contained in:
parent
e027e1ef84
commit
bdd172ea1c
@ -87,6 +87,8 @@ module.exports = class CommandManager {
|
||||
const cmd = this.commands.find(cmd => cmd.aliases.includes(cmd_name));
|
||||
if (!cmd) return;
|
||||
|
||||
if (typeof settings.blacklist === 'string') settings.blacklist = JSON.parse(settings.blacklist);
|
||||
|
||||
let is_blacklisted = false;
|
||||
if (settings.blacklist?.includes(message.author.id)) {
|
||||
is_blacklisted = true;
|
||||
|
Loading…
Reference in New Issue
Block a user