aboutsummaryrefslogtreecommitdiff
path: root/bot/src/events/GuildBanRemove.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/events/GuildBanRemove.js')
-rw-r--r--bot/src/events/GuildBanRemove.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/src/events/GuildBanRemove.js b/bot/src/events/GuildBanRemove.js
index 976145d..9b3524c 100644
--- a/bot/src/events/GuildBanRemove.js
+++ b/bot/src/events/GuildBanRemove.js
@@ -6,7 +6,7 @@ export default {
async execute(ban) {
try {
const guildSetting = await guildSettings.findOne({ where: { guildID: ban.guild.id } });
- if (!guildSetting || !guildSetting.logChannelID) return;
+ if (!guildSetting || !guildSetting.memberLogChannelID) return;
const logEmbed = new EmbedBuilder()
.setAuthor({ name: 'AleeBot Logging', iconURL: ban.guild.client.user.avatarURL() })
@@ -18,7 +18,7 @@ export default {
.setColor('#ff021b')
.setTimestamp();
- let banMessage = ban.guild.client.channels.cache.get(guildSetting.logChannelID);
+ let banMessage = ban.guild.client.channels.cache.get(guildSetting.memberLogChannelID);
if (!banMessage) return;
await banMessage.send({ embeds: [logEmbed] });