Add registration (needs leak fix), remove something from ping

This commit is contained in:
2026-08-30 17:11:36 +02:00
parent 9b7ce082c2
commit 35591b0701
5 changed files with 1166 additions and 5 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ bool hammy_bot_add_command(hammy_bot_t* bot, const hammy_command_t* command);
// Looks a command up by name. Returns a pointer into the vector's storage, or
// NULL. Valid until the vector is next modified, which after startup is never.
const hammy_command_t* hammy_bot_find_command(const hammy_bot_t* bot, const char* name);
// Wipes all commands from the Discord registry. Return true on success, false on failure.
bool hammy_bot_deregister_all_commands(hammy_bot_t* bot);
// Registers all commands with Discord. Return true if succeeded or already
// registered; false if failure. Requires bot->application_id to be set, so call
// this from on_ready, not before.