diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index 7353b7a..cfca3f4 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -168,8 +168,10 @@ class Titan(discord.Client): await self.socketio.on_guild_member_remove(member) async def on_member_update(self, memberbefore, memberafter): - await self.database.update_guild_member(memberafter) - await self.socketio.on_guild_member_update(memberafter) + if set(memberbefore.roles) != set(memberafter.roles) or memberbefore.avatar != memberafter.avatar or memberbefore.nick != memberafter.nick or memberbefore.name != memberafter.name or memberbefore.status != memberafter.status: + if memberbefore.status == memberafter.status: + await self.database.update_guild_member(memberafter) + await self.socketio.on_guild_member_update(memberafter) async def on_member_ban(self, member): if self.user.id == member.id: