Discord Bot - Issues responding to interactions
Hello π
I can't seem to get my Convex endpoint to respond to my interactions and I have no idea why. Going by the below code any interaction should be met with a message response of Blah however, I just get an empty response (shown in attached image).
My log output looks like,
I cannot see any issues with my Discord bot permissions either. Any help would be much appreciated!

5 Replies
If youβre using the JS discord-interactions library, I think the interaction types are
InteractionType.APPLICATION_COMMAND
. In terms of debugging, adding some more log lines (maybe right before returning the response) could help?@k.yr is it possible to "curl" or use the logs to see the raw HTTP output from your convex function and then compare that to the output from a known good HTTP output and see where the difference lies?
could it possibly be a CORS issue?
Thanks for the help all!
@sshader I'm using the discord-api-types library which has different case for their types. I added another log line but still no luck :/
@mikeysee I added some CORS headers and still no luck. I will try and poke the Convex endpoint a bit more so I can see the HTTP outputs like you suggested π€
If I just post a message to a channel that works fine its responding to the interaction that is the issue I think? For example the below code correctly posts a message of "Blah" in the channel the interaction is instigated
hmmm.. I dont know then π¦
I changed the interactions endpoint of another working bot to my new convex one and it worked.
Well turns out I somehow had managed to include 'Discord' in the Name of the new bot...removing 'Discord' from the name resolved this issue sigh