Open MoT3rror opened 3 years ago
I can probably do this
Let me know if you need me to set the interactions URL or do you plan to use the INTERACTION_CREATE gateway event. Either works for me
in PHP: "socialiteproviders/discord": "^2.0" https://socialiteproviders.com/Discord/#installation-basic-usage
config setup: config/services.php app/Providers/EventServiceProvider.php app/Http/Controllers/Discord.php js -> routes/api.php -> app/Http/Controllers/Api/DiscordMessage.php -> [individual handler] -> js
we should wait for the discordjs library (that we already use) to implement "slash commands". No point in doing the wrapper ourselves just to refactor later. I believe they will do it using the web socket gateway, they support this today, so there will be no need to create additional callback urls.
Still waiting on Discord. Thanks for looking into it.
https://discord.com/developers/docs/interactions/slash-commands