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
slashCommands.hpp
Go to the documentation of this file.
1#include <memory>
2#include <vector>
3
4#include <dpp/dpp.h>
5
9
10namespace bot
11{
12 namespace utils
13 {
23 std::vector<Error> sendDM(
24 std::shared_ptr<bot::Bot> aquin,
25
26 std::vector<std::future<Error>> &futures,
27 std::vector<std::future<Error>> &futuresMsgSet,
28 std::vector<Error> &errorVec,
29
30 dpp::snowflake member,
31
32 const dpp::slashcommand_t &event,
33
34 Debug &DMSendConfirmations
35 );
36 }
37
38 namespace commands
39 {
47 std::vector<Error> commandIsOnWork(const dpp::slashcommand_t &event, std::shared_ptr<bot::Bot> aquin);
48
56 std::vector<Error> ping(const dpp::slashcommand_t &event, std::shared_ptr<bot::Bot> aquin);
57
65 std::vector<Error> announce(const dpp::slashcommand_t &event, std::shared_ptr<bot::Bot> aquin);
66
74 std::vector<Error> info(const dpp::slashcommand_t &event, std::shared_ptr<bot::Bot> aquin);
75
83 std::vector<Error> setStatus(const dpp::slashcommand_t &event, std::shared_ptr<bot::Bot> aquin);
84 }
85}
Definition slashCommands.cpp:131
std::vector< Error > setStatus(const dpp::slashcommand_t &event, std::shared_ptr< bot::Bot > aquin)
Set the status of the bot.
Definition slashCommands.cpp:275
std::vector< Error > info(const dpp::slashcommand_t &event, std::shared_ptr< bot::Bot > aquin)
Returns the info about Aquin and more.
Definition slashCommands.cpp:255
std::vector< Error > ping(const dpp::slashcommand_t &event, std::shared_ptr< bot::Bot > aquin)
Returns pong.
Definition slashCommands.cpp:143
std::vector< Error > commandIsOnWork(const dpp::slashcommand_t &event, std::shared_ptr< bot::Bot > aquin)
Replies Msg when the command is on work.
Definition slashCommands.cpp:132
std::vector< Error > announce(const dpp::slashcommand_t &event, std::shared_ptr< bot::Bot > aquin)
Announce something to someones DMs.
Definition slashCommands.cpp:154
Definition slashCommands.cpp:26
std::vector< Error > 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)
Definition slashCommands.cpp:35
Definition cli.cpp:17