Skip to content

Commit

Permalink
Add guild members chunk (discord#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha authored and jhgg committed May 12, 2016
1 parent f8a9afb commit 2d24915
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/topics/GATEWAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Used to tell clients to reconnect to another gateway. Clients should immediately

### Gateway Request Guild Members

Used to request offline members for a guild. When initially connecting, the gateway will only send offline members if a guild has less than the `large_threshold` members (value in the [Gateway Identify](#DOCS_GATEWAY/gateway-identify)). If a client wishes to receive all members, they need to explicitly request them.
Used to request offline members for a guild. When initially connecting, the gateway will only send offline members if a guild has less than the `large_threshold` members (value in the [Gateway Identify](#DOCS_GATEWAY/gateway-identify)). If a client wishes to receive all members, they need to explicitly request them. The server will send a [Guild Members Chunk](#DOCS_GATEWAY/guild-members-chunk) event in response.

###### Gateway Request Guild Members Structure

Expand Down Expand Up @@ -365,6 +365,17 @@ Sent when a guild member is updated.
| roles | array of [role](#DOCS_PERMISSIONS/role-object) objects | user roles |
| user | a [user](#DOCS_USER/user-object) object | the user |

### Guild Members Chunk

Sent in response to [Gateway Request Guild Members](#DOCS_GATEWAY/gateway-request-guild-members).

###### Guild Members Chunk Event Fields

| Field | Type | Description |
|-------|------|-------------|
| guild_id | snowflake | the id of the guild |
| members | array of [guild members](#DOCS_GUILD/guild-member-object) | set of guild members |

### Guild Role Create

Sent when a guild role is created.
Expand Down

0 comments on commit 2d24915

Please sign in to comment.