Add override for bot owner and server owner #135

Merged
Vylpes merged 1 commit from 131-setup-command-requires-moderator-role-which-might-not-actually-exist-for-the-server into develop 2022-04-21 17:19:03 +01:00
Showing only changes of commit 0fceab7ba5 - Show all commits

View file

@ -40,6 +40,7 @@ export class Util {
const requiredRoles = itemToUse.Command.Roles;
if (message.author.id != process.env.BOT_OWNERID && message.author.id != message.guild.ownerId) {
for (const i in requiredRoles) {
if (message.guild) {
const setting = await SettingsHelper.GetSetting(`role.${requiredRoles[i]}`, message.guild?.id);
@ -55,6 +56,7 @@ export class Util {
}
}
}
}
const context: ICommandContext = {
name: name,