Discord.py get user object from id/tag

后端 未结 3 850
南方客
南方客 2021-01-14 22:11

So i\'m trying to get a user object from an id or tag, however i am using a user account not a bot account so i cant use get_user_info() Is there any way to

3条回答
  •  心在旅途
    2021-01-14 22:41

    You can use:

    ctx.message.server.get_member("id") or message.server.get_member("id")
    

    This will return you a discord.Member object.

提交回复
热议问题