From 11ccdfc0c0a15b7317819dfe175ac851d0c601e0 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Wed, 14 Jul 2021 16:56:33 -0600 Subject: [PATCH 01/11] Document banner & banner color --- docs/resources/User.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/resources/User.md b/docs/resources/User.md index 60347916b4..af7ee279a3 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -33,6 +33,8 @@ There are other rules and restrictions not shared here for the sake of spam and | bot? | boolean | whether the user belongs to an OAuth2 application | identify | | system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify | | mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify | +| banner? | ?string | the user's banner, or null if unset | identify | +| banner_color? | ?number | the user's banner color as a hex string prefixed with "#", or null if unset | identify | | locale? | string | the user's chosen language option | identify | | verified? | boolean | whether the email on this account has been verified | email | | email? | ?string | the user's email | email | @@ -51,6 +53,8 @@ There are other rules and restrictions not shared here for the sake of spam and "verified": true, "email": "nelly@discord.com", "flags": 64, + "banner": "06c16474723fe537c283b8efa61a30c8", + "banner_color": "#9b00ff", "premium_type": 1, "public_flags": 64 } From f3ed209e4ad3b78cb1c6b34233d6410629bf1499 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Wed, 14 Jul 2021 17:01:52 -0600 Subject: [PATCH 02/11] Document CDN endpoint --- docs/Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index e091ff6ebf..368c70d67c 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -293,7 +293,7 @@ Discord uses ids and hashes to render images in the client. These hashes can be | Guild Icon | icons/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_icon](#DOCS_RESOURCES_GUILD/guild-object).png \* | PNG, JPEG, WebP, GIF | | Guild Splash | splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Guild Discovery Splash | discovery-splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_discovery_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | -| Guild Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | +| Guild/User Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Default User Avatar | embed/avatars/[user_discriminator](#DOCS_RESOURCES_USER/user-object).png \*\* \*\*\* | PNG | | User Avatar | avatars/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_avatar](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF | | Application Icon | app-icons/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[icon](#DOCS_RESOURCES_APPLICATION/application-object).png | PNG, JPEG, WebP | From 523500a912ca7c8bcdbdc348433407c7ab6a5153 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Wed, 14 Jul 2021 17:02:47 -0600 Subject: [PATCH 03/11] Fix type def of user banner color --- docs/resources/User.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/User.md b/docs/resources/User.md index af7ee279a3..6d8ed6e73b 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -34,7 +34,7 @@ There are other rules and restrictions not shared here for the sake of spam and | system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify | | mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify | | banner? | ?string | the user's banner, or null if unset | identify | -| banner_color? | ?number | the user's banner color as a hex string prefixed with "#", or null if unset | identify | +| banner_color? | ?string | the user's banner color as a hex string prefixed with "#", or null if unset | identify | | locale? | string | the user's chosen language option | identify | | verified? | boolean | whether the email on this account has been verified | email | | email? | ?string | the user's email | email | From 0d2bd441645016cd1aef915eaba20d80b90b9f3d Mon Sep 17 00:00:00 2001 From: Daedalus Date: Wed, 14 Jul 2021 17:04:34 -0600 Subject: [PATCH 04/11] CDN endpoint fix --- docs/Reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index 368c70d67c..83d9f35726 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -293,7 +293,8 @@ Discord uses ids and hashes to render images in the client. These hashes can be | Guild Icon | icons/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_icon](#DOCS_RESOURCES_GUILD/guild-object).png \* | PNG, JPEG, WebP, GIF | | Guild Splash | splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Guild Discovery Splash | discovery-splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_discovery_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | -| Guild/User Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | +| Guild Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | +| User Banner | banners/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_banner](#DOCS_RESOURCES_USER/user-object).png | PNG, JPEG, WebP | | Default User Avatar | embed/avatars/[user_discriminator](#DOCS_RESOURCES_USER/user-object).png \*\* \*\*\* | PNG | | User Avatar | avatars/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_avatar](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF | | Application Icon | app-icons/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[icon](#DOCS_RESOURCES_APPLICATION/application-object).png | PNG, JPEG, WebP | From a91a300c274e33e7c1def2b1a9e153a264aab1dd Mon Sep 17 00:00:00 2001 From: Daedalus Date: Wed, 14 Jul 2021 17:05:59 -0600 Subject: [PATCH 05/11] Alignment --- docs/Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index 83d9f35726..2a89766264 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -294,7 +294,7 @@ Discord uses ids and hashes to render images in the client. These hashes can be | Guild Splash | splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Guild Discovery Splash | discovery-splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_discovery_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Guild Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | -| User Banner | banners/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_banner](#DOCS_RESOURCES_USER/user-object).png | PNG, JPEG, WebP | +| User Banner | banners/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_banner](#DOCS_RESOURCES_USER/user-object).png | PNG, JPEG, WebP, GIF | | Default User Avatar | embed/avatars/[user_discriminator](#DOCS_RESOURCES_USER/user-object).png \*\* \*\*\* | PNG | | User Avatar | avatars/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_avatar](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF | | Application Icon | app-icons/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[icon](#DOCS_RESOURCES_APPLICATION/application-object).png | PNG, JPEG, WebP | From 39896aa91e53799319dbc87cbfec4a8cb22ded0b Mon Sep 17 00:00:00 2001 From: Daedalus Date: Wed, 14 Jul 2021 17:07:26 -0600 Subject: [PATCH 06/11] Update docs/Reference.md Co-authored-by: Advaith --- docs/Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index 2a89766264..d8753159c6 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -294,7 +294,7 @@ Discord uses ids and hashes to render images in the client. These hashes can be | Guild Splash | splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Guild Discovery Splash | discovery-splashes/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_discovery_splash](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | | Guild Banner | banners/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[guild_banner](#DOCS_RESOURCES_GUILD/guild-object).png | PNG, JPEG, WebP | -| User Banner | banners/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_banner](#DOCS_RESOURCES_USER/user-object).png | PNG, JPEG, WebP, GIF | +| User Banner | banners/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_banner](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF | | Default User Avatar | embed/avatars/[user_discriminator](#DOCS_RESOURCES_USER/user-object).png \*\* \*\*\* | PNG | | User Avatar | avatars/[user_id](#DOCS_RESOURCES_USER/user-object)/[user_avatar](#DOCS_RESOURCES_USER/user-object).png \* | PNG, JPEG, WebP, GIF | | Application Icon | app-icons/[application_id](#DOCS_RESOURCES_APPLICATION/application-object)/[icon](#DOCS_RESOURCES_APPLICATION/application-object).png | PNG, JPEG, WebP | From dc73f6cc9bcddc69dc7e9ffa822b60e5dff8df56 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Thu, 15 Jul 2021 16:41:05 -0600 Subject: [PATCH 07/11] Change banner color type to int --- docs/resources/User.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/User.md b/docs/resources/User.md index 6d8ed6e73b..d2e952c0ea 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -34,7 +34,7 @@ There are other rules and restrictions not shared here for the sake of spam and | system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify | | mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify | | banner? | ?string | the user's banner, or null if unset | identify | -| banner_color? | ?string | the user's banner color as a hex string prefixed with "#", or null if unset | identify | +| banner_color? | ?number | the user's banner color as a hex color | identify | | locale? | string | the user's chosen language option | identify | | verified? | boolean | whether the email on this account has been verified | email | | email? | ?string | the user's email | email | @@ -54,7 +54,7 @@ There are other rules and restrictions not shared here for the sake of spam and "email": "nelly@discord.com", "flags": 64, "banner": "06c16474723fe537c283b8efa61a30c8", - "banner_color": "#9b00ff", + "banner_color": 16711680, "premium_type": 1, "public_flags": 64 } From ccabad13f00582f889ef09b6ed6fba3421b54793 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Mon, 19 Jul 2021 00:52:54 -0600 Subject: [PATCH 08/11] Clarify banner color docs --- docs/resources/User.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/User.md b/docs/resources/User.md index d2e952c0ea..6d7203d614 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -34,7 +34,7 @@ There are other rules and restrictions not shared here for the sake of spam and | system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify | | mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify | | banner? | ?string | the user's banner, or null if unset | identify | -| banner_color? | ?number | the user's banner color as a hex color | identify | +| banner_color? | ?number | the user's banner color encoded as an integer represnetation of hexadecimal color code | identify | | locale? | string | the user's chosen language option | identify | | verified? | boolean | whether the email on this account has been verified | email | | email? | ?string | the user's email | email | From 2072f3c712985bc328342500170150237320a8a9 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Mon, 19 Jul 2021 15:27:51 -0600 Subject: [PATCH 09/11] Update docs/resources/User.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Florian Spieß --- docs/resources/User.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/User.md b/docs/resources/User.md index 6d7203d614..dbcc831778 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -34,7 +34,7 @@ There are other rules and restrictions not shared here for the sake of spam and | system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify | | mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify | | banner? | ?string | the user's banner, or null if unset | identify | -| banner_color? | ?number | the user's banner color encoded as an integer represnetation of hexadecimal color code | identify | +| banner_color? | ?integer | the user's banner color encoded as an integer representation of hexadecimal color code | identify | | locale? | string | the user's chosen language option | identify | | verified? | boolean | whether the email on this account has been verified | email | | email? | ?string | the user's email | email | From f94644def20411557a8d712ae0629fed3473819c Mon Sep 17 00:00:00 2001 From: Daedalus Date: Mon, 19 Jul 2021 15:29:08 -0600 Subject: [PATCH 10/11] banner_color -> accent_color --- docs/resources/User.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/User.md b/docs/resources/User.md index dbcc831778..1987b1d26a 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -34,7 +34,7 @@ There are other rules and restrictions not shared here for the sake of spam and | system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify | | mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify | | banner? | ?string | the user's banner, or null if unset | identify | -| banner_color? | ?integer | the user's banner color encoded as an integer representation of hexadecimal color code | identify | +| accent_color? | ?integer | the user's banner color encoded as an integer representation of hexadecimal color code | identify | | locale? | string | the user's chosen language option | identify | | verified? | boolean | whether the email on this account has been verified | email | | email? | ?string | the user's email | email | From 33d4cb8653474ef63c71e859cf64b0b544fe04f7 Mon Sep 17 00:00:00 2001 From: Daedalus Date: Mon, 19 Jul 2021 16:24:23 -0600 Subject: [PATCH 11/11] Update User.md --- docs/resources/User.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/User.md b/docs/resources/User.md index 1987b1d26a..f288deb6dc 100644 --- a/docs/resources/User.md +++ b/docs/resources/User.md @@ -54,7 +54,7 @@ There are other rules and restrictions not shared here for the sake of spam and "email": "nelly@discord.com", "flags": 64, "banner": "06c16474723fe537c283b8efa61a30c8", - "banner_color": 16711680, + "accent_color": 16711680, "premium_type": 1, "public_flags": 64 }