Skip to content

Commit

Permalink
Add premium guilds (#960)
Browse files Browse the repository at this point in the history
* Add premium guilds

* Add premium_since to member object

* Add new premium guild message types

* Resolving @msciotti's reviews

* @Geo1088's suggestion

Should have read it all before my last commit
  • Loading branch information
AL1L authored and msciotti committed May 30, 2019
1 parent d0f67d5 commit 3d8cca0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/resources/Channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ Represents a message sent in a channel within Discord.
| CHANNEL_ICON_CHANGE | 5 |
| CHANNEL_PINNED_MESSAGE | 6 |
| GUILD_MEMBER_JOIN | 7 |
| USER_PREMIUM_GUILD_SUBSCRIPTION | 8 |
| USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 | 9 |
| USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 | 10 |
| USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 | 11 |

###### Message Activity Structure

Expand Down
12 changes: 12 additions & 0 deletions docs/resources/Guild.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Guilds in Discord represent an isolated collection of users and channels, and ar
| vanity\_url\_code | ?string | the vanity url code for the guild |
| description | ?string | the description for the guild |
| banner | ?string | [banner hash](#DOCS_REFERENCE/image-formatting) |
| premium_tier | integer | [premium tier](#DOCS_REFERENCE/guild-object-premium-tier) |
| premium_subscription_count? | integer | the total number of users currently boosting this server |

** \* These fields are only sent within the [GUILD_CREATE](#DOCS_TOPICS_GATEWAY/guild-create) event **

Expand Down Expand Up @@ -79,6 +81,15 @@ Guilds in Discord represent an isolated collection of users and channels, and ar
| HIGH | 3 | (╯°□°)╯︵ ┻━┻ - must be a member of the server for longer than 10 minutes |
| VERY_HIGH | 4 | ┻━┻ミヽ(ಠ益ಠ)ノ彡┻━┻ - must have a verified phone number |

###### Premium Tier

| Level | Integer |
| ----- | ------- |
| NONE | 0 |
| TIER_1 | 1 |
| TIER_2 | 2 |
| TIER_3 | 3 |

###### Example Guild

```json
Expand Down Expand Up @@ -148,6 +159,7 @@ A partial [guild](#DOCS_RESOURCES_GUILD/guild-object) object. Represents an Offl
| nick? | string | this users guild nickname (if one is set) |
| roles | array of snowflakes | array of [role](#DOCS_TOPICS_PERMISSIONS/role-object) object ids |
| joined_at | ISO8601 timestamp | when the user joined the guild |
| premium_since | ?ISO8601 timestamp | when the user used their Nitro boost on the server |
| deaf | boolean | whether the user is deafened in voice channels |
| mute | boolean | whether the user is muted in voice channels |

Expand Down

0 comments on commit 3d8cca0

Please sign in to comment.