From 3d8cca0c3c5cf0a42458c9d7c6137534d12a46bc Mon Sep 17 00:00:00 2001 From: Allen Lantz Date: Wed, 29 May 2019 19:09:38 -0500 Subject: [PATCH] Add premium guilds (#960) * 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 --- docs/resources/Channel.md | 4 ++++ docs/resources/Guild.md | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/resources/Channel.md b/docs/resources/Channel.md index 245966d3c0..7a2266b06a 100644 --- a/docs/resources/Channel.md +++ b/docs/resources/Channel.md @@ -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 diff --git a/docs/resources/Guild.md b/docs/resources/Guild.md index 120074c02a..be780998d3 100644 --- a/docs/resources/Guild.md +++ b/docs/resources/Guild.md @@ -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 ** @@ -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 @@ -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 |