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
utils.hpp
Go to the documentation of this file.
1#include <string>
2#include <vector>
3#include <sstream>
4
5#include <dpp/dpp.h>
6
7namespace bot::utils
8{
15 std::vector<std::string> split(std::string str, std::string del);
16
17 /* Stoi (String to int) - Function
18 * Convert a string to an int
19 * @param str
20 * @return int
21 */
22 int stoi(std::string str);
23
28 bool fileEmpty(std::ifstream &file);
29
30 namespace botUtils
31 {
32 /* Get role members - Functions
33 * Get role members depending on the `target` snowflake and guild. Return a vector a snowflakes
34 * @param guild
35 * @param target
36 * @return std::vector<dpp::snowflake>
37 */
38 std::vector<dpp::snowflake> getRoleMembers(dpp::guild *guild, dpp::snowflake target);
39 }
40}
Definition utils.cpp:54
std::vector< dpp::snowflake > getRoleMembers(dpp::guild *guild, dpp::snowflake target)
Definition utils.cpp:55
Definition slashCommands.cpp:26
int stoi(std::string str)
Definition utils.cpp:33
std::vector< std::string > split(std::string str, std::string del)
Split the string with a custom delimiter.
Definition utils.cpp:15
bool fileEmpty(std::ifstream &file)
Check if a file is empty.
Definition utils.cpp:28