This commit is contained in:
Skillet 2023-04-17 23:39:34 -04:00
parent b3fe4a825b
commit 6c120f8782

View File

@ -59,7 +59,7 @@ class Bot(commands.Bot):
await self.tree.sync() await self.tree.sync()
async def on_member_update(self, before: discord.Member, after: discord.Member): 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 = self.squadjs.cursor(buffered=True)
findcur.execute(self.squadjs_findByDiscordID, [f"{after.id}"]) findcur.execute(self.squadjs_findByDiscordID, [f"{after.id}"])
if findcur.arraysize <= 0: if findcur.arraysize <= 0: