問(wèn)題描述
是否有可能獲取您知道他們的用戶(hù)名和區(qū)別但與您不在共同服務(wù)器中的某人的用戶(hù) 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?
謝謝.
推薦答案
我不這么認(rèn)為.這是有道理的,因?yàn)檫@很容易被濫用.如果機(jī)器人可以看到所有不和諧的用戶(hù),想象一下所有的垃圾郵件機(jī)器人.
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
獲取用戶(hù)信息的兩種方法,但請(qǐng)注意,它們不能按您的要求使用.
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
可用于獲取用戶(hù)信息,即使您不共享服務(wù)器,但它以唯一 ID 作為參數(shù).
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
返回唯一的用戶(hù) ID,并將用戶(hù)名和可選的鑒別符作為輸入,但要求您與用戶(hù)共享服務(wù)器/公會(huì)才能工作.
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.
這篇關(guān)于通過(guò)用戶(hù)名查找用戶(hù)#discrim的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!