40 Snowflake channelId{};
62 operator Serializer();
72 ExecuteWebHookData& addButton(
bool disabled, const std::
string& customIdNew, const std::
string& buttonLabel,
73 ButtonStyle buttonStyle, const std::
string& emojiName = "", Snowflake emojiId = Snowflake{},
const std::string& url =
"");
85 ExecuteWebHookData& addSelectMenu(
bool disabled,
const std::string& customIdNew, std::vector<SelectOptionData> options,
86 const std::string& placeholder, int32_t maxValues, int32_t minValues, SelectMenuType type,
87 std::vector<ChannelType> channelTypes = std::vector<ChannelType>{});
101 ExecuteWebHookData& addModal(
const std::string& topTitleNew,
const std::string& topCustomIdNew,
const std::string& titleNew,
102 const std::string& customIdNew,
bool required, int32_t minLength, int32_t maxLength, TextInputStyle inputStyle,
103 const std::string& label =
"",
const std::string& placeholder =
"");
108 ExecuteWebHookData& addFile(File theFile);
112 ExecuteWebHookData& addAllowedMentions(AllowedMentionsData dataPackage);
116 ExecuteWebHookData& addComponentRow(ActionRowData dataPackage);
120 ExecuteWebHookData& addMessageEmbed(EmbedData dataPackage);
124 ExecuteWebHookData& addContent(
const std::string& dataPackage);
128 ExecuteWebHookData& setTTSStatus(
bool enabledTTs);
131 std::vector<AttachmentData> attachments{};
132 std::vector<ActionRowData> components{};
134 std::vector<EmbedData> embeds{};
135 std::string webhookToken{};
136 std::vector<File> files{};
137 std::string avatarUrl{};
138 std::string userName{};
139 std::string customId{};
140 Snowflake webHookId{};
141 std::string content{};
155 Snowflake messageId{};
166 operator Serializer();
171 Snowflake channelId{};
181 Snowflake webHookId{};
186 std::string webhookToken{};
187 Snowflake webHookId{};
192 Snowflake channelId{};
193 Snowflake webHookId{};
194 std::string avatar{};
200 std::string webhookToken{};
201 Snowflake channelId{};
202 Snowflake webHookId{};
203 std::string avatar{};
209 Snowflake webHookId{};
214 std::string webhookToken{};
215 Snowflake webHookId{};
220 std::string webhookToken{};
221 Snowflake webHookId{};
222 Snowflake messageId{};
223 Snowflake threadId{};
228 std::string webhookToken{};
229 Snowflake webHookId{};
230 Snowflake messageId{};
242 virtual ~WebHook()
noexcept =
default;
245 class DiscordCoreAPI_Dll WebHookVector {
247 WebHookVector() noexcept = default;
249 operator std::vector<
WebHook>();
251 WebHookVector(Value jsonData);
253 virtual ~WebHookVector() noexcept = default;
256 std::vector<
WebHook> webHooks{};
268 static void initialize(DiscordCoreInternal::HttpsClient*);
336 static DiscordCoreInternal::HttpsClient* httpsClient;
ButtonStyle
Button styles.
The main namespace for this library.
A CoRoutine - representing a potentially asynchronous operation/function.
Allowable mentions for a Message.
For editing an Interaction response.
For creating an ephemeral follow up Message.
For creating a follow up Message.
For editing a follow up Message.
An interface class for the Interaction related Discord endpoints.
For creating a new WebHook.
For editing a WebHook Message.
For collecting a list of WebHooks from a chosen Channel.
For collecting a list of WebHooks from a chosen Guild.
Collects a single WebHook.
Collects a single WebHook, using the Token and Id.
For deleting a WebHook, using its Token.
For getting a WebHook Message.
For deleting a WebHook Message.
An interface class for the WebHook related Discord endpoints;.