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

#include <SetPortalCommand.hpp>

Inheritance diagram for SetPortalCommand:
Collaboration diagram for SetPortalCommand:

Public Member Functions

 SetPortalCommand (AppContext &ctx)
void on_slashcommand (const dpp::slashcommand_t &event) override
void on_message_create (const dpp::message_create_t &event) override
Public Member Functions inherited from IGlobalSlashCommand
virtual ~IGlobalSlashCommand ()=default
Public Member Functions inherited from IMessageCommand
virtual ~IMessageCommand ()=default
virtual void on_message_delete (const dpp::message_delete_t &event)
virtual void on_message_delete_bulk (const dpp::message_delete_bulk_t &event)

Static Public Attributes

static constexpr std::string_view k_name {"set_portal"}
static constexpr std::string_view k_description {"Set a channel as a portal for foreign messages (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

◆ SetPortalCommand()

SetPortalCommand::SetPortalCommand ( AppContext & ctx)
explicit

Member Function Documentation

◆ on_message_create()

void SetPortalCommand::on_message_create ( const dpp::message_create_t & event)
overridevirtual

Reimplemented from IMessageCommand.

◆ on_slashcommand()

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

Implements IGlobalSlashCommand.

Member Data Documentation

◆ k_description

std::string_view SetPortalCommand::k_description {"Set a channel as a portal for foreign messages (Admin only!)"}
staticconstexpr

◆ k_name

std::string_view SetPortalCommand::k_name {"set_portal"}
staticconstexpr

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