如何获取提到的用户的ID(Discord.py) [英] How to get ID of a mentioned user (Discord.py)
本文介绍了如何获取提到的用户的ID(Discord.py)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
@bot.command()
async def id(ctx, a:str): #a = @user
如何获取命令中提到的用户ID,并将其输出为:
how would I get the ID of a user mentioned in the command, and output it as:
await ctx.send(id)
推荐答案
查看全文