Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add premium guilds #960

Merged
merged 5 commits into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 users subscribed to the guilds premium
AL1L marked this conversation as resolved.
Show resolved Hide resolved

** \* 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 subscribed to the guilds premium |
AL1L marked this conversation as resolved.
Show resolved Hide resolved
| deaf | boolean | whether the user is deafened in voice channels |
| mute | boolean | whether the user is muted in voice channels |

Expand Down