droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
BotSlashCommandRegistrar.cpp File Reference
#include "BotSlashCommandRegistrar.hpp"
#include <dpp/cluster.h>
#include <dpp/dispatcher.h>
#include <dpp/once.h>
#include <fstream>
#include <string>
Include dependency graph for BotSlashCommandRegistrar.cpp:

Functions

void register_global_slash_commands_on_ready (ctx_t &ctx, const slash_commands_t &slash_commands)

Function Documentation

◆ register_global_slash_commands_on_ready()

void register_global_slash_commands_on_ready ( ctx_t & ctx,
const slash_commands_t & slash_commands )

Registers slash commands with Discord when the cluster becomes ready (checksum / bulk sync).