1#discord.py rewrite
2#python 3+
3bot.command(name='pingme', help='pings the author of the message')
4async def pingme(ctx):
5 #to get a member from a 'ctx' object is ctx.author
6 #from there its .mention will mention (ping) the user
7 #also there are others like .id
8 await ctx.send(ctx.author.mention)
1myid = '<@201909896357216256>'
2await client.send_message(message.channel, ' : %s is the best ' % myid)