Let bots register their own application commands

(#1380) Feature In progress api

Current problem

Currently, bots can only use prefix commands (e.g., /ping, /help). Native commands like /shrug, /ban, /kick, /gif are built-in to the platform and appear in Fluxer's command menu, but bots cannot register their own commands there. Users need to type the prefix manually instead of using the slash command menu, which limits the bot experience.

Proposed change

Add an API endpoint (POST /v1/applications/{id}/commands) to allow bots to register their own application commands. These commands would then appear in Fluxer's / command menu, just like the native ones. The INTERACTION_CREATE gateway event type already exists, so adding the registration endpoint would complete the feature.

Additional information

This would make bot integration much more native and fluid, similar to Discord's slash command system. The @fluxerjs/core library removed interactions/slash commands support in v2.0.0 because the API doesn't have the registration endpoint yet.

2 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote
Status changed from Shipped to In progress
Reopened because staff closed this only since it was already in active development, so it had not shipped.
Comment by @Artimba
RexSystem 1 vote originally by @Artimba on GitHub
I've been hearing talk of this for a while now, is this really the first mention of it on GH discussions? Obviously +1 for this, feels like I'm sliding backwards writing bots without it.