Kiai API -> virtual message
Looking to integrate Kiai's leveling with my own STT bot as a better level up system.
Docs on the virtual message endpoint aren't great, so I'm wondering a few things about it:
* For a specific user in the server should I populate member.roles with all of their roles?
* Does Kiai not take into account the message content at all?
* There's also a field
kiaiApplicationId
in the JSON request, what should that be?
Thanks :)Solution:Jump to solution
Yeah the virtual message API is basically a hacky method no matter which way you look at it
- Yes, we use those role IDs to compare against the blacklist, rather than waiting and trying to fetch the user from Discord
- Correct, message length doesn't matter to kiai (we didn't even apply for the message content intent)
- That property was removed (though it would be your bot's ID), I'm not sure why it still shows up on the swagger docs but I'll get that removed shortly...
3 Replies
for reference i'm looking at https://api.kiaibot.com/docs/static/index.html#/v1%2F/post_v1_guild__guildId__virtual_message
Solution
Yeah the virtual message API is basically a hacky method no matter which way you look at it
- Yes, we use those role IDs to compare against the blacklist, rather than waiting and trying to fetch the user from Discord
- Correct, message length doesn't matter to kiai (we didn't even apply for the message content intent)
- That property was removed (though it would be your bot's ID), I'm not sure why it still shows up on the swagger docs but I'll get that removed shortly
If you have better ideas for how this route could work I'm totally open to it
so far it looks like a pretty decent route for scripty's use case
so hopefully it works out in the end