#๐ Why this don't work?
11 messages ยท Page 1 of 1 (latest)
@jaunty crest
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
discord-py-slash-command after v3.0.3 turned into a mirror for their newer, standalone library, interactions.py
if you really want to use discord_slash you can install that older version, but i would highly recommend using dpy 2.0's native slash commands (from discord import app_commands), or at least a fork like disnake, as discord_slash stopped being maintained and will eventually break when discord removes their older API versions, v6/v7 (or rather, discord.py 1.7.3 will break which is what discord_slash was built on top of)
How can I access the other slash commands?
So how do I have to use them in the code?
you can see a basic example on their github
https://github.com/Rapptz/discord.py/blob/v2.3.2/examples/app_commands/basic.py
unfortunately the official documentation is missing a guide to their own slash commands, but this third-party guide might help you out
https://fallendeity.github.io/discord.py-masterclass/slash-commands/
geez, even that official example is a bit out of date with the "waiting for up to an hour" part...
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.