Coder Social home page Coder Social logo

devinfinix / discord.py-slash-command-example Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 3.0 9 KB

A discord.py Slash Command code example which uses "discord-py-slash-command" Bot API (Python Library)

Home Page: https://www.discord.gg/DNvFcrhdzr

License: Apache License 2.0

Python 100.00%
discord-py-slash-command python infinix source code

discord.py-slash-command-example's Introduction

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!

discord.py-slash-command-example's People

Contributors

devinfinix avatar

Stargazers

 avatar  avatar

Watchers

 avatar

discord.py-slash-command-example's Issues

not workin

it says "interaction filed" in discord

Undefined line

in the await send part (first one) the {opt} is undefined and the command does not work/

Uhh

PS C:\Users\ithasmyfullname\desktop\omgomg> py test.py
Traceback (most recent call last):
File "C:\Users\ithasmyfullname\desktop\omgomg\test.py", line 4, in
from discord_slash import SlashCommand, cog_ext, SlashContext
ModuleNotFoundError: No module named 'discord_slash'
PS C:\Users\ithasmyfullname\desktop\omgomg>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.