Is there any way to send a friend request with discord.py?

女生的网名这么多〃 提交于 2021-01-29 11:00:49

问题


I want to add a discord bot to a group chat, and the only way I know how is to add them as a friend first. How do I make a bot send a friend request? I'm pretty sure its possible.


回答1:


Bots cannot have friends

https://discordapp.com/developers/#bot-vs-user-accounts

Bot accounts have a few differences in comparison to normal user accounts, namely:

Bots are added to guilds through the OAuth2 API, and cannot accept normal invites.

Bots cannot have friends, nor be added to or join Group DMs.

Bots do not have a maximum number of Guilds (unlike user accounts, which are limited to 100).

Bots have an entirely separate set of Rate Limits.



来源:https://stackoverflow.com/questions/52355348/is-there-any-way-to-send-a-friend-request-with-discord-py

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