AquinBot 1.0.2
Official AquinBot made by Team Aquin | Finaly a simple Open Source Discord bot made in C++ by Aquin
 
Loading...
Searching...
No Matches
bot::Msg Class Reference

#include <Msg.hpp>

Public Member Functions

 Msg (const dpp::slashcommand_t &event, std::string msg, uint16_t flags=0)
 
 Msg (const dpp::slashcommand_t &event)
 
void send (Msg msg)
 
void send ()
 
void thinking (Msg msg)
 
void thinking ()
 
void edit (Msg msg)
 
void edit ()
 
dpp::message getMsg (std::string msg, uint16_t flags)
 
dpp::message getMsg ()
 

Static Public Attributes

static std::string msg
 
static uint16_t flags
 

Static Private Attributes

static dpp::slashcommand_t event
 

Constructor & Destructor Documentation

◆ Msg() [1/2]

bot::Msg::Msg ( const dpp::slashcommand_t & event,
std::string msg,
uint16_t flags = 0 )

Msg - Constructor Create a Msg with the specified event, msg and flags

Parameters
event
msg
flags

◆ Msg() [2/2]

bot::Msg::Msg ( const dpp::slashcommand_t & event)

Msg - Constructor - Overload Create an empty Msg

Parameters
event

Member Function Documentation

◆ edit() [1/2]

void bot::Msg::edit ( )

Edit - Function - Overload Edit the previous message that was thought using Msg::thinking()

◆ edit() [2/2]

void bot::Msg::edit ( Msg msg)

Edit - Function Edit the previous message that was thought using Msg::thinking()

Parameters
msg

◆ getMsg() [1/2]

dpp::message bot::Msg::getMsg ( )

Get Message - Function - Overload Get the current message from this object

Returns
dpp::message

◆ getMsg() [2/2]

dpp::message bot::Msg::getMsg ( std::string msg,
uint16_t flags )

Get Message - Function Get the current message with the specified msg and flags

Parameters
msg
flags
Returns
dpp::message

◆ send() [1/2]

void bot::Msg::send ( )

Send - Function - Overload Send the current message

◆ send() [2/2]

void bot::Msg::send ( Msg msg)

Send - Function Send the msg

◆ thinking() [1/2]

void bot::Msg::thinking ( )

Thinking - Function - overload When sending message takes too long, use this function, this will send a "Thinking" message and then edit it to done once the operation is done

◆ thinking() [2/2]

void bot::Msg::thinking ( Msg msg)

Thinking - Function When sending message takes too long, use this function, this will send a "Thinking" message and then edit it to done once the operation is done

Parameters
msg

Member Data Documentation

◆ event

dpp::slashcommand_t bot::Msg::event
staticprivate

◆ flags

uint16_t bot::Msg::flags
static

◆ msg

std::string bot::Msg::msg
static

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