Fix the blacklist thing

This commit is contained in:
loicbersier 2020-04-27 19:44:44 +02:00
parent 6365ed6003
commit 5850bebad3
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class guildCreateListener extends Listener {
.setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`) .setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`)
.setTimestamp(); .setTimestamp();
const blacklist = await userBlacklist.findOne({where: {userID:guild.owner.id}}); const blacklist = await userBlacklist.findOne({where: {userID:guild.id}});
if (blacklist) { if (blacklist) {
guild.leave(); guild.leave();

View file

@ -32,7 +32,7 @@ class guildCreateListener extends Listener {
.setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`) .setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`)
.setTimestamp(); .setTimestamp();
const blacklist = await userBlacklist.findOne({where: {userID:guild.owner.id}}); const blacklist = await userBlacklist.findOne({where: {userID:guild.id}});
if (blacklist) { if (blacklist) {
guild.leave(); guild.leave();