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

#include <Bot.hpp>

Collaboration diagram for Bot:

Public Member Functions

 Bot (const std::string &token)
 Bot (const Bot &)=delete
Bot & operator= (const Bot &)=delete
dpp::cluster & discord () noexcept
void add_slash_command (const std::shared_ptr< IGlobalSlashCommand > &slash_command)
void add_button_command (const std::shared_ptr< IButtonCommand > &button_command)
void add_form_command (const std::shared_ptr< IFormCommand > &form_command)
void add_message_command (const std::shared_ptr< IMessageCommand > &message_command)
void add_message_delete_command (const std::shared_ptr< IMessageCommand > &message_command)
void add_reaction_command (const std::shared_ptr< IReactionCommand > &reaction_command)
void add_ready_command (const std::shared_ptr< IReady > &ready_command)
void run ()
void shutdown () noexcept

Public Attributes

slash_commands_t slash_commands
button_commands_t button_commands
form_commands_t form_commands
message_commands_t message_commands
message_commands_t message_delete_commands
reaction_commands_t reaction_commands
ready_commands_t ready_commands

Constructor & Destructor Documentation

◆ Bot() [1/2]

Bot::Bot ( const std::string & token)
explicit

◆ Bot() [2/2]

Bot::Bot ( const Bot & )
delete

Member Function Documentation

◆ add_button_command()

void Bot::add_button_command ( const std::shared_ptr< IButtonCommand > & button_command)

◆ add_form_command()

void Bot::add_form_command ( const std::shared_ptr< IFormCommand > & form_command)

◆ add_message_command()

void Bot::add_message_command ( const std::shared_ptr< IMessageCommand > & message_command)

◆ add_message_delete_command()

void Bot::add_message_delete_command ( const std::shared_ptr< IMessageCommand > & message_command)

◆ add_reaction_command()

void Bot::add_reaction_command ( const std::shared_ptr< IReactionCommand > & reaction_command)

◆ add_ready_command()

void Bot::add_ready_command ( const std::shared_ptr< IReady > & ready_command)

◆ add_slash_command()

void Bot::add_slash_command ( const std::shared_ptr< IGlobalSlashCommand > & slash_command)

◆ discord()

dpp::cluster & Bot::discord ( )
inlinenodiscardnoexcept

◆ operator=()

Bot & Bot::operator= ( const Bot & )
delete

◆ run()

void Bot::run ( )

◆ shutdown()

void Bot::shutdown ( )
noexcept

Member Data Documentation

◆ button_commands

button_commands_t Bot::button_commands

◆ form_commands

form_commands_t Bot::form_commands

◆ message_commands

message_commands_t Bot::message_commands

◆ message_delete_commands

message_commands_t Bot::message_delete_commands

◆ reaction_commands

reaction_commands_t Bot::reaction_commands

◆ ready_commands

ready_commands_t Bot::ready_commands

◆ slash_commands

slash_commands_t Bot::slash_commands

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