通过用户名#discrim查找用户 [英] Finding a user by their username#discrim
问题描述
是否有可能获得您知道其用户名和身份但与您不在共同服务器中的某人的用户ID?
Is it possible to get someone's user ID who you know their username and discrim, but is not in a mutual server with you?
谢谢。
推荐答案
我不这样认为。因为这很容易被滥用,所以这是有道理的。想象一下所有垃圾邮件机器人,如果它们可以看到所有不和谐的用户。
I don't think so. It makes sense since this can easily be abused. Imagine all the spam bots if bots can see all discord users.
以下是使用 discord.py $ c获取用户信息的两种方法$ c>,但请注意,它们不能按您的要求使用。
Below are two ways to get user info using discord.py
, but note that they cannot be used as you ask.
client.get_user_info
可用于获取用户信息,即使您不共享服务器,但它将唯一的ID作为参数。
client.get_user_info
can be used to get user info even if you don't share a server, but it takes the unique ID as an argument.
server.get_member_named
返回唯一的用户ID,并使用用户名和可选的标识符作为输入,但是要求您与用户共享服务器/行会。
server.get_member_named
returns the unique user ID and takes username plus the optional discriminator as input, but requires that you share server/guild with the user to work.
这篇关于通过用户名#discrim查找用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!