droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ChallengeRoleCommand Class Reference

#include <ChallengeRoleCommand.hpp>

Inheritance diagram for ChallengeRoleCommand:
Collaboration diagram for ChallengeRoleCommand:

Public Member Functions

 ChallengeRoleCommand (AppContext &ctx)
void on_slashcommand (const dpp::slashcommand_t &event) override
void on_button_click (const dpp::button_click_t &event) override
void on_form_submit (const dpp::form_submit_t &event) override
Public Member Functions inherited from IGlobalSlashCommand
virtual ~IGlobalSlashCommand ()=default
Public Member Functions inherited from IButtonCommand
virtual ~IButtonCommand ()=default
Public Member Functions inherited from IFormCommand
virtual ~IFormCommand ()=default

Static Public Attributes

static constexpr std::string_view k_name {"challenge_role"}
static constexpr std::string_view k_description {"Create challenge Roles (Admin only!)"}

Additional Inherited Members

Public Attributes inherited from IGlobalSlashCommand
std::string command_name
std::string command_description
std::vector< dpp::command_option > command_options
bool admin_only {false}

Constructor & Destructor Documentation

◆ ChallengeRoleCommand()

ChallengeRoleCommand::ChallengeRoleCommand ( AppContext & ctx)
explicit

Member Function Documentation

◆ on_button_click()

void ChallengeRoleCommand::on_button_click ( const dpp::button_click_t & event)
overridevirtual

Implements IButtonCommand.

◆ on_form_submit()

void ChallengeRoleCommand::on_form_submit ( const dpp::form_submit_t & event)
overridevirtual

Implements IFormCommand.

◆ on_slashcommand()

void ChallengeRoleCommand::on_slashcommand ( const dpp::slashcommand_t & event)
overridevirtual

Implements IGlobalSlashCommand.

Member Data Documentation

◆ k_description

std::string_view ChallengeRoleCommand::k_description {"Create challenge Roles (Admin only!)"}
staticconstexpr

◆ k_name

std::string_view ChallengeRoleCommand::k_name {"challenge_role"}
staticconstexpr

The documentation for this class was generated from the following files: