I tried client.accept_invite() but It seems like discord doesn't allow that instead it says Guild Add Member should be used

半城伤御伤魂 提交于 2019-12-24 21:12:10

问题


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()?


回答1:


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

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.



来源:https://stackoverflow.com/questions/51764308/i-tried-client-accept-invite-but-it-seems-like-discord-doesnt-allow-that-inst

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!