forked from Supositware/Haha-Yes
Fix the blacklist thing
This commit is contained in:
parent
6365ed6003
commit
5850bebad3
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ class guildCreateListener extends Listener {
|
|||
.setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`)
|
||||
.setTimestamp();
|
||||
|
||||
const blacklist = await userBlacklist.findOne({where: {userID:guild.owner.id}});
|
||||
const blacklist = await userBlacklist.findOne({where: {userID:guild.id}});
|
||||
|
||||
if (blacklist) {
|
||||
guild.leave();
|
||||
|
|
|
@ -32,7 +32,7 @@ class guildCreateListener extends Listener {
|
|||
.setFooter(`I'm now in ${this.client.guilds.cache.size} servers!`)
|
||||
.setTimestamp();
|
||||
|
||||
const blacklist = await userBlacklist.findOne({where: {userID:guild.owner.id}});
|
||||
const blacklist = await userBlacklist.findOne({where: {userID:guild.id}});
|
||||
|
||||
if (blacklist) {
|
||||
guild.leave();
|
||||
|
|
Loading…
Reference in a new issue