diff --git a/discord/utils.py b/discord/utils.py index 7f8c9bd1c..44aacfd7e 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -295,7 +295,7 @@ def oauth_url( redirect_uri: :class:`str` An optional valid redirect URI. scopes: Iterable[:class:`str`] - An optional valid list of scopes. Defaults to ``('bot', 'application.commands')``. + An optional valid list of scopes. Defaults to ``('bot', 'applications.commands')``. .. versionadded:: 1.7 disable_guild_select: :class:`bool` @@ -309,7 +309,7 @@ def oauth_url( The OAuth2 URL for inviting the bot into guilds. """ url = f'https://discord.com/oauth2/authorize?client_id={client_id}' - url += '&scope=' + '+'.join(scopes or ('bot', 'application.commands')) + url += '&scope=' + '+'.join(scopes or ('bot', 'applications.commands')) if permissions is not MISSING: url += f'&permissions={permissions.value}' if guild is not MISSING: diff --git a/docs/migrating.rst b/docs/migrating.rst index d26019288..879e47bef 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -1039,7 +1039,7 @@ The following changes have been made: - :func:`on_socket_raw_send` is now only called if ``enable_debug_events`` is set on :class:`Client`. - The documented return type for :meth:`Guild.fetch_channels` changed to Sequence[:class:`abc.GuildChannel`]. - :func:`utils.resolve_invite` now returns a :class:`ResolvedInvite` class. -- :func:`utils.oauth_url` now defaults to ``bot`` and ``application.commands`` scopes when not given instead of just ``bot``. +- :func:`utils.oauth_url` now defaults to ``bot`` and ``applications.commands`` scopes when not given instead of just ``bot``. - :meth:`abc.Messageable.typing` can no longer be used as a regular (non-async) context manager. - :attr:`Intents.emojis` is now an alias of :attr:`Intents.emojis_and_stickers`.