K
Kord•2w 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
gdude
gdude•2w ago
the event objects have a property you can use to get the relevant intents
Tic
TicOP•2w ago
Do you have an example? I'm not sure to understand
Solution
gdude
gdude•2w ago
intents {
enableEvent<AnEventType>()
}
intents {
enableEvent<AnEventType>()
}
gdude
gdude•2w 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•2w 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? 🤔
gdude
gdude•2w ago
Yeah
Tic
TicOP•2w 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?