通过用户名查找用户#discrim

Finding a user by their username#discrim(通过用户名查找用户#discrim)
本文介绍了通过用户名查找用户#discrim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

限时送ChatGPT账号..

是否有可能获取您知道他们的用户名和区别但与您不在共同服务器中的某人的用户 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 获取用户信息的两种方法,但请注意,它们不能按您的要求使用.

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How do I make a list of all members in a discord server using discord.py?(如何使用 discord.py 列出不和谐服务器中的所有成员?)
how to change discord.py bot activity(如何更改 discord.py 机器人活动)
Issues with getting VoiceChannel.members and Guild.members to return a full list(让 VoiceChannel.members 和 Guild.members 返回完整列表的问题)
Add button components to a message (discord.py)(将按钮组件添加到消息(discord.py))
on_message() and @bot.command issue(on_message() 和@bot.command 问题)
How to edit a message in discord.py(如何在 discord.py 中编辑消息)