Update guildMemberRemove.js

ID Support, Boolean Changes
This commit is contained in:
DuAnti7423 committed 2021-05-23 10:40:32 +02:00
1 parent 2cc316aafb
commit e6d63db3a9
1 file changed
+2 -2
+2 -2
View File
@@ -9,8 +9,8 @@ const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'))
module.exports = async (bot, member) => {
if (supportbot.SystemMessages === "true") {
const SystemChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.SystemMessage_Channel)
if (supportbot.SystemMessages) {
const SystemChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.SystemMessage_Channel) || member.guild.channels.cache.get(supportbot.SystemMessage_Channel)
if (!SystemChannel) return;