Frequently Asked Questions
discord-interactions
?
This is an alternative to NOPE. This is an "extension" library to discord-interactions
, we bring a set of tools (functions, decorators, etc.) that makes easier to use the well known library.
So you can't use interactions-styled
to work with Discord interactions directly.
Why my permissions don't work?
If you're using discord_styled.permissions
decorators and don't work properly check if they are in the right position on your code, you always need to put permissions decorators below your slash command declaration:
# CORRECT:
@slash.slash(...)
@deny_all(...)
async def...
# INCORRECT:
@deny_all(...)
@slash.slash(...)
async def...
2
3
4
5
6
7
8
9
10
11
Why my options don't work?
If you're using @option
decorator and don't work properly check if it's in the right position on your code, you always need to put options on top of your slash command declaration:
# CORRECT:
@option(...)
@slash.slash(...)
async def...
# INCORRECT:
@slash.slash(...)
@option(...)
async def...
2
3
4
5
6
7
8
9
10
11
Why my option templates have a wrong order?
If you're using option templates and don't work as expected please check if your @options
decorators are in the right position on your code:
# CORRECT:
@options(...)
@options(...)
@slash.slash(...)
# INCORRECT:
@slash.slash(...)
@options(...)
@options(...)
2
3
4
5
6
7
8
9
10
11
💬 If you have more questions...
You can contact me on Discord, I'm gammx#0001, you can find me on the discord-interactions serveropen in new window too
if you like this lib:
- You can join interactions-styled serveropen in new window to know all the news or ask something about the lib.
- Give us a ⭐ on interactions-styled github repoopen in new window.
- You can support by making pull requests, create issues, feature requests, or editing this documentation pages if I made some mistakes.
Made with ❤️ for the community.