dev bypass to premium

This commit is contained in:
Erik 2020-08-06 01:12:54 +03:00
parent 3fe45a600e
commit 4dd7512d1e

View File

@ -99,7 +99,7 @@ class SettingsCommand extends Command {
return message.respond(msg, { emoji: 'success' });
}
if (setting.premium > message.guild.premium) return message.formattedRespond('PREMIUM_REQUIRED', { emoji: 'failure', params: { tier: message.guild.premium, required: setting.premium } });
if (setting.premium > message.guild.premium && !message.author.developer) return message.formattedRespond('PREMIUM_REQUIRED', { emoji: 'failure', params: { tier: message.guild.premium, required: setting.premium } });
const response = await setting.handle(message, parameters);
if(response.ignore) return undefined;