K
Kord•9mo ago
Tic

Select Intent

Hello How can I know which Intent I need for my bot? The bot only use Slash command use buttons etc.
Solution:
intents {
enableEvent<AnEventType>()
}
intents {
enableEvent<AnEventType>()
}
...
Jump to solution
7 Replies
g
g•9mo ago
the event objects have a property you can use to get the relevant intents
Tic
TicOP•9mo ago
Do you have an example? I'm not sure to understand
Solution
g
g•9mo ago
intents {
enableEvent<AnEventType>()
}
intents {
enableEvent<AnEventType>()
}
g
g•9mo ago
kordex collects the required intents in the extension using a fake intents builder and then enables the required intents if configured to do so not sure what you're doing specifically
Tic
TicOP•9mo ago
Ok thanks ! That's my need But, after put all my used event, the intent is empty. Is it possible that my bot doesn't need any intent? 🤔
g
g•9mo ago
Yeah
Tic
TicOP•9mo ago
Well, I presume that I will have more performance because I will not receive some events That's nice thanks

Did you find this page helpful?