From 9732bbcb47c259abc0d00cc22319633ab8ebe644 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 11 Feb 2024 14:59:46 +1100 Subject: [PATCH] fix: Use user.id instead of just user --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 2990fc4..96c7e34 100644 --- a/bot.py +++ b/bot.py @@ -551,7 +551,7 @@ async def adduser(ctx, user: discord.User): if not support.is_server_valid(str(server)): await ctx.response.send_message("This server is not registered",ephemeral=True) return - result = await support.addMemberToTicket(user,str(ctx.channel.id), str(ctx.guild.id)) + result = await support.addMemberToTicket(user.id,str(ctx.channel.id), str(ctx.guild.id)) await ctx.response.send_message(result,ephemeral=True) @tree.command(name="removeuser", description="Remove a user from a ticket") @@ -564,7 +564,7 @@ async def removeuser(ctx, user: discord.User): if not support.is_server_valid(str(server)): await ctx.response.send_message("This server is not registered",ephemeral=True) return - result = await support.removeMemberFromTicket(user,str(ctx.channel.id), str(ctx.guild.id)) + result = await support.removeMemberFromTicket(user.id,str(ctx.channel.id), str(ctx.guild.id)) await ctx.response.send_message(result,ephemeral=True)