discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.96k stars 1.26k forks source link

Unable to interact with managed group DMs created by Bot #836

Closed phumberdroz closed 5 years ago

phumberdroz commented 5 years ago

Hey,

I wanted to create private Group DMs via the API. When I tried this the Channels never show up in the client of the User thus the User is unable to interact with them.

This is the request used to create the channel/Group DM

curl -X POST \
  https://discordapp.com/api/users/@me/channels \
  -H 'Authorization: Bot ****************************' \
  -H 'Content-Type: application/json' \
  -d '{
    "access_tokens": ["****************************","****************************"],
    "nicks": {
        "*********": "user2",
        "*********": "user1"
    },
}'
eritbh commented 5 years ago

Have you hit the 10-per-bot limit on group DM channels? https://discordapp.com/developers/docs/resources/user#create-group-dm

phumberdroz commented 5 years ago

Not that I am aware of. Is there any endpoint I could validate that against? Since not even the first attempt worked.

GET /users/@me/channels does not work because the Owner is a bot.

But I am pretty certain that I did not reach that limit.

ghost commented 5 years ago

Group DMs are intentionally not shown in the client because they're intented to use with the Game SDK and thus meant to be used within games and not the Discord client.

phumberdroz commented 5 years ago

Well this should at least be documented then or ?

msciotti commented 5 years ago

Yeah, we should update the documentation and explain that and that this endpoint is """deprecated""". Not in the sense that we tend to remove it, from what I understand at least, but the previous GameSDK for which it was used has been deprecated/discontinued. I can update that.

phumberdroz commented 5 years ago

I created a feature request Link