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)