Update guildMemberRemove.js
ID Support, Boolean Changes
This commit is contained in:
1 parent
2cc316aafb
commit
e6d63db3a9
1 file changed
+2
-2
@@ -9,8 +9,8 @@ const supportbot = yaml.load(fs.readFileSync('./supportbot-config.yml', 'utf8'))
|
|||||||
|
|
||||||
module.exports = async (bot, member) => {
|
module.exports = async (bot, member) => {
|
||||||
|
|
||||||
if (supportbot.SystemMessages === "true") {
|
if (supportbot.SystemMessages) {
|
||||||
const SystemChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.SystemMessage_Channel)
|
const SystemChannel = member.guild.channels.cache.find(channel => channel.name === supportbot.SystemMessage_Channel) || member.guild.channels.cache.get(supportbot.SystemMessage_Channel)
|
||||||
|
|
||||||
if (!SystemChannel) return;
|
if (!SystemChannel) return;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user