From 6c120f8782a8da783fc22c2b2443dce0c75136fb Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 17 Apr 2023 23:39:34 -0400 Subject: [PATCH] fixes --- autowl/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autowl/bot.py b/autowl/bot.py index 3d0cfb5..8138134 100644 --- a/autowl/bot.py +++ b/autowl/bot.py @@ -59,7 +59,7 @@ class Bot(commands.Bot): await self.tree.sync() async def on_member_update(self, before: discord.Member, after: discord.Member): - disusername = after.user.nick if after.user.nick is not None else after.user.name + disusername = after.nick if after.nick is not None else after.name findcur = self.squadjs.cursor(buffered=True) findcur.execute(self.squadjs_findByDiscordID, [f"{after.id}"]) if findcur.arraysize <= 0: