Skip to main content

SleepyDiscord::BooleanResponse

Inherits from SleepyDiscord::StandardResponse, SleepyDiscord::Response

inherited members​

Public Functions inherited from SleepyDiscord::Response

Name
boolerror() const
Response() =default
Response(int32_t _statusCode)

Public Attributes inherited from SleepyDiscord::Response

Name
std::stringtext
int32_tstatusCode
std::map< std::string, std::string, caseInsensitiveCompare >header
time_tbirth

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