mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-16 06:03:11 +00:00
Add some slash commands FAQs
Co-authored-by: ChesterWOV <99033489+ChesterWOV-DPY@users.noreply.github.com> Co-authored-by: Danny <Rapptz@users.noreply.github.com>
This commit is contained in:
parent
2b3cc8fe10
commit
c2391cf673
15
docs/faq.rst
15
docs/faq.rst
@ -406,3 +406,18 @@ Example: ::
|
||||
await ctx.send(f'Pushing to {remote} {branch}')
|
||||
|
||||
This could then be used as ``?git push origin master``.
|
||||
|
||||
Application Commands
|
||||
--------------------
|
||||
|
||||
Questions regarding Discord's new application commands, commonly known as "slash commands" or "context menu commands".
|
||||
|
||||
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"))``.
|
||||
|
Loading…
x
Reference in New Issue
Block a user