diff --git a/Xiao.js b/Xiao.js index eb7ebe7c..93007dc7 100644 --- a/Xiao.js +++ b/Xiao.js @@ -8,6 +8,7 @@ const client = new Client({ owner: OWNERS.split(','), invite: INVITE, disableMentions: 'everyone', + partials: ['GUILD_MEMBER'], ws: { intents: [Intents.NON_PRIVILEGED, 'GUILD_MEMBERS'] } }); const { formatNumber } = require('./util/Util'); @@ -153,6 +154,7 @@ client.on('guildDelete', async guild => { client.on('guildMemberRemove', async member => { if (member.id === client.user.id) return null; + if (member.partial) await member.fetch(); 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 7a50526d..5ecab73c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.37.4", + "version": "119.37.5", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {