If I have the user object, how would I get the tag of the user? For example, if I wanted to print something like CircuitSacul#1111
, I would use something like
print(f"{owner.name}:#{owner.tag}")
However, I get the error that "User object has no attribute 'tag'".
This is the user's discriminator:
@bot.command()
async def tag(ctx):
await ctx.send(ctx.author.discriminator)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With