I'm just programming my own discord bot with python, and I have a kill command. All it does is that when you type *kill and mention someone (*kill @goose.mp4), it will give you a random scenario on how you kill them similar to the Dank Memer bot. I'm trying to get that ID of the user that was mentioned, which will be the second argument to the function. But I'm stuck. After reading through the API and searching this up multiple times, I've only been given how to get the ID of the author and ping them with the bot, not the person the author mentioned.
This is the code that I am currently using. One of the variables is given a value only for testing purposes.
if message.content.startswith('*kill'):
print("kill command recieved")
kill_mention_killer = message.author.mention
kill_mention_victm = 'some guy'
print(kill_mention_killer)
kill_responses = [kill_mention_killer + ' kills ' + kill_mention_victim]
kill_message = kill_responses[random.randint(-1, len(kill_responses) -1)]
await message.channel.send(kill_message)