SleepyDiscord::BooleanResponse
Inherits from SleepyDiscord::StandardResponse, SleepyDiscord::Response
inherited members​
Public Functions inherited from SleepyDiscord::Response
Name | |
---|---|
bool | error() const |
Response() =default | |
Response(int32_t _statusCode) |
Public Attributes inherited from SleepyDiscord::Response
Name | |
---|---|
std::string | text |
int32_t | statusCode |
std::map< std::string, std::string, caseInsensitiveCompare > | header |
time_t | birth |
Public Types Documentation​
using Callback​
using SleepyDiscord::BooleanResponse::Callback = std::function<bool(const Response& response)>;
using Type​
using SleepyDiscord::BooleanResponse::Type = bool;
Public Functions Documentation​
function BooleanResponse​
inline BooleanResponse(
const Response & response,
const Callback callback
)
function operator Type​
inline operator Type() const
function operator*​
inline Type operator*() const
function cast​
inline Type cast()
function StandardResponse​
inline explicit StandardResponse(
const Response & response
)
Public Attributes Documentation​
variable wasSuccessful​
const Callback wasSuccessful = [](const Response& ) { return true; };
Updated on 13 April 2022 at 18:39:59 UTC