fix: Use user.id instead of just user
All checks were successful
Build Docker / Build Docker (push) Successful in 22s
All checks were successful
Build Docker / Build Docker (push) Successful in 22s
This commit is contained in:
parent
4ce47fc74e
commit
9732bbcb47
4
bot.py
4
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user