From 522557dc4e5c60ec3a96795b205006a59017bba9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 9 Apr 2020 14:40:10 -0400 Subject: [PATCH] Ignore Leave Message if the bot is the one leaving --- Xiao.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Xiao.js b/Xiao.js index d649225e..fa21f88e 100644 --- a/Xiao.js +++ b/Xiao.js @@ -73,6 +73,7 @@ client.on('message', async msg => { }); client.on('guildMemberRemove', async member => { + if (member.id === client.user.id) return null; const channel = member.guild.systemChannel; if (!channel || !channel.permissionsFor(client.user).has('SEND_MESSAGES')) return null; if (channel.topic && channel.topic.includes('')) return null; diff --git a/package.json b/package.json index db1659fd..8c497a51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.19.14", + "version": "112.19.15", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {