Comment obtenir le nom d'utilisateur avec UserId Discord.py
username = client.get_user(user_id)
Swetsen
username = client.get_user(user_id)
#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)
await message.channel.send(message.author.mention)
myid = '<@201909896357216256>'
await client.send_message(message.channel, ' : %s is the best ' % myid)