Browse Source

Fix utils.oauth_url doc in slash commands FAQ

pull/7903/head
will 3 years ago
committed by GitHub
parent
commit
88b22611bc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/faq.rst

6
docs/faq.rst

@ -418,6 +418,6 @@ My bot's commands are not showing up!
1. Did you :meth:`~.CommandTree.sync` your command? Commands need to be synced before they will appear.
2. Did you invite your bot with the correct permissions? Bots need to be invited with the ``application.commands``
scope in addition to the ``bot`` scope. For example, invite the bot with the following URL:
``https://discord.com/oauth2/authorize?client_id=<client id>&scope=applications.commands+bot``
Alternatively, if you use func:`~.oauth_url`, you can call the function as such:
``oauth_url(<other options>, scopes=("bot", "application.commands"))``.
``https://discord.com/oauth2/authorize?client_id=<client id>&scope=applications.commands+bot``.
Alternatively, if you use :func:`utils.oauth_url`, you can call the function as such:
``oauth_url(<other options>, scopes=("bot", "application.commands"))``.

Loading…
Cancel
Save