mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Fix typo in applications.commands scope
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user