Skip to content

Conversation

@panley01
Copy link
Contributor

No description provided.

@panley01 panley01 changed the title Document error code 30011 Document error code 30011 & managed field for channels Jan 19, 2023
@panley01
Copy link
Contributor Author

Added commit to include the managed field for channel objects.
This field is an optional boolean that is true if the channel is a type 3 channel created via the gdm.join OAuth2 scope.

@advaith1
Copy link
Contributor

would be nice if the endpoint's now-incorrect description is fixed sometime, by revisiting that PR or in a new one (the group DMs are displayed in the client now)

@panley01
Copy link
Contributor Author

panley01 commented Jan 20, 2023

would be nice if the endpoint's now-incorrect description is fixed sometime, by revisiting that PR or in a new one (the group DMs are displayed in the client now)

@advaith1 Great point, these DMs are shown in-client & I've updated the user reference in this PR to reflect this.

image

## Create Group DM % POST /users/@me/channels

Create a new group DM channel with multiple users. Returns a [DM channel](#DOCS_RESOURCES_CHANNEL/channel-object) object. This endpoint was intended to be used with the now-deprecated GameBridge SDK. DMs created with this endpoint will not be shown in the Discord client. Fires a [Channel Create](#DOCS_TOPICS_GATEWAY_EVENTS/channel-create) Gateway event.
Create a new group DM channel with multiple users. Returns a [DM channel](#DOCS_RESOURCES_CHANNEL/channel-object) object. This endpoint was intended to be used with the now-deprecated GameBridge SDK. Fires a [Channel Create](#DOCS_TOPICS_GATEWAY_EVENTS/channel-create) Gateway event.
Copy link
Contributor

@advaith1 advaith1 Jan 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the bot get actually a channel create event? I thought the bot was not in the created group

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Example payload:

{
    "id": "channel_id_here",
    "type": 3,
    "last_message_id": null,
    "flags": 0,
    "managed": true,
    "application_id": "application_id_here",
    "recipients": [
        {
            "id": "user_id_here",
            "username": "username_here",
            "avatar": null,
            "avatar_decoration": null,
            "discriminator": "0001",
            "public_flags": 0
        }
    ],
    "name": "app_name_here",
    "icon": null,
    "owner_id": "app_id_here"
}

@cheesycod
Copy link

Why exactly was this change made 🤔

Is it now OK to use create GDM and do other limitations (attachments etc) exist still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants