fix: Use user.id instead of just user
All checks were successful
Build Docker / Build Docker (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2024-02-11 14:59:46 +11:00
parent 4ce47fc74e
commit 9732bbcb47
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

4
bot.py
View File

@ -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)