discord py get user by id
user = bot.get_user(user_id)
discord py get user by id
user = bot.get_user(user_id)
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)
how to mention someone discord.py
myid = '<@201909896357216256>'
await client.send_message(message.channel, ' : %s is the best ' % myid)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us