From 01e21b7b549bc27763e19ff3cb0c741c9f907629 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sat, 16 Oct 2021 01:18:59 +0530 Subject: [PATCH 01/15] Define ProtocolUrls Enum --- discord/enums.py | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/discord/enums.py b/discord/enums.py index 023ab7d0..4718ff27 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -590,6 +590,65 @@ class NSFWLevel(Enum, comparable=True): age_restricted = 3 +class ProtocolUrls(Enum): + + # General + + home = "discord://-/channels/@me/" + nitro = "discord://-/store" + apps = "discord://-/apps" # Breaks the client on windows (Shows download links for different OS) + server_discovery = "discord://-/discovery" + new_server = "discord://-/guilds/create" + server_invite = "discord://-/invite/invite_code" # TODO + + # Settings + + account_settings = "discord://-/settings/account" + profile_settings = "discord://-/settings/profile-customization" + privacy_settings = "discord://-/settings/privacy-safety" + safety_settings = "discord://-/settings/privacy-safety" + authorized_apps_settings = "discord://-/settings/authorized-apps" + connections_settings = "discord://-/settings/connections" + nitro_settings = "discord://-/settings/premium" # Same as store, but inside of settings + server_boost_settings = "discord://-/settings/premium-guild-subscription" + subscription_settings = "discord://-/settings/subscriptions" + gift_inventory_settings = "discord://-/settings/inventory" + billing_settings = "discord://-/settings/billing" + appearance_settings = "discord://-/settings/appearance" + accessibility_settings = "discord://-/settings/accessibility" + voice_video_settings = "discord://-/settings/voice" + text_images_settings = "discord://-/settings/text" + notifications_settings = "discord://-/settings/notifications" + keybinds_settings = "discord://-/settings/keybinds" + language_settings = "discord://-/settings/locale" + windows_settings = "discord://-/settings/windows" + linux_settings = "discord://-/settings/linux" + streamer_mode_settings = "discord://-/settings/streamer-mode" + advanced_settings = "discord://-/settings/advanced" + activity_status_settings = "discord://-/settings/activity-status" + game_overlay_settings = "discord://-/settings/overlay" + hypesquad_settings = "discord://-/settings/hypersquad-online" + + changelogs = "discord://-/settings/changelogs" + experiments = ( + "discord://-/settings/experiments" # Doesn't work if you don't have it actually activated. Just blank screen. + ) + developer_options = "discord://-/settings/developer-options" # Same as experiments + hotspot_options = "discord://-/settings/hotspot-options" # Same as experiments + + # Users, Guilds, and DMs + user_profile = "discord://-/users/user_id" # TODO + dm_channel = "discord://-/channels/@me/channel_id" # TODO + dm_message = "discord://-/channels/@me/channel_id/message_id" # TODO + guild_channel = "discord://-/channels/guild_id/channel_id" # TODO + guild_message = "discord://-/channels/guild_id/channel_id/message_id" # TODO + guild_membership_screening = "discord://-/member-verification/guild_id" # TODO + + # Library + games_library = "discord://-/library" + library_settings = "discord://-/library/settings" + + T = TypeVar("T") -- 2.47.2 From 56b6ccd87ebf3ab8ce0f5628d686eb2d664fc1fc Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 00:18:29 +0530 Subject: [PATCH 02/15] Fix links and Add format support --- discord/enums.py | 36 +++++++++++++++++++++++------------- discord/ui/button.py | 2 +- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 4718ff27..1ab4f2e4 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -597,16 +597,16 @@ class ProtocolUrls(Enum): home = "discord://-/channels/@me/" nitro = "discord://-/store" apps = "discord://-/apps" # Breaks the client on windows (Shows download links for different OS) - server_discovery = "discord://-/discovery" + server_discovery = "discord://-/guild-discovery" new_server = "discord://-/guilds/create" - server_invite = "discord://-/invite/invite_code" # TODO + server_invite = "discord://-/invite/{invite_code}" # Settings account_settings = "discord://-/settings/account" profile_settings = "discord://-/settings/profile-customization" - privacy_settings = "discord://-/settings/privacy-safety" - safety_settings = "discord://-/settings/privacy-safety" + privacy_settings = "discord://-/settings/privacy-and-safety" + safety_settings = "discord://-/settings/privacy-and-safety" # Alias authorized_apps_settings = "discord://-/settings/authorized-apps" connections_settings = "discord://-/settings/connections" nitro_settings = "discord://-/settings/premium" # Same as store, but inside of settings @@ -621,34 +621,44 @@ class ProtocolUrls(Enum): notifications_settings = "discord://-/settings/notifications" keybinds_settings = "discord://-/settings/keybinds" language_settings = "discord://-/settings/locale" - windows_settings = "discord://-/settings/windows" - linux_settings = "discord://-/settings/linux" + windows_settings = "discord://-/settings/windows" # Doesnt work if used on wrong platform + linux_settings = "discord://-/settings/linux" # Doesnt work if used on wrong platform streamer_mode_settings = "discord://-/settings/streamer-mode" advanced_settings = "discord://-/settings/advanced" activity_status_settings = "discord://-/settings/activity-status" game_overlay_settings = "discord://-/settings/overlay" - hypesquad_settings = "discord://-/settings/hypersquad-online" + hypesquad_settings = "discord://-/settings/hypesquad-online" changelogs = "discord://-/settings/changelogs" experiments = ( "discord://-/settings/experiments" # Doesn't work if you don't have it actually activated. Just blank screen. ) + developer_options = "discord://-/settings/developer-options" # Same as experiments hotspot_options = "discord://-/settings/hotspot-options" # Same as experiments # Users, Guilds, and DMs - user_profile = "discord://-/users/user_id" # TODO - dm_channel = "discord://-/channels/@me/channel_id" # TODO - dm_message = "discord://-/channels/@me/channel_id/message_id" # TODO - guild_channel = "discord://-/channels/guild_id/channel_id" # TODO - guild_message = "discord://-/channels/guild_id/channel_id/message_id" # TODO - guild_membership_screening = "discord://-/member-verification/guild_id" # TODO + + user_profile = "discord://-/users/{user_id}" + dm_channel = "discord://-/channels/@me/{channel_id}" + dm_message = "discord://-/channels/@me/{channel_id}/{message_id}" + guild_channel = "discord://-/channels/{guild_id}/{channel_id}" + guild_message = "discord://-/channels/{guild_id}/{channel_id}/{message_id}" + guild_membership_screening = "discord://-/member-verification/{guild_id}" # Library + games_library = "discord://-/library" library_settings = "discord://-/library/settings" + def __str__(self): + return self.value + + def format(self, **kwargs): + return self.value.format(**kwargs) + + T = TypeVar("T") diff --git a/discord/ui/button.py b/discord/ui/button.py index ce99e307..4675eb6d 100644 --- a/discord/ui/button.py +++ b/discord/ui/button.py @@ -117,7 +117,7 @@ class Button(Item[V]): self._underlying = ButtonComponent._raw_construct( type=ComponentType.button, custom_id=custom_id, - url=url, + url=str(url) if url else None, disabled=disabled, label=label, style=style, -- 2.47.2 From 3a9258b49f69029b494b4fedbc19bca6d7ae3ba4 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 00:26:52 +0530 Subject: [PATCH 03/15] Format with black --- discord/enums.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 1ab4f2e4..3f59b4b5 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -647,17 +647,16 @@ class ProtocolUrls(Enum): guild_membership_screening = "discord://-/member-verification/{guild_id}" # Library - + games_library = "discord://-/library" library_settings = "discord://-/library/settings" - def __str__(self): return self.value def format(self, **kwargs): return self.value.format(**kwargs) - + T = TypeVar("T") -- 2.47.2 From 64ff807309f1ea39b75169b4ceac2aef8f4b4c8b Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 00:40:57 +0530 Subject: [PATCH 04/15] Update enum name to singular --- discord/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/enums.py b/discord/enums.py index 3f59b4b5..f4a17bbc 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -590,7 +590,7 @@ class NSFWLevel(Enum, comparable=True): age_restricted = 3 -class ProtocolUrls(Enum): +class ProtocolUrl(Enum): # General -- 2.47.2 From 2cc9d7b46cf02772aead1f06586269b24f8b2c20 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 00:41:20 +0530 Subject: [PATCH 05/15] Typehint ProtocolUrl methods --- discord/enums.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index f4a17bbc..0e66fb95 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -651,10 +651,10 @@ class ProtocolUrl(Enum): games_library = "discord://-/library" library_settings = "discord://-/library/settings" - def __str__(self): + def __str__(self) -> str: return self.value - def format(self, **kwargs): + def format(self, **kwargs) -> str: return self.value.format(**kwargs) -- 2.47.2 From 4932eb84eee54a45e17dd8c13069a1630e9f6fd2 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 00:45:31 +0530 Subject: [PATCH 06/15] Update button docs --- discord/ui/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/button.py b/discord/ui/button.py index 4675eb6d..9c42cea4 100644 --- a/discord/ui/button.py +++ b/discord/ui/button.py @@ -60,7 +60,7 @@ class Button(Item[V]): The ID of the button that gets received during an interaction. If this button is for a URL, it does not have a custom ID. url: Optional[:class:`str`] - The URL this button sends you to. + The URL this button sends you to. This param is automatically casted to :class:`str`. disabled: :class:`bool` Whether the button is disabled or not. label: Optional[:class:`str`] -- 2.47.2 From 67d19b4fdaa00058d4438ba233f940ca22e201b3 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 01:17:28 +0530 Subject: [PATCH 07/15] Add ProtocolUrl to __all__ --- discord/enums.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/enums.py b/discord/enums.py index 0e66fb95..47dce905 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -55,6 +55,7 @@ __all__ = ( "InteractionType", "InteractionResponseType", "NSFWLevel", + "ProtocolUrl" ) -- 2.47.2 From 2ea5280990daae78a128525b6243544cda8fda94 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 01:20:18 +0530 Subject: [PATCH 08/15] Format with black --- discord/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/enums.py b/discord/enums.py index 47dce905..842dccdf 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -55,7 +55,7 @@ __all__ = ( "InteractionType", "InteractionResponseType", "NSFWLevel", - "ProtocolUrl" + "ProtocolUrl", ) -- 2.47.2 From 711fd40e5bc4830048e6b66ebe2bb73a19d06633 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 13:32:29 +0530 Subject: [PATCH 09/15] Rename enum elements. --- discord/enums.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 842dccdf..0576f38c 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -598,9 +598,9 @@ class ProtocolUrl(Enum): home = "discord://-/channels/@me/" nitro = "discord://-/store" apps = "discord://-/apps" # Breaks the client on windows (Shows download links for different OS) - server_discovery = "discord://-/guild-discovery" - new_server = "discord://-/guilds/create" - server_invite = "discord://-/invite/{invite_code}" + guild_discovery = "discord://-/guild-discovery" + new_guild = "discord://-/guilds/create" + guild_invite = "discord://-/invite/{invite_code}" # Settings @@ -611,7 +611,7 @@ class ProtocolUrl(Enum): authorized_apps_settings = "discord://-/settings/authorized-apps" connections_settings = "discord://-/settings/connections" nitro_settings = "discord://-/settings/premium" # Same as store, but inside of settings - server_boost_settings = "discord://-/settings/premium-guild-subscription" + guild_premium_subscription = "discord://-/settings/premium-guild-subscription" subscription_settings = "discord://-/settings/subscriptions" gift_inventory_settings = "discord://-/settings/inventory" billing_settings = "discord://-/settings/billing" -- 2.47.2 From 65dfc1acd2f603fbe764697af797273e169f1336 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sun, 17 Oct 2021 13:34:59 +0530 Subject: [PATCH 10/15] Document the ProtocolUrl Enum --- docs/api.rst | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index e513eb0a..5e135de7 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -2656,6 +2656,182 @@ of :class:`enum.Enum`. The guild may contain NSFW content. +.. class:: ProtocolUrl + + Represents the different `discord://` Urls + + .. attribute:: home + + The url for the home page. + + .. attribute:: nitro + + The url for the nitro page. + + .. attribute:: apps + + The url for the downloads page. This breaks the client and needs it to be restarted. + + .. attribute:: guild_discovery + + The url for the server discovery page. + + .. attribute:: new_guild + + The url for the new server modal. + + .. attribute:: guild_invite + + The url for the join server page. Needs to be formatted with `invite_code`. + + .. attribute:: account_settings + + The url for the "My Account" page in settings. + + .. attribute:: profile_settings + + The url for the "User Profile" page in settings. + + .. attribute:: privacy_settings + + The url for the "Privacy & Safety" page in settings. + + .. attribute:: safety_settings + + An alias for :attr:`privacy_settings`. + + .. attribute:: authorized_apps_settings + + The url for the "Authorized Apps" page in settings. + + .. attribute:: connections_settings + + The url for the "Connections" page in settings. + + .. attribute:: nitro_settings + + The url for the "Discord Nitro" page in settings. Same page as :attr:`nitro`, but inside of settings. + + .. attribute:: guild_premium_subscription + + The url for the "Server Boost" page in settings. + + .. attribute:: subscription_settings + + The url for the "Subscriptions" page in settings. + + .. attribute:: gift_inventory_settings + + The url for the "Gift Inventory" page in settings. + + .. attribute:: billing_settings + + The url for the "Billing" page in settings. + + .. attribute:: appearance_settings + + The url for the "Appearance" page in settings. + + .. attribute:: accessibility_settings + + The url for the "Accessibility" page in settings. + + .. attribute:: voice_video_settings + + The url for the "Voice & Video" page in settings. + + .. attribute:: test_images_settings + + The url for the "Text & Images" page in settings. + + .. attribute:: notifications_settings + + The url for the "Notifications" page in settings. + + .. attribute:: keybinds_settings + + The url for the "Keybinds" page in settings. + + .. attribute:: language_settings + + The url for the "Language" page in settings. + + .. attribute:: windows_settings + + The url for the "Windows Settings" page in settings. Leads to a blank screen if used on the wrong platform. + + .. attribute:: linux_settings + + The url for the "Linux Settings" page in settings. Leads to a blank screen if used on the wrong platform. + + .. attribute:: streamer_mode_settings + + The url for the "Streamer Mode" page in settings. + + .. attribute:: advanced_settings + + The url for the "Advanced" page in settings. + + .. attribute:: activity_status_settings + + The url for the "Activity Status" page in settings. + + .. attribute:: game_overlay_settings + + The url for the "Game Overlay" page in settings. + + .. attribute:: hypesquad_settings + + The url for the "Hypesquad" page in settings. + + .. attribute:: changelogs + + The url for the changelogs modal. + + .. attribute:: experiments + + The url for the "Experiments" page in settings. Leads to a blank screen if it isn't activated. + + .. attribute:: developer_options + + The url for the "Developer Options" page in settings. Leads to a blank screen if it isn't activated. + + .. attribute:: hotspot_options + + The url for the "Hotspot Options" page in settings. Leads to a blank screen if it isn't activated. + + .. attribute:: user_profile + + The url for a user's profile modal. Needs to be formatted with `user_id`. + + .. attribute:: dm_channel + + The url for a DM channel. Needs to be formatted with `channel_id`. + + .. attribute:: dm_message + + The url for a message in a DM channel. Needs to be formatted with `channel_id` and `message_id`. + + .. attribute:: guild_channel + + The url for a guild channel. Needs to be formatted with `guild_id` and `channel_id`. + + .. attribute:: guild_message + + The url for a guild channel. Needs to be formatted with `guild_id`, `channel_id` and `message_id`. + + .. attribute:: guild_membership_screening + + The url for a guild's membership screening page. Needs to be formatted with `guild_id`. + + .. attribute:: games_library + + The url for the game library. + + .. attribute:: library_settings + + The url for the library settings. + Async Iterator ---------------- -- 2.47.2 From f96083e1092fa050788b4dedf154d244062e9468 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz <49774426+Chiggy-Playz@users.noreply.github.com> Date: Mon, 18 Oct 2021 19:53:31 +0530 Subject: [PATCH 11/15] Typehint format method Co-authored-by: Stocker <44980366+StockerMC@users.noreply.github.com> --- discord/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/enums.py b/discord/enums.py index 0576f38c..02368ca8 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -655,7 +655,7 @@ class ProtocolUrl(Enum): def __str__(self) -> str: return self.value - def format(self, **kwargs) -> str: + def format(self, **kwargs: Any) -> str: return self.value.format(**kwargs) -- 2.47.2 From 3c75853a034eb41926a123447501467401b47bed Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Mon, 18 Oct 2021 20:21:07 +0530 Subject: [PATCH 12/15] Update typehint of url arg in Button --- discord/ui/button.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ui/button.py b/discord/ui/button.py index 9c42cea4..d073898d 100644 --- a/discord/ui/button.py +++ b/discord/ui/button.py @@ -24,7 +24,7 @@ DEALINGS IN THE SOFTWARE. from __future__ import annotations -from typing import Callable, Optional, TYPE_CHECKING, Tuple, Type, TypeVar, Union +from typing import Any, Callable, Optional, TYPE_CHECKING, Tuple, Type, TypeVar, Union import inspect import os @@ -91,7 +91,7 @@ class Button(Item[V]): label: Optional[str] = None, disabled: bool = False, custom_id: Optional[str] = None, - url: Optional[str] = None, + url: Optional[Any] = None, emoji: Optional[Union[str, Emoji, PartialEmoji]] = None, row: Optional[int] = None, ): -- 2.47.2 From bc8d4b330634c616b48f75ef58c137c4b66dc84b Mon Sep 17 00:00:00 2001 From: Chiggy-Playz <49774426+Chiggy-Playz@users.noreply.github.com> Date: Fri, 22 Oct 2021 22:48:35 +0530 Subject: [PATCH 13/15] Update new_guild to guild_create Co-authored-by: Gnome! <45660393+Gnome-py@users.noreply.github.com> --- discord/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/enums.py b/discord/enums.py index 02368ca8..79d4bd83 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -599,7 +599,7 @@ class ProtocolUrl(Enum): nitro = "discord://-/store" apps = "discord://-/apps" # Breaks the client on windows (Shows download links for different OS) guild_discovery = "discord://-/guild-discovery" - new_guild = "discord://-/guilds/create" + guild_create = "discord://-/guilds/create" guild_invite = "discord://-/invite/{invite_code}" # Settings -- 2.47.2 From eadd424b44364349b59ae0aec18e00b182356687 Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Fri, 22 Oct 2021 22:51:59 +0530 Subject: [PATCH 14/15] Update comment placement --- discord/enums.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 79d4bd83..5b491515 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -631,9 +631,9 @@ class ProtocolUrl(Enum): hypesquad_settings = "discord://-/settings/hypesquad-online" changelogs = "discord://-/settings/changelogs" - experiments = ( - "discord://-/settings/experiments" # Doesn't work if you don't have it actually activated. Just blank screen. - ) + + # Doesn't work if you don't have it actually activated. Just blank screen. + experiments = "discord://-/settings/experiments" developer_options = "discord://-/settings/developer-options" # Same as experiments hotspot_options = "discord://-/settings/hotspot-options" # Same as experiments -- 2.47.2 From dae62b78b62f1e8a2b191ff7f25938de4d8be82f Mon Sep 17 00:00:00 2001 From: Chiggy-Playz Date: Sat, 23 Oct 2021 22:56:42 +0530 Subject: [PATCH 15/15] Update url to URL --- discord/enums.py | 4 +-- docs/api.rst | 88 ++++++++++++++++++++++++------------------------ 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index 5b491515..7d14b057 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -55,7 +55,7 @@ __all__ = ( "InteractionType", "InteractionResponseType", "NSFWLevel", - "ProtocolUrl", + "ProtocolURL", ) @@ -591,7 +591,7 @@ class NSFWLevel(Enum, comparable=True): age_restricted = 3 -class ProtocolUrl(Enum): +class ProtocolURL(Enum): # General diff --git a/docs/api.rst b/docs/api.rst index 5e135de7..d1624e26 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -2656,45 +2656,45 @@ of :class:`enum.Enum`. The guild may contain NSFW content. -.. class:: ProtocolUrl +.. class:: ProtocolURL - Represents the different `discord://` Urls + Represents the different `discord://` URLs .. attribute:: home - The url for the home page. + The URL for the home page. .. attribute:: nitro - The url for the nitro page. + The URL for the nitro page. .. attribute:: apps - The url for the downloads page. This breaks the client and needs it to be restarted. + The URL for the downloads page. This breaks the client and needs it to be restarted. .. attribute:: guild_discovery - The url for the server discovery page. + The URL for the server discovery page. .. attribute:: new_guild - The url for the new server modal. + The URL for the new server modal. .. attribute:: guild_invite - The url for the join server page. Needs to be formatted with `invite_code`. + The URL for the join server page. Needs to be formatted with `invite_code`. .. attribute:: account_settings - The url for the "My Account" page in settings. + The URL for the "My Account" page in settings. .. attribute:: profile_settings - The url for the "User Profile" page in settings. + The URL for the "User Profile" page in settings. .. attribute:: privacy_settings - The url for the "Privacy & Safety" page in settings. + The URL for the "Privacy & Safety" page in settings. .. attribute:: safety_settings @@ -2702,135 +2702,135 @@ of :class:`enum.Enum`. .. attribute:: authorized_apps_settings - The url for the "Authorized Apps" page in settings. + The URL for the "Authorized Apps" page in settings. .. attribute:: connections_settings - The url for the "Connections" page in settings. + The URL for the "Connections" page in settings. .. attribute:: nitro_settings - The url for the "Discord Nitro" page in settings. Same page as :attr:`nitro`, but inside of settings. + The URL for the "Discord Nitro" page in settings. Same page as :attr:`nitro`, but inside of settings. .. attribute:: guild_premium_subscription - The url for the "Server Boost" page in settings. + The URL for the "Server Boost" page in settings. .. attribute:: subscription_settings - The url for the "Subscriptions" page in settings. + The URL for the "Subscriptions" page in settings. .. attribute:: gift_inventory_settings - The url for the "Gift Inventory" page in settings. + The URL for the "Gift Inventory" page in settings. .. attribute:: billing_settings - The url for the "Billing" page in settings. + The URL for the "Billing" page in settings. .. attribute:: appearance_settings - The url for the "Appearance" page in settings. + The URL for the "Appearance" page in settings. .. attribute:: accessibility_settings - The url for the "Accessibility" page in settings. + The URL for the "Accessibility" page in settings. .. attribute:: voice_video_settings - The url for the "Voice & Video" page in settings. + The URL for the "Voice & Video" page in settings. .. attribute:: test_images_settings - The url for the "Text & Images" page in settings. + The URL for the "Text & Images" page in settings. .. attribute:: notifications_settings - The url for the "Notifications" page in settings. + The URL for the "Notifications" page in settings. .. attribute:: keybinds_settings - The url for the "Keybinds" page in settings. + The URL for the "Keybinds" page in settings. .. attribute:: language_settings - The url for the "Language" page in settings. + The URL for the "Language" page in settings. .. attribute:: windows_settings - The url for the "Windows Settings" page in settings. Leads to a blank screen if used on the wrong platform. + The URL for the "Windows Settings" page in settings. Leads to a blank screen if used on the wrong platform. .. attribute:: linux_settings - The url for the "Linux Settings" page in settings. Leads to a blank screen if used on the wrong platform. + The URL for the "Linux Settings" page in settings. Leads to a blank screen if used on the wrong platform. .. attribute:: streamer_mode_settings - The url for the "Streamer Mode" page in settings. + The URL for the "Streamer Mode" page in settings. .. attribute:: advanced_settings - The url for the "Advanced" page in settings. + The URL for the "Advanced" page in settings. .. attribute:: activity_status_settings - The url for the "Activity Status" page in settings. + The URL for the "Activity Status" page in settings. .. attribute:: game_overlay_settings - The url for the "Game Overlay" page in settings. + The URL for the "Game Overlay" page in settings. .. attribute:: hypesquad_settings - The url for the "Hypesquad" page in settings. + The URL for the "Hypesquad" page in settings. .. attribute:: changelogs - The url for the changelogs modal. + The URL for the changelogs modal. .. attribute:: experiments - The url for the "Experiments" page in settings. Leads to a blank screen if it isn't activated. + The URL for the "Experiments" page in settings. Leads to a blank screen if it isn't activated. .. attribute:: developer_options - The url for the "Developer Options" page in settings. Leads to a blank screen if it isn't activated. + The URL for the "Developer Options" page in settings. Leads to a blank screen if it isn't activated. .. attribute:: hotspot_options - The url for the "Hotspot Options" page in settings. Leads to a blank screen if it isn't activated. + The URL for the "Hotspot Options" page in settings. Leads to a blank screen if it isn't activated. .. attribute:: user_profile - The url for a user's profile modal. Needs to be formatted with `user_id`. + The URL for a user's profile modal. Needs to be formatted with `user_id`. .. attribute:: dm_channel - The url for a DM channel. Needs to be formatted with `channel_id`. + The URL for a DM channel. Needs to be formatted with `channel_id`. .. attribute:: dm_message - The url for a message in a DM channel. Needs to be formatted with `channel_id` and `message_id`. + The URL for a message in a DM channel. Needs to be formatted with `channel_id` and `message_id`. .. attribute:: guild_channel - The url for a guild channel. Needs to be formatted with `guild_id` and `channel_id`. + The URL for a guild channel. Needs to be formatted with `guild_id` and `channel_id`. .. attribute:: guild_message - The url for a guild channel. Needs to be formatted with `guild_id`, `channel_id` and `message_id`. + The URL for a guild channel. Needs to be formatted with `guild_id`, `channel_id` and `message_id`. .. attribute:: guild_membership_screening - The url for a guild's membership screening page. Needs to be formatted with `guild_id`. + The URL for a guild's membership screening page. Needs to be formatted with `guild_id`. .. attribute:: games_library - The url for the game library. + The URL for the game library. .. attribute:: library_settings - The url for the library settings. + The URL for the library settings. Async Iterator ---------------- -- 2.47.2