Answers for "get user from mention discord.py"

7

discord py get user by id

user = bot.get_user(user_id)
Posted by: Guest on May-21-2020
6

how to get username with userid discord.py

username = client.get_user(user_id)
Posted by: Guest on December-02-2020
2

discord.py mention user

#discord.py rewrite
#python 3+
bot.command(name='pingme', help='pings the author of the message')
async def pingme(ctx):
	#to get a member from a 'ctx' object is ctx.author
	#from there its .mention will mention (ping) the user
	#also there are others like .id
	await ctx.send(ctx.author.mention)
Posted by: Guest on January-19-2021
0

python discord mention user

await message.channel.send(message.author.mention)
Posted by: Guest on July-24-2020

Code answers related to "get user from mention discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language