问题
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