god dammit

This commit is contained in:
Essem 2022-12-12 11:36:08 -06:00
parent ed25116851
commit 14d5965caa
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
5 changed files with 18 additions and 20 deletions

View file

@ -7,7 +7,7 @@ class PrefixCommand extends Command {
const guild = await database.getGuild(this.guild.id);
if (this.args.length !== 0) {
if (!database) {
return "Setting a per-guild prefix is not possible on a stateless instance of esmBot!"
return "Setting a per-guild prefix is not possible on a stateless instance of esmBot!";
}
const owners = process.env.OWNER.split(",");
if (!this.member.permissions.has("ADMINISTRATOR") && !owners.includes(this.member.id)) {