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::utils Namespace Reference

Namespaces

namespace  botUtils
 

Functions

bool getRequiredRole (const dpp::slashcommand_t &event, dpp::snowflake id)
 
std::vector< ErrorsendDM (std::shared_ptr< bot::Bot > aquin, std::vector< std::future< Error > > &futures, std::vector< std::future< Error > > &futuresMsgSet, std::vector< Error > &errorVec, dpp::snowflake member, const dpp::slashcommand_t &event, Debug &DMSendConfirmations)
 
std::vector< std::string > split (std::string str, std::string del)
 Split the string with a custom delimiter.
 
bool fileEmpty (std::ifstream &file)
 Check if a file is empty.
 
int stoi (std::string str)
 

Function Documentation

◆ fileEmpty()

bool bot::utils::fileEmpty ( std::ifstream & file)

Check if a file is empty.

Parameters
fileFile to get the data

◆ getRequiredRole()

bool bot::utils::getRequiredRole ( const dpp::slashcommand_t & event,
dpp::snowflake id )

◆ sendDM()

std::vector< Error > bot::utils::sendDM ( std::shared_ptr< bot::Bot > aquin,
std::vector< std::future< Error > > & futures,
std::vector< std::future< Error > > & futuresMsgSet,
std::vector< Error > & errorVec,
dpp::snowflake member,
const dpp::slashcommand_t & event,
Debug & DMSendConfirmations )

@beief Send a DM to the specific member of the server

Parameters
aquinThe bot to use
futuresGet future Error
futuresMsgSetGet future set Error
errorVecGet a vector of Errors
memberSend DM to member
DMSendConfirmatinoGet confirmation if DM is sent

◆ split()

std::vector< std::string > bot::utils::split ( std::string str,
std::string del )

Split the string with a custom delimiter.

Split - Function

Split - Function Split a str into a vector of a strs

Parameters
str
del
Returns
std::vector<std::string>

◆ stoi()

int bot::utils::stoi ( std::string str)