forked from Galactic/galactic-bot
dev bypass to premium
This commit is contained in:
parent
3fe45a600e
commit
4dd7512d1e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user