我尝试了client.accept_invite()但似乎不和谐不允许这样做,而是说应该使用公会添加成员 [英] I tried client.accept_invite() but It seems like discord doesn't allow that instead it says Guild Add Member should be used

查看:113
本文介绍了我尝试了client.accept_invite()但似乎不和谐不允许这样做,而是说应该使用公会添加成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试过client.accept_invite(),但是不和谐的API说
公会添加成员应改为使用。我不了解公会添加成员的工作原理,有什么帮助吗?我该如何使用与accept_invite()相同的功能?

I've tried client.accept_invite(), but discord API says that Guild Add Member should be used instead. I don't understand the concept in which Guild Add Member works, any help? How do I use the function same as accept_invite()?

推荐答案

您不这样做。 添加公会成员允许您的机器人(已添加到服务器)使其他人可以访问该服务器。

You don't. Add Guild Member allows your bot, which has been added to a server, to give other people access to the server.

故意删除了通过API接受邀请的功能。我不希望使用用户名/密码登录API的功能也不会很长。 Discord不允许使用用户自动化/自我bot(运行使用用户帐户的bot),并且它们的API也在更改以反映这一点。

The ability to accept invites through the API has been intentionally removed. I don't expect the ability to log into the API with a username/password to remain long either. User automation/self bots (running a bot that uses a user account) is not allowed by Discord, and their API is changing to reflect that.

需要此功能的原因,请随时详细询问该问题。

If you have some other reason for needing this functionality, feel free to ask about that problem in more detail.

这篇关于我尝试了client.accept_invite()但似乎不和谐不允许这样做,而是说应该使用公会添加成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆