16#include <dpp/misc-enum.h>
29 static bool is_admin(
const dpp::guild_member& member)
noexcept;
33 static std::string
get_role_id(
const std::string& mention)
noexcept;
35 static std::string
get_channel_id(
const std::string& mention)
noexcept;
38 const dpp::slashcommand_t event,
39 const std::string& message,
40 size_t time_mills)
noexcept;
43 const dpp::form_submit_t event,
44 const std::string& message,
45 size_t time_mills)
noexcept;
48 const dpp::slashcommand_t event,
49 const std::string& message,
50 size_t time_mills)
noexcept;
53 const dpp::form_submit_t event,
54 const std::string& message,
55 size_t time_mills)
noexcept;
57 [[nodiscard]]
static std::string
get_parameter(dpp::cluster& bot,
58 const dpp::slashcommand_t event,
59 const std::string& name,
60 bool required =
true)
noexcept;
62 [[nodiscard]]
static std::string
simple_hash(
const std::string&
string)
noexcept;
static bool is_erarnitox_admin(const dpp::guild_member &member) noexcept
checks if a guild member is admin erarnitox's server
Definition Core.cpp:42
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
Definition Core.cpp:183
static bool is_admin(const dpp::guild_member &member) noexcept
checks if a guild member is admin of that guild
Definition Core.cpp:26
static std::string simple_hash(const std::string &string) noexcept
a very simply hashing function
Definition Core.cpp:239
static std::string get_channel_id(const std::string &mention) noexcept
get the id of a channel from a mention
Definition Core.cpp:82
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
Definition Core.cpp:215
static std::string get_role_id(const std::string &mention) noexcept
gets the id of a mentioned role
Definition Core.cpp:65
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
Definition Core.cpp:126