diff --git a/annotated.html b/annotated.html index 8c444f99816..230f2941bf0 100644 --- a/annotated.html +++ b/annotated.html @@ -358,91 +358,92 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +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 @@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 @@element | The event data to filter | ||||
operator=(const cluster &)=delete | dpp::cluster | ||||
operator=(const cluster &&)=delete | dpp::cluster | ||||
post_rest(const std::string &endpoint, const std::string &major_parameters, const std::string ¶meters, 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 ¶meters, 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 ¶meters, 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_ping | dpp::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 ¶meters, 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 ¶meters, 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 ¶meters, 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 = {} |
@@ -25011,9 +24999,7 @@ | Method, e.g. GET, POST | ||||
postdata | Post data (usually JSON encoded) | ||||
callback | Function to call when the HTTP call completes. The callback parameter will contain amongst other things, the decoded json. | ||||
filename | List of filenames to post for POST requests (for uploading files) | ||||
filecontent | List of file content to post for POST requests (for uploading files) | ||||
filemimetypes | List of mime types for each file to post for POST requests (for uploading files) | ||||
file_data | List of files to post for POST requests (for uploading files) |