Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 987 Bytes

File metadata and controls

39 lines (25 loc) · 987 Bytes

Slash Command Example (discord.py)

A discord.py Slash Command code example which uses discord-py-slash-command Bot API.


INSTALLATION

The option to install the PyPI version is as follows:

pip install discord-py-slash-command

DOCUMENTATION

Documentation of discord-py-slash-command Bot API is available in PyPI.


TEST

Copy-paste the codes from bot.py

Run the code

Type /test in your server (where your bot is already added)

Your code should work :)

Note : Your bot must have "use slash commands" permission in the server in order to use slash commands.

CONNECT WITH ME

DISCORD: INFINIX#7276

DISCORD SERVER: https://www.discord.gg/DNvFcrhdzr

Check out my profile for more info!