DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
For editing a web_hook message_data. More...
#include <WebHookEntities.hpp>
Public Data Members | |
snowflake | messageId {} |
The message snowflake to collect. | |
snowflake | threadId {} |
Send a message to the specified thread within a webhook's channel_data. the thread will automatically be unarchived. | |
bool | wait {} |
Waits for server confirmation of message send before response, and returns the created message body. | |
Public Data Members inherited from discord_core_api::execute_web_hook_data | |
snowflake | threadId {} |
Send a message to the specified thread within a webhook's channel_data. the thread will automatically be unarchived. | |
bool | wait {} |
Waits for server confirmation of message send before response, and returns the created message body. | |
Additional Inherited Members | |
Public Member Functions inherited from discord_core_api::execute_web_hook_data | |
execute_web_hook_data & | addAllowedMentions (const allowed_mentions_data dataPackage) |
For setting the allowable mentions in a response. More... | |
execute_web_hook_data & | addButton (bool disabled, jsonifier::string_view customIdNew, jsonifier::string_view buttonLabel, button_style buttonStyle, jsonifier::string_view emojiName="", snowflake emojiId=snowflake{}, jsonifier::string_view url="") |
Adds a button to the response message_data. More... | |
execute_web_hook_data & | addComponentRow (const action_row_data dataPackage) |
For setting the components in a response. More... | |
execute_web_hook_data & | addContent (jsonifier::string_view dataPackage) |
For setting the content in a response. More... | |
execute_web_hook_data & | addFile (const file &theFile) |
Adds a file to the current collection of files for this message response. More... | |
execute_web_hook_data & | addMessageEmbed (const embed_data dataPackage) |
For setting the embeds in a response. More... | |
execute_web_hook_data & | addModal (jsonifier::string_view topTitleNew, jsonifier::string_view topCustomIdNew, jsonifier::string_view titleNew, jsonifier::string_view customIdNew, bool required, int32_t minLength, int32_t maxLength, text_input_style inputStyle, jsonifier::string_view label="", jsonifier::string_view placeholder="") |
Adds a modal to the response message_data. More... | |
execute_web_hook_data & | addSelectMenu (bool disabled, jsonifier::string_view customIdNew, const jsonifier::vector< select_option_data > &options, jsonifier::string_view placeholder, int32_t maxValues, int32_t minValues, select_menu_type type, const jsonifier::vector< channel_type > &channelTypes=jsonifier::vector< channel_type >{}) |
Adds a select-menu to the response message_data. More... | |
execute_web_hook_data & | setTTSStatus (bool enabledTTs) |
For setting the tts status of a response. More... | |