Fixed issue with warns not properly registering
This commit is contained in:
parent
f87b1afb38
commit
782073c203
1 changed files with 1 additions and 2 deletions
|
@ -24,8 +24,7 @@ module.exports = async () => {
|
||||||
warns: {}
|
warns: {}
|
||||||
});
|
});
|
||||||
await newGuild.save();
|
await newGuild.save();
|
||||||
}
|
} else if (guildDB && !guildDB.warns) {
|
||||||
if (!guildDB.warns) {
|
|
||||||
logger.log(`Creating warn object for guild ${id}...`);
|
logger.log(`Creating warn object for guild ${id}...`);
|
||||||
guildDB.set("warns", {});
|
guildDB.set("warns", {});
|
||||||
await guildDB.save();
|
await guildDB.save();
|
||||||
|
|
Loading…
Reference in a new issue