diff --git a/annotated.html b/annotated.html index 8c444f99816..230f2941bf0 100644 --- a/annotated.html +++ b/annotated.html @@ -358,91 +358,92 @@  Cmessage_create_tCreate message  Cmessage_delete_bulk_tMessage delete bulk  Cmessage_delete_tMessage Deleted - Cmessage_reaction_add_tMessage reaction add - Cmessage_reaction_remove_all_tMessage remove all reactions - Cmessage_reaction_remove_emoji_tMessage remove emoji - Cmessage_reaction_remove_tMessage reaction remove - Cmessage_update_tMessage update - Cmoving_averager - Cmultipart_contentRepresents a multipart mime body and the correct top-level mime type If a non-multipart request is passed in, this is represented as a plain body and the application/json mime type - ConboardingRepresents a guild's onboarding flow - Conboarding_promptRepresents an onboarding prompt - Conboarding_prompt_optionRepresents an onboarding prompt option - Coneshot_timerTrigger a timed event once. The provided callback is called only once - Cparam_infoDetails of a command parameter used in registration. Note that for non-slash commands optional parameters can only be at the end of the list of parameters - Cparse_exceptionRepresents inability to parse data, usually caused by malformed JSON or ETF - CpermissionRepresents a permission bitmask (refer to enum dpp::permissions) which are held in an uint64_t - Cpermission_overwriteChannel permission overwrites - CpresenceRepresents user presence, e.g. what game they are playing and if they are online - Cpresence_update_tPresence update - CpruneDefines a request to count prunable users, or start a prune operation - CreactionRepresents a reaction to a dpp::message - Creaction_collectorReaction collector. Collects message reactions during a set timeframe and returns them in a list via the completed() method - Cready_tSession ready - Crequest_queueThe request_queue class manages rate limits and marshalls HTTP requests that have been built as http_request objects - Cresolved_userDpp::resolved_user contains both a dpp::guild_member and a dpp::user. The user can be used to obtain in-depth user details such as if they are nitro, and the guild member information to check their roles on a guild etc. The Discord API provides both if a parameter is a user ping, so we offer both in a combined structure - Crest_exceptionRepresents an error on a REST API call, e.g. a HTTPS request - Cresumed_tSession resumed - CroleRepresents a role within a dpp::guild. Roles are combined via logical OR of the permission bitmasks, then channel-specific overrides can be applied on top, deny types apply a logic NOT to the bit mask, and allows apply a logical OR - Crole_collectorRole collector. Collects guild roles during a set timeframe and returns them in a list via the completed() method - Cscheduled_eventA scheduled event - Cscheduled_event_collectorScheduled event collector. Collects messages during a set timeframe and returns them in a list via the completed() method - Cselect_click_tClick on select - Cselect_optionAn option for a select component - CskuA definition of a discord SKU - CslashcommandRepresents an application command, created by your bot either globally, or on a guild - Cslashcommand_tUser has issued a slash command - CsnowflakeA container for a 64 bit unsigned value representing many things on discord. This value is known in distributed computing as a snowflake value - Cssl_clientImplements a simple non-blocking SSL stream client - Cstage_instanceA stage instance. Stage instances are like a conference facility, with moderators/speakers and listeners - Cstage_instance_create_tCreate stage instance - Cstage_instance_delete_tDelete stage instance - Cstage_instance_update_tUpdate stage instance - CstickerRepresents stickers received in messages - Csticker_packRepresents a sticker pack (the built in groups of stickers that all nitro users get to use) - CtaskA coroutine task. It starts immediately on construction and can be co_await-ed, making it perfect for parallel coroutines returning a value - Ctask_cancelled_exceptionRepresents the cancellation of a task. Will be thrown to the awaiter of a cancelled task - Ctask_dummy - Cteam_memberRepresents a team member on a team who maintain a bot/application - CthreadA definition of a discord thread. A thread is a superset of a channel. Not to be confused with std::thread! - Cthread_collectorThread collector. Collects threads during a set timeframe and returns them in a list via the completed() method - Cthread_create_tThread Create - Cthread_delete_tThread Delete - Cthread_list_sync_tThread List Sync - Cthread_memberRepresents membership of a user with a thread - Cthread_member_update_tThread Member Update - Cthread_members_update_tThread Members Update - Cthread_metadataMetadata for threads - Cthread_update_tThread Update - Ctimed_listenerA timed_listener is a way to temporarily attach to an event for a specific timeframe, then detach when complete. A lambda may also be optionally called when the timeout is reached. Destructing the timed_listener detaches any attached event listeners, and cancels any created timers, but does not call any timeout lambda - Ctimer_tUsed internally to store state of active timers - Ctyping_start_tTyping start - CuserRepresents a user on discord. May or may not be a member of a dpp::guild - Cuser_context_menu_tEvent parameter for context menu interactions for users - Cuser_identifiedA user with additional fields only available via the oauth2 identify scope. These are not included in dpp::user as additional scopes are needed to fetch them which bots do not normally have - Cuser_update_tUser update - Cvoice_buffer_send_tVoice buffer send - Cvoice_client_disconnect_tVoice client disconnect event - Cvoice_client_speaking_tVoice client speaking event - Cvoice_exceptionRepresents an error with voice processing - Cvoice_out_packetAn opus-encoded RTP packet to be sent out to a voice channel - Cvoice_ready_tVoice user talking - Cvoice_receive_tVoice receive packet - Cvoice_server_update_tVoice server update - Cvoice_state_update_tVoice state update - Cvoice_track_marker_tVoice state update - Cvoice_user_talking_tVoice user talking - CvoiceconnRepresents a connection to a voice channel. A client can only connect to one voice channel per guild at a time, so these are stored in a map in the dpp::discord_client keyed by guild_id - CvoiceregionRepresents a voice region on discord - CvoicestateRepresents the voice state of a user on a guild These are stored in the dpp::guild object, and accessible there, or via dpp::channel::get_voice_members - CwebhookRepresents a discord webhook - Cwebhooks_update_tWebhooks update - Cwebsocket_clientImplements a websocket client based on the SSL client - Cwelcome_channelDefines a channel on a server's welcome screen - Cwelcome_screenDefines a server's welcome screen - Cwhen_anyExperimental class to co_await on a bunch of awaitable objects, resuming when the first one completes. On completion, returns a result object that contains the index of the awaitable that finished first. A user can call result::index() and result::get<N>() on the result object to get the result, similar to std::variant - CawaiterObject returned by operator co_await(). Meant to be used by the standard library, not by a user - CresultObject returned by operator co_await() on resumption. Can be moved but not copied + Cmessage_file_dataThe data for a file attached to a message + Cmessage_reaction_add_tMessage reaction add + Cmessage_reaction_remove_all_tMessage remove all reactions + Cmessage_reaction_remove_emoji_tMessage remove emoji + Cmessage_reaction_remove_tMessage reaction remove + Cmessage_update_tMessage update + Cmoving_averager + Cmultipart_contentRepresents a multipart mime body and the correct top-level mime type If a non-multipart request is passed in, this is represented as a plain body and the application/json mime type + ConboardingRepresents a guild's onboarding flow + Conboarding_promptRepresents an onboarding prompt + Conboarding_prompt_optionRepresents an onboarding prompt option + Coneshot_timerTrigger a timed event once. The provided callback is called only once + Cparam_infoDetails of a command parameter used in registration. Note that for non-slash commands optional parameters can only be at the end of the list of parameters + Cparse_exceptionRepresents inability to parse data, usually caused by malformed JSON or ETF + CpermissionRepresents a permission bitmask (refer to enum dpp::permissions) which are held in an uint64_t + Cpermission_overwriteChannel permission overwrites + CpresenceRepresents user presence, e.g. what game they are playing and if they are online + Cpresence_update_tPresence update + CpruneDefines a request to count prunable users, or start a prune operation + CreactionRepresents a reaction to a dpp::message + Creaction_collectorReaction collector. Collects message reactions during a set timeframe and returns them in a list via the completed() method + Cready_tSession ready + Crequest_queueThe request_queue class manages rate limits and marshalls HTTP requests that have been built as http_request objects + Cresolved_userDpp::resolved_user contains both a dpp::guild_member and a dpp::user. The user can be used to obtain in-depth user details such as if they are nitro, and the guild member information to check their roles on a guild etc. The Discord API provides both if a parameter is a user ping, so we offer both in a combined structure + Crest_exceptionRepresents an error on a REST API call, e.g. a HTTPS request + Cresumed_tSession resumed + CroleRepresents a role within a dpp::guild. Roles are combined via logical OR of the permission bitmasks, then channel-specific overrides can be applied on top, deny types apply a logic NOT to the bit mask, and allows apply a logical OR + Crole_collectorRole collector. Collects guild roles during a set timeframe and returns them in a list via the completed() method + Cscheduled_eventA scheduled event + Cscheduled_event_collectorScheduled event collector. Collects messages during a set timeframe and returns them in a list via the completed() method + Cselect_click_tClick on select + Cselect_optionAn option for a select component + CskuA definition of a discord SKU + CslashcommandRepresents an application command, created by your bot either globally, or on a guild + Cslashcommand_tUser has issued a slash command + CsnowflakeA container for a 64 bit unsigned value representing many things on discord. This value is known in distributed computing as a snowflake value + Cssl_clientImplements a simple non-blocking SSL stream client + Cstage_instanceA stage instance. Stage instances are like a conference facility, with moderators/speakers and listeners + Cstage_instance_create_tCreate stage instance + Cstage_instance_delete_tDelete stage instance + Cstage_instance_update_tUpdate stage instance + CstickerRepresents stickers received in messages + Csticker_packRepresents a sticker pack (the built in groups of stickers that all nitro users get to use) + CtaskA coroutine task. It starts immediately on construction and can be co_await-ed, making it perfect for parallel coroutines returning a value + Ctask_cancelled_exceptionRepresents the cancellation of a task. Will be thrown to the awaiter of a cancelled task + Ctask_dummy + Cteam_memberRepresents a team member on a team who maintain a bot/application + CthreadA definition of a discord thread. A thread is a superset of a channel. Not to be confused with std::thread! + Cthread_collectorThread collector. Collects threads during a set timeframe and returns them in a list via the completed() method + Cthread_create_tThread Create + Cthread_delete_tThread Delete + Cthread_list_sync_tThread List Sync + Cthread_memberRepresents membership of a user with a thread + Cthread_member_update_tThread Member Update + Cthread_members_update_tThread Members Update + Cthread_metadataMetadata for threads + Cthread_update_tThread Update + Ctimed_listenerA timed_listener is a way to temporarily attach to an event for a specific timeframe, then detach when complete. A lambda may also be optionally called when the timeout is reached. Destructing the timed_listener detaches any attached event listeners, and cancels any created timers, but does not call any timeout lambda + Ctimer_tUsed internally to store state of active timers + Ctyping_start_tTyping start + CuserRepresents a user on discord. May or may not be a member of a dpp::guild + Cuser_context_menu_tEvent parameter for context menu interactions for users + Cuser_identifiedA user with additional fields only available via the oauth2 identify scope. These are not included in dpp::user as additional scopes are needed to fetch them which bots do not normally have + Cuser_update_tUser update + Cvoice_buffer_send_tVoice buffer send + Cvoice_client_disconnect_tVoice client disconnect event + Cvoice_client_speaking_tVoice client speaking event + Cvoice_exceptionRepresents an error with voice processing + Cvoice_out_packetAn opus-encoded RTP packet to be sent out to a voice channel + Cvoice_ready_tVoice user talking + Cvoice_receive_tVoice receive packet + Cvoice_server_update_tVoice server update + Cvoice_state_update_tVoice state update + Cvoice_track_marker_tVoice state update + Cvoice_user_talking_tVoice user talking + CvoiceconnRepresents a connection to a voice channel. A client can only connect to one voice channel per guild at a time, so these are stored in a map in the dpp::discord_client keyed by guild_id + CvoiceregionRepresents a voice region on discord + CvoicestateRepresents the voice state of a user on a guild These are stored in the dpp::guild object, and accessible there, or via dpp::channel::get_voice_members + CwebhookRepresents a discord webhook + Cwebhooks_update_tWebhooks update + Cwebsocket_clientImplements a websocket client based on the SSL client + Cwelcome_channelDefines a channel on a server's welcome screen + Cwelcome_screenDefines a server's welcome screen + Cwhen_anyExperimental class to co_await on a bunch of awaitable objects, resuming when the first one completes. On completion, returns a result object that contains the index of the awaitable that finished first. A user can call result::index() and result::get<N>() on the result object to get the result, similar to std::variant + CawaiterObject returned by operator co_await(). Meant to be used by the standard library, not by a user + CresultObject returned by operator co_await() on resumption. Can be moved but not copied  NstdSTL namespace  Chash< dpp::snowflake > diff --git a/annotated_dup.js b/annotated_dup.js index 27acf84dc28..cdfc11aad20 100644 --- a/annotated_dup.js +++ b/annotated_dup.js @@ -261,6 +261,7 @@ var annotated_dup = [ "message_create_t", "structdpp_1_1message__create__t.html", "structdpp_1_1message__create__t" ], [ "message_delete_bulk_t", "structdpp_1_1message__delete__bulk__t.html", "structdpp_1_1message__delete__bulk__t" ], [ "message_delete_t", "structdpp_1_1message__delete__t.html", "structdpp_1_1message__delete__t" ], + [ "message_file_data", "structdpp_1_1message__file__data.html", "structdpp_1_1message__file__data" ], [ "message_reaction_add_t", "structdpp_1_1message__reaction__add__t.html", "structdpp_1_1message__reaction__add__t" ], [ "message_reaction_remove_all_t", "structdpp_1_1message__reaction__remove__all__t.html", "structdpp_1_1message__reaction__remove__all__t" ], [ "message_reaction_remove_emoji_t", "structdpp_1_1message__reaction__remove__emoji__t.html", "structdpp_1_1message__reaction__remove__emoji__t" ], diff --git a/awaiting-events.html b/awaiting-events.html index 2eab7cc956f..299937bb536 100644 --- a/awaiting-events.html +++ b/awaiting-events.html @@ -154,7 +154,7 @@
dpp::cluster
The cluster class represents a group of shards and a command queue for sending and receiving commands...
Definition: cluster.h:80
dpp::cluster::on_log
event_router_t< log_t > on_log
Called when a log message is to be written to the log. You can attach any logging system here you wis...
Definition: cluster.h:462
dpp::cluster::on_button_click
event_router_t< button_click_t > on_button_click
Called when a button is clicked attached to a message. Button clicks are triggered by discord when bu...
Definition: cluster.h:506
-
dpp::component
Represents the component object. A component is a clickable button or drop down list within a discord...
Definition: message.h:309
+
dpp::component
Represents the component object. A component is a clickable button or drop down list within a discord...
Definition: message.h:333
dpp::component::set_id
component & set_id(const std::string &id)
Set the id of the component. For action rows, this field is ignored. Setting the id will auto-set the...
dpp::component::set_label
component & set_label(const std::string &label)
Set the label of the component, e.g. button text. For action rows, this field is ignored....
dpp::component::set_type
component & set_type(component_type ct)
Set the type of the component. Button components (type dpp::cot_button) should always be contained wi...
@@ -173,7 +173,7 @@
dpp::interaction_create_t::edit_original_response
void edit_original_response(const message &m, command_completion_event_t callback=utility::log_error()) const
Edit original response message for this interaction.
dpp::interaction_create_t::command
interaction command
command interaction
Definition: dispatcher.h:677
dpp::interaction_create_t::co_reply
dpp::async< dpp::confirmation_callback_t > co_reply() const
Acknowledge interaction without displaying a message to the user, for use with button and select menu...
-
dpp::message
Represents messages sent and received on Discord.
Definition: message.h:1714
+
dpp::message
Represents messages sent and received on Discord.
Definition: message.h:1738
dpp::ready_t
Session ready.
Definition: dispatcher.h:960
dpp::slashcommand_t
User has issued a slash command.
Definition: dispatcher.h:694

Note that there is a problem with that! If the user never clicks your button, or if the message gets deleted, your coroutine will be stuck waiting... And waiting... Forever until your bot shuts down, occupying a space in memory. This is where the next example comes into play as a solution, with a button that expires with time.

diff --git a/caching-messages.html b/caching-messages.html index 17f67a347c4..4ac4b0ef237 100644 --- a/caching-messages.html +++ b/caching-messages.html @@ -180,8 +180,8 @@
dpp::interaction_create_t::command
interaction command
command interaction
Definition: dispatcher.h:677
dpp::interaction_create_t::get_parameter
virtual command_value get_parameter(const std::string &name) const
Get a slashcommand parameter.
dpp::message_create_t
Create message.
Definition: dispatcher.h:1624
-
dpp::message
Represents messages sent and received on Discord.
Definition: message.h:1714
-
dpp::message::content
std::string content
Contents of the message.
Definition: message.h:1759
+
dpp::message
Represents messages sent and received on Discord.
Definition: message.h:1738
+
dpp::message::content
std::string content
Contents of the message.
Definition: message.h:1783
dpp::ready_t
Session ready.
Definition: dispatcher.h:960
dpp::slashcommand_t
User has issued a slash command.
Definition: dispatcher.h:694
diff --git a/callback-functions.html b/callback-functions.html index 1f96205d3d8..1192b7a3d43 100644 --- a/callback-functions.html +++ b/callback-functions.html @@ -212,7 +212,7 @@
dpp::confirmation_callback_t::get
T get() const
Get the stored value via std::get.
Definition: restresults.h:323
dpp::interaction_create_t::reply
void reply(command_completion_event_t callback=utility::log_error()) const
Acknowledge interaction without displaying a message to the user, for use with button and select menu...
dpp::interaction_create_t::command
interaction command
command interaction
Definition: dispatcher.h:677
-
dpp::message
Represents messages sent and received on Discord.
Definition: message.h:1714
+
dpp::message
Represents messages sent and received on Discord.
Definition: message.h:1738
dpp::ready_t
Session ready.
Definition: dispatcher.h:960
dpp::slashcommand_t
User has issued a slash command.
Definition: dispatcher.h:694

This is the result:

diff --git a/classdpp_1_1channel__collector.html b/classdpp_1_1channel__collector.html index 8feadc70bb2..daac8b050e6 100644 --- a/classdpp_1_1channel__collector.html +++ b/classdpp_1_1channel__collector.html @@ -408,7 +408,7 @@

virtual const dpp::channel * filter(const dpp::channel_create_t &element)
Select and filter the items which are to appear in the list This is called every time a new event is ...
Definition: collector.h:354
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters
diff --git a/classdpp_1_1cluster-members.html b/classdpp_1_1cluster-members.html index 830dfc6abca..b798842a1e9 100644 --- a/classdpp_1_1cluster-members.html +++ b/classdpp_1_1cluster-members.html @@ -724,7 +724,7 @@ - + diff --git a/classdpp_1_1cluster.html b/classdpp_1_1cluster.html index 0036494f25b..63c61471c90 100644 --- a/classdpp_1_1cluster.html +++ b/classdpp_1_1cluster.html @@ -200,9 +200,9 @@ - - - + + + @@ -24934,8 +24934,8 @@

-

◆ post_rest_multipart()

+ +

◆ post_rest_multipart()

@@ -24979,20 +24979,8 @@

- - - - - - - - - - - - - - + + @@ -25011,9 +24999,7 @@

method

- - - +
elementThe event data to filter
operator=(const cluster &)=deletedpp::cluster
operator=(const cluster &&)=deletedpp::cluster
post_rest(const std::string &endpoint, const std::string &major_parameters, const std::string &parameters, http_method method, const std::string &postdata, json_encode_t callback, const std::string &filename="", const std::string &filecontent="", const std::string &filemimetype="", const std::string &protocol="1.1")dpp::cluster
post_rest_multipart(const std::string &endpoint, const std::string &major_parameters, const std::string &parameters, http_method method, const std::string &postdata, json_encode_t callback, const std::vector< std::string > &filename={}, const std::vector< std::string > &filecontent={}, const std::vector< std::string > &filemimetypes={})dpp::cluster
post_rest_multipart(const std::string &endpoint, const std::string &major_parameters, const std::string &parameters, http_method method, const std::string &postdata, json_encode_t callback, const std::vector< message_file_data > &file_data={})dpp::cluster
request(const std::string &url, http_method method, http_completion_event callback, const std::string &postdata="", const std::string &mimetype="text/plain", const std::multimap< std::string, std::string > &headers={}, const std::string &protocol="1.1")dpp::cluster
rest_pingdpp::cluster
role_create(const class role &r, command_completion_event_t callback=utility::log_error())dpp::cluster
void post_rest (const std::string &endpoint, const std::string &major_parameters, const std::string &parameters, http_method method, const std::string &postdata, json_encode_t callback, const std::string &filename="", const std::string &filecontent="", const std::string &filemimetype="", const std::string &protocol="1.1")
 Post a REST request. Where possible use a helper method instead like message_create. More...
 
void post_rest_multipart (const std::string &endpoint, const std::string &major_parameters, const std::string &parameters, http_method method, const std::string &postdata, json_encode_t callback, const std::vector< std::string > &filename={}, const std::vector< std::string > &filecontent={}, const std::vector< std::string > &filemimetypes={})
 Post a multipart REST request. Where possible use a helper method instead like message_create. More...
 
void post_rest_multipart (const std::string &endpoint, const std::string &major_parameters, const std::string &parameters, http_method method, const std::string &postdata, json_encode_t callback, const std::vector< message_file_data > &file_data={})
 Post a multipart REST request. Where possible use a helper method instead like message_create. More...
 
void request (const std::string &url, http_method method, http_completion_event callback, const std::string &postdata="", const std::string &mimetype="text/plain", const std::multimap< std::string, std::string > &headers={}, const std::string &protocol="1.1")
 Make a HTTP(S) request. For use when wanting asynchronous access to HTTP APIs outside of Discord. More...
 
const std::vector< std::string > & filename = {},
const std::vector< std::string > & filecontent = {},
const std::vector< std::string > & filemimetypes = {} const std::vector< message_file_data > & file_data = {} 
Method, e.g. GET, POST
postdataPost data (usually JSON encoded)
callbackFunction to call when the HTTP call completes. The callback parameter will contain amongst other things, the decoded json.
filenameList of filenames to post for POST requests (for uploading files)
filecontentList of file content to post for POST requests (for uploading files)
filemimetypesList of mime types for each file to post for POST requests (for uploading files)
file_dataList of files to post for POST requests (for uploading files)
diff --git a/classdpp_1_1cluster.js b/classdpp_1_1cluster.js index e1b67aaac05..d897583a420 100644 --- a/classdpp_1_1cluster.js +++ b/classdpp_1_1cluster.js @@ -532,7 +532,7 @@ var classdpp_1_1cluster = [ "operator=", "classdpp_1_1cluster.html#a17780ca53ef05b8d66df90185eb51a04", null ], [ "operator=", "classdpp_1_1cluster.html#adfece237b42b8a0ab4d81c000e159fd6", null ], [ "post_rest", "classdpp_1_1cluster.html#a4d102b15a0a4d74fd1f9ee4fc3aa8bbf", null ], - [ "post_rest_multipart", "classdpp_1_1cluster.html#a3c540c26342e8238a76b8ac252f7f262", null ], + [ "post_rest_multipart", "classdpp_1_1cluster.html#a548e19022b7d3ee825920888da07493b", null ], [ "request", "classdpp_1_1cluster.html#aa4ead3406c471a64fa1fa578cc51cf2e", null ], [ "role_create", "classdpp_1_1cluster.html#a849017410297379997601daac5e99ce1", null ], [ "role_create_sync", "classdpp_1_1cluster.html#a8fa5c60e4a435244d30e2fea4bbc3dca", null ], diff --git a/classdpp_1_1collector.html b/classdpp_1_1collector.html index 26435e99ec8..54fc7fa9526 100644 --- a/classdpp_1_1collector.html +++ b/classdpp_1_1collector.html @@ -357,7 +357,7 @@

virtual const C * filter(const T &element)=0
Filter the list of elements.
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters
diff --git a/classdpp_1_1event__router__t.html b/classdpp_1_1event__router__t.html index 808a055ff10..16201d8d422 100644 --- a/classdpp_1_1event__router__t.html +++ b/classdpp_1_1event__router__t.html @@ -661,11 +661,11 @@

// do something on button click
}
-
Represents the component object. A component is a clickable button or drop down list within a discord...
Definition: message.h:309
+
Represents the component object. A component is a clickable button or drop down list within a discord...
Definition: message.h:333
constexpr const char b[]
Definition: unicode_emoji.h:5075
Click on button.
Definition: dispatcher.h:702
Extremely light coroutine object designed to send off a coroutine to execute on its own....
Definition: job.h:56
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
User has issued a slash command.
Definition: dispatcher.h:694

This can be combined with dpp::when_any and other awaitables, for example dpp::cluster::co_sleep to create expiring buttons.

Warning
On resumption the awaiter will be given a reference to the event. This means that variable may become dangling at the next co_await, be careful and save it in a variable if you need to.
diff --git a/classdpp_1_1interaction__coll__graph.map b/classdpp_1_1interaction__coll__graph.map index 528baa44429..799ab98486a 100644 --- a/classdpp_1_1interaction__coll__graph.map +++ b/classdpp_1_1interaction__coll__graph.map @@ -1,16 +1,16 @@ - + - + - - - + + + @@ -19,20 +19,20 @@ - + - - + + - + diff --git a/classdpp_1_1interaction__coll__graph.md5 b/classdpp_1_1interaction__coll__graph.md5 index d9c2c1e0b45..10742299899 100644 --- a/classdpp_1_1interaction__coll__graph.md5 +++ b/classdpp_1_1interaction__coll__graph.md5 @@ -1 +1 @@ -3729847ce39a51bba5799880e9c9d945 \ No newline at end of file +2c3019dff87c8d68044609df6620e6ba \ No newline at end of file diff --git a/classdpp_1_1interaction__coll__graph.svg b/classdpp_1_1interaction__coll__graph.svg index e480f227e7a..e01d2466b73 100644 --- a/classdpp_1_1interaction__coll__graph.svg +++ b/classdpp_1_1interaction__coll__graph.svg @@ -58,8 +58,8 @@ var sectionId = 'dynsection-1'; Node1 - -dpp::interaction + +dpp::interaction @@ -75,7 +75,7 @@ var sectionId = 'dynsection-1'; Node2->Node1 - + @@ -90,22 +90,22 @@ var sectionId = 'dynsection-1'; Node2->Node9 - - + + Node20 - -dpp::message + +dpp::message Node2->Node20 - + @@ -135,7 +135,7 @@ var sectionId = 'dynsection-1'; Node3->Node1 - + application_id channel_id @@ -152,8 +152,8 @@ var sectionId = 'dynsection-1'; Node3->Node9 - - + + guild_id last_message_id owner_id @@ -162,7 +162,7 @@ var sectionId = 'dynsection-1'; Node3->Node20 - + channel_id guild_id @@ -180,10 +180,10 @@ var sectionId = 'dynsection-1'; Node3->Node25 - - - guild_id -user_id + + + guild_id +user_id @@ -224,50 +224,50 @@ var sectionId = 'dynsection-1'; Node4 - -uint64_t + +uint64_t Node4->Node3 - - - value + + + value Node14 - -dpp::utility::iconhash + +dpp::utility::iconhash Node4->Node14 - - - first -second + + + first +second Node16 - -dpp::permission + +dpp::permission Node4->Node16 - - - value + + + value @@ -282,7 +282,7 @@ var sectionId = 'dynsection-1'; Node5->Node1 - + @@ -297,9 +297,9 @@ var sectionId = 'dynsection-1'; Node6->Node5 - - - < interaction > + + + < interaction > @@ -381,7 +381,7 @@ var sectionId = 'dynsection-1'; Node7->Node1 - + type version @@ -419,23 +419,23 @@ var sectionId = 'dynsection-1'; Node8->Node1 - + data Node8->Node9 - - + + default_reaction Node9->Node1 - - - channel + + + channel @@ -447,16 +447,16 @@ var sectionId = 'dynsection-1'; Node11 - -std::string + +std::string Node11->Node1 - - + + guild_locale locale token @@ -464,8 +464,8 @@ var sectionId = 'dynsection-1'; Node11->Node9 - - + + name rtc_region topic @@ -473,31 +473,31 @@ var sectionId = 'dynsection-1'; Node11->Node20 - - + + content nonce Node11->Node22 - - + + global_name username Node11->Node25 - - + + nickname Node11->Node29 - - + + name @@ -512,9 +512,9 @@ var sectionId = 'dynsection-1'; Node11->Node31 - - - token + + + token @@ -529,7 +529,7 @@ var sectionId = 'dynsection-1'; Node12->Node11 - + @@ -544,14 +544,14 @@ var sectionId = 'dynsection-1'; Node13->Node1 - + entitlements Node13->Node9 - + available_tags permission_overwrites @@ -560,19 +560,17 @@ var sectionId = 'dynsection-1'; Node13->Node20 - + - attachments -components -embeds -filecontent -filemimetype -filename -mention_channels -mention_roles -mentions -reactions -... + attachments +components +embeds +file_data +mention_channels +mention_roles +mentions +reactions +stickers @@ -601,54 +599,54 @@ var sectionId = 'dynsection-1'; Node14->Node9 - - - icon + + + icon Node14->Node22 - - + + avatar avatar_decoration Node14->Node25 - - + + avatar Node15 - -time_t + +time_t Node15->Node9 - - + + last_pin_timestamp Node15->Node20 - - + + edited sent Node15->Node25 - - + + communication_disabled _until joined_at @@ -657,38 +655,38 @@ var sectionId = 'dynsection-1'; Node15->Node31 - - + + last_identify Node16->Node1 - - - app_permissions + + + app_permissions Node16->Node9 - - + + permissions Node17 - -uint16_t + +uint16_t Node17->Node9 - - + + bitrate default_thread_rate _limit_per_user @@ -700,23 +698,23 @@ var sectionId = 'dynsection-1'; Node17->Node20 - - + + flags Node17->Node22 - - + + discriminator Node17->Node25 - - - flags + + + flags @@ -755,28 +753,28 @@ var sectionId = 'dynsection-1'; Node20->Node1 - - + + msg Node21->Node20 - + Node22->Node1 - - + + usr Node22->Node20 - - + + author @@ -818,25 +816,25 @@ var sectionId = 'dynsection-1'; Node24->Node31 - - - cluster_id -intents -maxclusters -numshards + + + cluster_id +intents +maxclusters +numshards Node25->Node1 - + - member + member Node25->Node20 - - + + member @@ -848,8 +846,8 @@ var sectionId = 'dynsection-1'; Node27->Node20 - - + + message_reference @@ -864,8 +862,8 @@ var sectionId = 'dynsection-1'; Node28->Node20 - - + + mention_everyone pinned tts @@ -873,8 +871,8 @@ var sectionId = 'dynsection-1'; Node28->Node27 - - + + fail_if_not_exists @@ -890,22 +888,22 @@ var sectionId = 'dynsection-1'; Node29->Node20 - - + + interaction Node30->Node20 - - + + allowed_mentions Node31->Node20 - - + + owner @@ -920,7 +918,7 @@ var sectionId = 'dynsection-1'; Node32->Node31 - + rest_ping @@ -936,31 +934,31 @@ var sectionId = 'dynsection-1'; Node33->Node1 - - + + cache_policy Node33->Node31 - - + + cache_policy Node34 - -cache_policy_setting_t + +cache_policy_setting_t Node34->Node33 - - + + channel_policy emoji_policy guild_policy @@ -1011,7 +1009,7 @@ var sectionId = 'dynsection-1'; Node37->Node31 - + on_autocomplete on_automod_rule_create @@ -1037,8 +1035,8 @@ var sectionId = 'dynsection-1'; Node38->Node20 - - + + type @@ -1053,8 +1051,8 @@ var sectionId = 'dynsection-1'; Node39->Node1 - - + + resolved diff --git a/classdpp_1_1interaction__coll__graph_org.svg b/classdpp_1_1interaction__coll__graph_org.svg index 884a2a8fc4e..7086f72f6ba 100644 --- a/classdpp_1_1interaction__coll__graph_org.svg +++ b/classdpp_1_1interaction__coll__graph_org.svg @@ -12,8 +12,8 @@ Node1 - -dpp::interaction + +dpp::interaction @@ -29,7 +29,7 @@ Node2->Node1 - + @@ -44,22 +44,22 @@ Node2->Node9 - - + + Node20 - -dpp::message + +dpp::message Node2->Node20 - + @@ -89,7 +89,7 @@ Node3->Node1 - + application_id channel_id @@ -106,8 +106,8 @@ Node3->Node9 - - + + guild_id last_message_id owner_id @@ -116,7 +116,7 @@ Node3->Node20 - + channel_id guild_id @@ -134,10 +134,10 @@ Node3->Node25 - - - guild_id -user_id + + + guild_id +user_id @@ -178,50 +178,50 @@ Node4 - -uint64_t + +uint64_t Node4->Node3 - - - value + + + value Node14 - -dpp::utility::iconhash + +dpp::utility::iconhash Node4->Node14 - - - first -second + + + first +second Node16 - -dpp::permission + +dpp::permission Node4->Node16 - - - value + + + value @@ -236,7 +236,7 @@ Node5->Node1 - + @@ -251,9 +251,9 @@ Node6->Node5 - - - < interaction > + + + < interaction > @@ -335,7 +335,7 @@ Node7->Node1 - + type version @@ -373,23 +373,23 @@ Node8->Node1 - + data Node8->Node9 - - + + default_reaction Node9->Node1 - - - channel + + + channel @@ -401,16 +401,16 @@ Node11 - -std::string + +std::string Node11->Node1 - - + + guild_locale locale token @@ -418,8 +418,8 @@ Node11->Node9 - - + + name rtc_region topic @@ -427,31 +427,31 @@ Node11->Node20 - - + + content nonce Node11->Node22 - - + + global_name username Node11->Node25 - - + + nickname Node11->Node29 - - + + name @@ -466,9 +466,9 @@ Node11->Node31 - - - token + + + token @@ -483,7 +483,7 @@ Node12->Node11 - + @@ -498,14 +498,14 @@ Node13->Node1 - + entitlements Node13->Node9 - + available_tags permission_overwrites @@ -514,19 +514,17 @@ Node13->Node20 - + - attachments -components -embeds -filecontent -filemimetype -filename -mention_channels -mention_roles -mentions -reactions -... + attachments +components +embeds +file_data +mention_channels +mention_roles +mentions +reactions +stickers @@ -555,54 +553,54 @@ Node14->Node9 - - - icon + + + icon Node14->Node22 - - + + avatar avatar_decoration Node14->Node25 - - + + avatar Node15 - -time_t + +time_t Node15->Node9 - - + + last_pin_timestamp Node15->Node20 - - + + edited sent Node15->Node25 - - + + communication_disabled _until joined_at @@ -611,38 +609,38 @@ Node15->Node31 - - + + last_identify Node16->Node1 - - - app_permissions + + + app_permissions Node16->Node9 - - + + permissions Node17 - -uint16_t + +uint16_t Node17->Node9 - - + + bitrate default_thread_rate _limit_per_user @@ -654,23 +652,23 @@ Node17->Node20 - - + + flags Node17->Node22 - - + + discriminator Node17->Node25 - - - flags + + + flags @@ -709,28 +707,28 @@ Node20->Node1 - - + + msg Node21->Node20 - + Node22->Node1 - - + + usr Node22->Node20 - - + + author @@ -772,25 +770,25 @@ Node24->Node31 - - - cluster_id -intents -maxclusters -numshards + + + cluster_id +intents +maxclusters +numshards Node25->Node1 - + - member + member Node25->Node20 - - + + member @@ -802,8 +800,8 @@ Node27->Node20 - - + + message_reference @@ -818,8 +816,8 @@ Node28->Node20 - - + + mention_everyone pinned tts @@ -827,8 +825,8 @@ Node28->Node27 - - + + fail_if_not_exists @@ -844,22 +842,22 @@ Node29->Node20 - - + + interaction Node30->Node20 - - + + allowed_mentions Node31->Node20 - - + + owner @@ -874,7 +872,7 @@ Node32->Node31 - + rest_ping @@ -890,31 +888,31 @@ Node33->Node1 - - + + cache_policy Node33->Node31 - - + + cache_policy Node34 - -cache_policy_setting_t + +cache_policy_setting_t Node34->Node33 - - + + channel_policy emoji_policy guild_policy @@ -965,7 +963,7 @@ Node37->Node31 - + on_autocomplete on_automod_rule_create @@ -991,8 +989,8 @@ Node38->Node20 - - + + type @@ -1007,8 +1005,8 @@ Node39->Node1 - - + + resolved diff --git a/classdpp_1_1message__collector.html b/classdpp_1_1message__collector.html index a4ecdd0710a..509dd6358e0 100644 --- a/classdpp_1_1message__collector.html +++ b/classdpp_1_1message__collector.html @@ -408,7 +408,7 @@

virtual const dpp::message * filter(const dpp::message_create_t &element)
Select and filter the items which are to appear in the list This is called every time a new event is ...
Definition: collector.h:256
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters

elementThe event data to filter
diff --git a/classdpp_1_1reaction__collector.html b/classdpp_1_1reaction__collector.html index 52e3f5747e9..8182545bf75 100644 --- a/classdpp_1_1reaction__collector.html +++ b/classdpp_1_1reaction__collector.html @@ -415,7 +415,7 @@

virtual const dpp::collected_reaction * filter(const dpp::message_reaction_add_t &element)
Select and filter the items which are to appear in the list This is called every time a new event is ...
Definition: collector.h:303
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters

elementThe event data to filter
diff --git a/classdpp_1_1role__collector.html b/classdpp_1_1role__collector.html index 62c38e11dde..4b4819f116c 100644 --- a/classdpp_1_1role__collector.html +++ b/classdpp_1_1role__collector.html @@ -408,7 +408,7 @@

virtual const dpp::role * filter(const dpp::guild_role_create_t &element)
Select and filter the items which are to appear in the list This is called every time a new event is ...
Definition: collector.h:428
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters

elementThe event data to filter
diff --git a/classdpp_1_1scheduled__event__collector.html b/classdpp_1_1scheduled__event__collector.html index 58bd56c603e..ffbdbab0b90 100644 --- a/classdpp_1_1scheduled__event__collector.html +++ b/classdpp_1_1scheduled__event__collector.html @@ -408,7 +408,7 @@

virtual const dpp::scheduled_event * filter(const dpp::guild_scheduled_event_create_t &element)
Select and filter the items which are to appear in the list This is called every time a new event is ...
Definition: collector.h:465
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters

elementThe event data to filter
diff --git a/classdpp_1_1thread__coll__graph.map b/classdpp_1_1thread__coll__graph.map index b8d3902651a..b3e6af60f7e 100644 --- a/classdpp_1_1thread__coll__graph.map +++ b/classdpp_1_1thread__coll__graph.map @@ -1,8 +1,8 @@ - + - + @@ -15,8 +15,8 @@ - - + + @@ -26,13 +26,13 @@ - + - + diff --git a/classdpp_1_1thread__coll__graph.md5 b/classdpp_1_1thread__coll__graph.md5 index b138c2ab971..4b2a0a3dbaf 100644 --- a/classdpp_1_1thread__coll__graph.md5 +++ b/classdpp_1_1thread__coll__graph.md5 @@ -1 +1 @@ -cce808411a3e187b67fb8d51ae2cc3b1 \ No newline at end of file +98d06fc38d66861cb4765c2640081b02 \ No newline at end of file diff --git a/classdpp_1_1thread__coll__graph.svg b/classdpp_1_1thread__coll__graph.svg index e4e2ad6f76b..17f70fced4a 100644 --- a/classdpp_1_1thread__coll__graph.svg +++ b/classdpp_1_1thread__coll__graph.svg @@ -58,8 +58,8 @@ var sectionId = 'dynsection-1'; Node1 - -dpp::thread + +dpp::thread @@ -75,8 +75,8 @@ var sectionId = 'dynsection-1'; Node2->Node1 - - + + @@ -97,16 +97,16 @@ var sectionId = 'dynsection-1'; Node25 - -dpp::message + +dpp::message Node3->Node25 - - + + @@ -169,11 +169,11 @@ var sectionId = 'dynsection-1'; Node4->Node25 - - - channel_id -guild_id -webhook_id + + + channel_id +guild_id +webhook_id @@ -204,11 +204,11 @@ var sectionId = 'dynsection-1'; Node4->Node31 - - - channel_id -guild_id -message_id + + + channel_id +guild_id +message_id @@ -321,41 +321,41 @@ var sectionId = 'dynsection-1'; Node7->Node19 - - - < thread > + + + < thread > Node21 - -dpp::json_interface -< thread_member > + +dpp::json_interface +< thread_member > Node7->Node21 - - + + < thread_member > Node26 - -dpp::json_interface -< message > + +dpp::json_interface +< message > Node7->Node26 - + < message > @@ -405,7 +405,7 @@ var sectionId = 'dynsection-1'; Node8->Node2 - + name rtc_region @@ -414,7 +414,7 @@ var sectionId = 'dynsection-1'; Node8->Node25 - + content nonce @@ -485,9 +485,9 @@ var sectionId = 'dynsection-1'; Node10->Node1 - + - applied_tags + applied_tags @@ -501,25 +501,23 @@ var sectionId = 'dynsection-1'; Node10->Node25 - - - attachments -components -embeds -filecontent -filemimetype -filename -mention_channels -mention_roles -mentions -reactions -... + + + attachments +components +embeds +file_data +mention_channels +mention_roles +mentions +reactions +stickers Node10->Node29 - - + + roles @@ -558,7 +556,7 @@ var sectionId = 'dynsection-1'; Node12->Node2 - + icon @@ -604,22 +602,22 @@ var sectionId = 'dynsection-1'; Node23 - -dpp::thread_metadata + +dpp::thread_metadata Node13->Node23 - - - archive_timestamp + + + archive_timestamp Node13->Node25 - + edited sent @@ -660,7 +658,7 @@ var sectionId = 'dynsection-1'; Node15->Node2 - + bitrate default_thread_rate @@ -673,14 +671,14 @@ var sectionId = 'dynsection-1'; Node15->Node23 - + auto_archive_duration Node15->Node25 - + flags @@ -744,15 +742,15 @@ var sectionId = 'dynsection-1'; Node18->Node1 - + - member_count -message_count + member_count +message_count Node18->Node2 - + user_limit @@ -773,21 +771,21 @@ var sectionId = 'dynsection-1'; Node19->Node1 - + Node20->Node1 - - - member + + + member Node21->Node20 - - + + @@ -801,7 +799,7 @@ var sectionId = 'dynsection-1'; Node22->Node1 - + total_messages_sent @@ -832,24 +830,24 @@ var sectionId = 'dynsection-1'; Node23->Node1 - - - metadata + + + metadata Node24 - -bool + +bool Node24->Node23 - - + + archived invitable locked @@ -857,24 +855,24 @@ var sectionId = 'dynsection-1'; Node24->Node25 - - - mention_everyone -pinned -tts + + + mention_everyone +pinned +tts Node24->Node31 - - + + fail_if_not_exists Node24->Node33 - - + + parse_everyone parse_roles parse_users @@ -883,21 +881,21 @@ var sectionId = 'dynsection-1'; Node25->Node1 - - - msg + + + msg Node26->Node25 - - + + Node27->Node25 - - + + author @@ -923,7 +921,7 @@ var sectionId = 'dynsection-1'; Node29->Node25 - + member @@ -936,29 +934,29 @@ var sectionId = 'dynsection-1'; Node31->Node25 - - - message_reference + + + message_reference Node32->Node25 - - + + interaction Node33->Node25 - - - allowed_mentions + + + allowed_mentions Node34->Node25 - - + + owner @@ -1083,8 +1081,8 @@ var sectionId = 'dynsection-1'; Node41->Node25 - - + + type diff --git a/classdpp_1_1thread__coll__graph_org.svg b/classdpp_1_1thread__coll__graph_org.svg index 12f73f9e092..e2ea97f8ffe 100644 --- a/classdpp_1_1thread__coll__graph_org.svg +++ b/classdpp_1_1thread__coll__graph_org.svg @@ -12,8 +12,8 @@ Node1 - -dpp::thread + +dpp::thread @@ -29,8 +29,8 @@ Node2->Node1 - - + + @@ -51,16 +51,16 @@ Node25 - -dpp::message + +dpp::message Node3->Node25 - - + + @@ -123,11 +123,11 @@ Node4->Node25 - - - channel_id -guild_id -webhook_id + + + channel_id +guild_id +webhook_id @@ -158,11 +158,11 @@ Node4->Node31 - - - channel_id -guild_id -message_id + + + channel_id +guild_id +message_id @@ -275,41 +275,41 @@ Node7->Node19 - - - < thread > + + + < thread > Node21 - -dpp::json_interface -< thread_member > + +dpp::json_interface +< thread_member > Node7->Node21 - - + + < thread_member > Node26 - -dpp::json_interface -< message > + +dpp::json_interface +< message > Node7->Node26 - + < message > @@ -359,7 +359,7 @@ Node8->Node2 - + name rtc_region @@ -368,7 +368,7 @@ Node8->Node25 - + content nonce @@ -439,9 +439,9 @@ Node10->Node1 - + - applied_tags + applied_tags @@ -455,25 +455,23 @@ Node10->Node25 - - - attachments -components -embeds -filecontent -filemimetype -filename -mention_channels -mention_roles -mentions -reactions -... + + + attachments +components +embeds +file_data +mention_channels +mention_roles +mentions +reactions +stickers Node10->Node29 - - + + roles @@ -512,7 +510,7 @@ Node12->Node2 - + icon @@ -558,22 +556,22 @@ Node23 - -dpp::thread_metadata + +dpp::thread_metadata Node13->Node23 - - - archive_timestamp + + + archive_timestamp Node13->Node25 - + edited sent @@ -614,7 +612,7 @@ Node15->Node2 - + bitrate default_thread_rate @@ -627,14 +625,14 @@ Node15->Node23 - + auto_archive_duration Node15->Node25 - + flags @@ -698,15 +696,15 @@ Node18->Node1 - + - member_count -message_count + member_count +message_count Node18->Node2 - + user_limit @@ -727,21 +725,21 @@ Node19->Node1 - + Node20->Node1 - - - member + + + member Node21->Node20 - - + + @@ -755,7 +753,7 @@ Node22->Node1 - + total_messages_sent @@ -786,24 +784,24 @@ Node23->Node1 - - - metadata + + + metadata Node24 - -bool + +bool Node24->Node23 - - + + archived invitable locked @@ -811,24 +809,24 @@ Node24->Node25 - - - mention_everyone -pinned -tts + + + mention_everyone +pinned +tts Node24->Node31 - - + + fail_if_not_exists Node24->Node33 - - + + parse_everyone parse_roles parse_users @@ -837,21 +835,21 @@ Node25->Node1 - - - msg + + + msg Node26->Node25 - - + + Node27->Node25 - - + + author @@ -877,7 +875,7 @@ Node29->Node25 - + member @@ -890,29 +888,29 @@ Node31->Node25 - - - message_reference + + + message_reference Node32->Node25 - - + + interaction Node33->Node25 - - - allowed_mentions + + + allowed_mentions Node34->Node25 - - + + owner @@ -1037,8 +1035,8 @@ Node41->Node25 - - + + type diff --git a/classdpp_1_1thread__collector.html b/classdpp_1_1thread__collector.html index 071a4a73ebc..298d31f5457 100644 --- a/classdpp_1_1thread__collector.html +++ b/classdpp_1_1thread__collector.html @@ -408,7 +408,7 @@

virtual const dpp::thread * filter(const dpp::thread_create_t &element)
Select and filter the items which are to appear in the list This is called every time a new event is ...
Definition: collector.h:391
constexpr const char m[]
Definition: unicode_emoji.h:5119
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Parameters

elementThe event data to filter
diff --git a/classdpp_1_1voiceregion-members.html b/classdpp_1_1voiceregion-members.html index 426c51e7faf..f5db330da2b 100644 --- a/classdpp_1_1voiceregion-members.html +++ b/classdpp_1_1voiceregion-members.html @@ -112,13 +112,12 @@ - - - - - - - + + + + + +
elementThe event data to filter
is_custom() constdpp::voiceregion
is_deprecated() constdpp::voiceregion
is_optimal() constdpp::voiceregion
is_vip() constdpp::voiceregion
json_interface< voiceregion >dpp::voiceregionfriend
namedpp::voiceregion
to_json(bool with_id=false) constdpp::json_interface< voiceregion >inline
to_json_impl(bool with_id=false) constdpp::voiceregionprotectedvirtual
voiceregion()dpp::voiceregion
~voiceregion()=defaultdpp::voiceregionvirtual
json_interface< voiceregion >dpp::voiceregionfriend
namedpp::voiceregion
to_json(bool with_id=false) constdpp::json_interface< voiceregion >inline
to_json_impl(bool with_id=false) constdpp::voiceregionprotectedvirtual
voiceregion()dpp::voiceregion
~voiceregion()=defaultdpp::voiceregionvirtual
- - - -

◆ is_vip()

- -
-
- - - - - - - -
bool dpp::voiceregion::is_vip () const
-
- -

True if is a VIP voice server.

-
Returns
true if VIP
-
diff --git a/classdpp_1_1voiceregion.js b/classdpp_1_1voiceregion.js index 4fe2f6c1688..2db24fd6945 100644 --- a/classdpp_1_1voiceregion.js +++ b/classdpp_1_1voiceregion.js @@ -8,7 +8,6 @@ var classdpp_1_1voiceregion = [ "is_custom", "classdpp_1_1voiceregion.html#a2acea0a6fa26f8713e7ff712c21626b4", null ], [ "is_deprecated", "classdpp_1_1voiceregion.html#af29355f165f2ee1aeed095f79136c039", null ], [ "is_optimal", "classdpp_1_1voiceregion.html#ad8cc77b8def50a189e2b2c636fd6927e", null ], - [ "is_vip", "classdpp_1_1voiceregion.html#a2773af7f67f44b7c7cd45e04791c4d14", null ], [ "to_json", "classdpp_1_1voiceregion.html#ae169e4231b77955fc1b43a3b7be9770c", null ], [ "to_json_impl", "classdpp_1_1voiceregion.html#a7870079b8e346a4c62eeb7f4439a3271", null ], [ "json_interface< voiceregion >", "classdpp_1_1voiceregion.html#a853f4ca945dfd5a9a433362e8ab70d79", null ], diff --git a/classdpp_1_1voicestate.html b/classdpp_1_1voicestate.html index 5785cc8da55..f71992a649d 100644 --- a/classdpp_1_1voicestate.html +++ b/classdpp_1_1voicestate.html @@ -173,22 +173,22 @@ class discord_clientshard  Owning shard. More...
  -snowflake guild_id +snowflake guild_id {0}  Optional: The guild id this voice state is for. More...
  -snowflake channel_id +snowflake channel_id {0}  The channel id this user is connected to. More...
  -snowflake user_id +snowflake user_id {0}  The user id this voice state is for. More...
  std::string session_id  The session id for this voice state. More...
  -uint8_t flags +uint8_t flags {0}  Voice state flags from dpp::voicestate_flags. More...
  -time_t request_to_speak +time_t request_to_speak {0}  The time at which the user requested to speak. More...
  @@ -560,7 +560,7 @@

- +
snowflake dpp::voicestate::channel_idsnowflake dpp::voicestate::channel_id {0}
diff --git a/classes.html b/classes.html index ee7ad0d781c..ec3be1dc3a1 100644 --- a/classes.html +++ b/classes.html @@ -138,7 +138,7 @@
length_exception (dpp)
log_t (dpp)
logger (dpp::events)
logic_exception (dpp)
M
-
managed (dpp)
message (dpp)
message_collector (dpp)
message_context_menu_t (dpp)
message_create (dpp::events)
message_create_t (dpp)
message_delete (dpp::events)
message_delete_bulk (dpp::events)
message_delete_bulk_t (dpp)
message_delete_t (dpp)
message::message_interaction_struct (dpp)
message_reaction_add (dpp::events)
message_reaction_add_t (dpp)
message_reaction_remove (dpp::events)
message_reaction_remove_all (dpp::events)
message_reaction_remove_all_t (dpp)
message_reaction_remove_emoji (dpp::events)
message_reaction_remove_emoji_t (dpp)
message_reaction_remove_t (dpp)
message::message_ref (dpp)
message_update (dpp::events)
message_update_t (dpp)
moving_averager (dpp)
multipart_content (dpp)
+
managed (dpp)
message (dpp)
message_collector (dpp)
message_context_menu_t (dpp)
message_create (dpp::events)
message_create_t (dpp)
message_delete (dpp::events)
message_delete_bulk (dpp::events)
message_delete_bulk_t (dpp)
message_delete_t (dpp)
message_file_data (dpp)
message::message_interaction_struct (dpp)
message_reaction_add (dpp::events)
message_reaction_add_t (dpp)
message_reaction_remove (dpp::events)
message_reaction_remove_all (dpp::events)
message_reaction_remove_all_t (dpp)
message_reaction_remove_emoji (dpp::events)
message_reaction_remove_emoji_t (dpp)
message_reaction_remove_t (dpp)
message::message_ref (dpp)
message_update (dpp::events)
message_update_t (dpp)
moving_averager (dpp)
multipart_content (dpp)
O
onboarding (dpp)
onboarding_prompt (dpp)
onboarding_prompt_option (dpp)
oneshot_timer (dpp)
diff --git a/collecting-reactions.html b/collecting-reactions.html index 06cf1f62d95..985ba405892 100644 --- a/collecting-reactions.html +++ b/collecting-reactions.html @@ -162,8 +162,8 @@
@ st_wait
Wait forever on a condition variable. The cluster will spawn threads for each shard and start() will ...
Definition: cluster.h:63
Create message.
Definition: dispatcher.h:1624
message msg
message that was created (sent).
Definition: dispatcher.h:1631
-
Represents messages sent and received on Discord.
Definition: message.h:1714
-
std::string content
Contents of the message.
Definition: message.h:1759
+
Represents messages sent and received on Discord.
Definition: message.h:1738
+
std::string content
Contents of the message.
Definition: message.h:1783
diff --git a/commandhandler.html b/commandhandler.html index adc62c177f3..033348c4158 100644 --- a/commandhandler.html +++ b/commandhandler.html @@ -168,7 +168,7 @@
@ pt_string
String parameter.
Definition: commandhandler.h:76
@ st_wait
Wait forever on a condition variable. The cluster will spawn threads for each shard and start() will ...
Definition: cluster.h:63
Represents the sending source of a command. This is passed to any command handler and should be passe...
Definition: commandhandler.h:172
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Details of a command parameter used in registration. Note that for non-slash commands optional parame...
Definition: commandhandler.h:114
Session ready.
Definition: dispatcher.h:960
diff --git a/coro-simple-commands.html b/coro-simple-commands.html index a372e4babd5..598f4776794 100644 --- a/coro-simple-commands.html +++ b/coro-simple-commands.html @@ -285,7 +285,7 @@

The results of a REST call wrapped in a convenient struct.
Definition: restresults.h:255
bool is_error() const
Returns true if the call resulted in an error rather than a legitimate value in the confirmation_call...
T get() const
Get the stored value via std::get.
Definition: restresults.h:323
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
diff --git a/cpp-eval-command-discord.html b/cpp-eval-command-discord.html index 5be862e7d67..c51f7ff1065 100644 --- a/cpp-eval-command-discord.html +++ b/cpp-eval-command-discord.html @@ -313,7 +313,7 @@

@ i_default_intents
Default D++ intents (all non-privileged intents).
Definition: intents.h:132
@ st_wait
Wait forever on a condition variable. The cluster will spawn threads for each shard and start() will ...
Definition: cluster.h:63
Create message.
Definition: dispatcher.h:1624
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738

Compilation

To compile this program you must link against libdl. It is also critically important to include the -rdynamic flag. For example:

diff --git a/default_select_value.html b/default_select_value.html index 571ee92c5ce..b6fb770353c 100644 --- a/default_select_value.html +++ b/default_select_value.html @@ -154,7 +154,7 @@
std::string get_command_name() const
Get the command name for a command interaction.
Represents an application command, created by your bot either globally, or on a guild.
Definition: appcommand.h:1339
std::function< void(const dpp::log_t &)> DPP_EXPORT cout_logger()
Get a default logger that outputs to std::cout. e.g.
-
@ cdt_role
Definition: message.h:169
+
@ cdt_role
Definition: message.h:193
@ st_wait
Wait forever on a condition variable. The cluster will spawn threads for each shard and start() will ...
Definition: cluster.h:63
interaction command
command interaction
Definition: dispatcher.h:677
Session ready.
Definition: dispatcher.h:960
diff --git a/detecting-messages.html b/detecting-messages.html index ddaa2cf2887..c94fdaae19c 100644 --- a/detecting-messages.html +++ b/detecting-messages.html @@ -132,7 +132,7 @@
@ st_wait
Wait forever on a condition variable. The cluster will spawn threads for each shard and start() will ...
Definition: cluster.h:63
Create message.
Definition: dispatcher.h:1624
message msg
message that was created (sent).
Definition: dispatcher.h:1631
-
std::string content
Contents of the message.
Definition: message.h:1759
+
std::string content
Contents of the message.
Definition: message.h:1783

If all went well, you should have something like this!

diff --git a/expiring-buttons.html b/expiring-buttons.html index 34614ecba0d..3ad2ca14cc4 100644 --- a/expiring-buttons.html +++ b/expiring-buttons.html @@ -158,7 +158,7 @@
}
The cluster class represents a group of shards and a command queue for sending and receiving commands...
Definition: cluster.h:80
event_router_t< log_t > on_log
Called when a log message is to be written to the log. You can attach any logging system here you wis...
Definition: cluster.h:462
-
Represents the component object. A component is a clickable button or drop down list within a discord...
Definition: message.h:309
+
Represents the component object. A component is a clickable button or drop down list within a discord...
Definition: message.h:333
component & set_id(const std::string &id)
Set the id of the component. For action rows, this field is ignored. Setting the id will auto-set the...
component & set_label(const std::string &label)
Set the label of the component, e.g. button text. For action rows, this field is ignored....
component & set_type(component_type ct)
Set the type of the component. Button components (type dpp::cot_button) should always be contained wi...
@@ -177,7 +177,7 @@
void reply(command_completion_event_t callback=utility::log_error()) const
Acknowledge interaction without displaying a message to the user, for use with button and select menu...
interaction command
command interaction
Definition: dispatcher.h:677
dpp::async< dpp::confirmation_callback_t > co_reply() const
Acknowledge interaction without displaying a message to the user, for use with button and select menu...
-
Represents messages sent and received on Discord.
Definition: message.h:1714
+
Represents messages sent and received on Discord.
Definition: message.h:1738
Session ready.
Definition: dispatcher.h:960
User has issued a slash command.
Definition: dispatcher.h:694

Any awaitable can be used with when_any, even dpp::task, dpp::coroutine, dpp::async. When the when_any object is destroyed, any of its awaitables with a cancel() method (for example dpp::task) will have it called. With this you can easily make commands that ask for input in several steps, or maybe a timed text game, the possibilities are endless! Note that if the first awaitable completes with an exception, result.get will throw it.

diff --git a/functions_c.html b/functions_c.html index aaa925083ed..b853eb4f742 100644 --- a/functions_c.html +++ b/functions_c.html @@ -299,7 +299,7 @@

- c -