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

#include <ReactionRoles.hpp>

Inheritance diagram for ReactionRoles:
Collaboration diagram for ReactionRoles:

Public Member Functions

 ReactionRoles (AppContext &ctx)
void on_slashcommand (const dpp::slashcommand_t &event) override
void on_message_reaction_add (const dpp::message_reaction_add_t &event) override
void on_message_reaction_remove (const dpp::message_reaction_remove_t &event) override
Public Member Functions inherited from IGlobalSlashCommand
virtual ~IGlobalSlashCommand ()=default
Public Member Functions inherited from IReactionCommand
virtual ~IReactionCommand ()=default

Static Public Attributes

static constexpr std::string_view k_name {"reaction_role"}
static constexpr std::string_view k_description {"Create reaction 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

◆ ReactionRoles()

ReactionRoles::ReactionRoles ( AppContext & ctx)
explicit

Member Function Documentation

◆ on_message_reaction_add()

void ReactionRoles::on_message_reaction_add ( const dpp::message_reaction_add_t & event)
overridevirtual

Reimplemented from IReactionCommand.

◆ on_message_reaction_remove()

void ReactionRoles::on_message_reaction_remove ( const dpp::message_reaction_remove_t & event)
overridevirtual

Reimplemented from IReactionCommand.

◆ on_slashcommand()

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

Implements IGlobalSlashCommand.

Member Data Documentation

◆ k_description

std::string_view ReactionRoles::k_description {"Create reaction Roles (Admin only!)"}
staticconstexpr

◆ k_name

std::string_view ReactionRoles::k_name {"reaction_role"}
staticconstexpr

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