Frequently Asked Questions

This is an alternative to discord-interactions?

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...
1
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...
1
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(...)
1
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:

Made with ❤️ for the community.