This commit is contained in:
loicbersier 2020-04-28 22:57:50 +02:00
commit e13f483866
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ class serverBlacklistCommand extends Command {
}
async exec(message, args) {
const blacklist = await guildBlacklist.findOne({where: {guildID:message.author.id}});
const blacklist = await guildBlacklist.findOne({where: {guildID:args.guildID}});
if (!blacklist) {
const body = {guildID: args.guildID};

View file

@ -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();

View file

@ -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();