16#include <dpp/misc-enum.h>
29 static auto is_admin(
const dpp::guild_member& member)
noexcept -> bool;
33 static auto get_role_id(
const std::string& mention)
noexcept -> std::string;
35 static auto get_channel_id(
const std::string& mention)
noexcept -> std::string;
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;
58 const dpp::slashcommand_t event,
59 const std::string& name,
60 bool required =
true)
noexcept -> std::string;
62 [[nodiscard]]
static auto simple_hash(
const std::string&
string) -> std::string;
static auto get_parameter(dpp::cluster &bot, const dpp::slashcommand_t event, const std::string &name, bool required=true) noexcept -> std::string
get the parameter from a slash command
Definition Core.cpp:222
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:190
static auto is_dropsoft_admin(const dpp::guild_member &member) noexcept -> bool
checks if a guild member is admin of dropsoft
Definition Core.cpp:46
static auto get_channel_id(const std::string &mention) noexcept -> std::string
get the id of a channel from a mention
Definition Core.cpp:89
static auto is_admin(const dpp::guild_member &member) noexcept -> bool
checks if a guild member is admin of that guild
Definition Core.cpp:31
static auto get_role_id(const std::string &mention) noexcept -> std::string
gets the id of a mentioned role
Definition Core.cpp:72
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:133
static auto simple_hash(const std::string &string) -> std::string
Definition Core.cpp:240