![]() |
droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
|
#include <Core.hpp>
Static Public Member Functions | |
| static bool | is_admin (const dpp::guild_member &member) noexcept |
| checks if a guild member is admin of that guild | |
| static bool | is_erarnitox_admin (const dpp::guild_member &member) noexcept |
| checks if a guild member is admin erarnitox's server | |
| static std::string | get_role_id (const std::string &mention) noexcept |
| gets the id of a mentioned role | |
| static std::string | get_channel_id (const std::string &mention) noexcept |
| get the id of a channel from a mention | |
| static void | timed_reply (dpp::cluster &bot, const dpp::slashcommand_t event, const std::string &message, size_t time_mills) noexcept |
| replies to an event and displays the reply for a limited time | |
| static void | timed_reply (dpp::cluster &bot, const dpp::form_submit_t event, const std::string &message, size_t time_mills) noexcept |
| replies to an event and displays the reply for a limited time | |
| static void | timed_reply_private (dpp::cluster &bot, const dpp::slashcommand_t event, const std::string &message, size_t time_mills) noexcept |
| replies to an event and displays the reply for a limited time and only to the sender of the event | |
| static void | timed_reply_private (dpp::cluster &bot, const dpp::form_submit_t event, const std::string &message, size_t time_mills) noexcept |
| replies to an event and displays the reply for a limited time and only to the sender of the event | |
| static std::string | get_parameter (dpp::cluster &bot, const dpp::slashcommand_t event, const std::string &name, bool required=true) noexcept |
| get the parameter from a slash command | |
| static std::string | simple_hash (const std::string &string) noexcept |
| a very simply hashing function | |
|
staticnoexcept |
get the id of a channel from a mention
| mention | the mention string of a channel |
|
staticnodiscardnoexcept |
get the parameter from a slash command
| bot | the cluster that can be thought of the current bot instance |
| event | the slash command event |
| name | the name of the parameter |
|
staticnoexcept |
gets the id of a mentioned role
| mention | the mention string of a role |
|
staticnoexcept |
checks if a guild member is admin of that guild
| member | the guild member |
|
staticnoexcept |
checks if a guild member is admin erarnitox's server
| member | the guild member |
|
staticnodiscardnoexcept |
a very simply hashing function
| string | the data to be hashed |
|
staticnoexcept |
replies to an event and displays the reply for a limited time
| bot | the cluster that can be thought of the current bot instance |
| event | the event to be replied to |
| message | the text to be put into the reply message |
| time_mills | the time to display the reply in milliseconds |
|
staticnoexcept |
replies to an event and displays the reply for a limited time
| bot | the cluster that can be thought of the current bot instance |
| event | the event to be replied to |
| message | the text to be put into the reply message |
| time_mills | the time to display the reply in milliseconds |
|
staticnoexcept |
replies to an event and displays the reply for a limited time and only to the sender of the event
| bot | the cluster that can be thought of the current bot instance |
| event | the event to be replied to |
| message | the text to be put into the reply message |
| time_mills | the time to display the reply in milliseconds |
|
staticnoexcept |
replies to an event and displays the reply for a limited time and only to the sender of the event
| bot | the cluster that can be thought of the current bot instance |
| event | the event to be replied to |
| message | the text to be put into the reply message |
| time_mills | the time to display the reply in milliseconds |