We're writing a bot for our Discord Server which is supposed to mention the person that starts a specific command. For this I'd need the ID of the user, but can't figure out how to get it.
@bot.command()
async def name():
author = discord.User.id
await bot.say(str(author))
We tried it this way, since the documentation says, the ID of a user is in the class User. But the only thing we get is
<member 'id' of 'User' objects>
In our eyes we got the right param but can't get the ID itself? Do we need to convert it somehow?