SleepyDiscord::Webhook
Inherits from SleepyDiscord::IdentifiableDiscordObject< Webhook >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Webhook >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Webhook >
Name | |
---|---|
IdentifiableDiscordObject() =default | |
IdentifiableDiscordObject(Snowflake< Derived > id) | |
operator Snowflake< Derived > &() | |
bool | empty() const |
void | merge(Derived & changes) |
template <class DiscordObject > bool | operator==(const Snowflake< DiscordObject > & right) const |
template <class DiscordObject > bool | operator!=(const Snowflake< DiscordObject > & right) const |
bool | operator==(const Snowflake< Derived > & right) const |
bool | operator!=(const Snowflake< Derived > & right) const |
bool | operator==(const IdentifiableDiscordObject< Derived > & right) const |
bool | operator!=(const IdentifiableDiscordObject< Derived > & right) const |
const Time | getTimestamp() |
Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< Webhook >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
enum WebhookType​
Enumerator | Value | Description |
---|---|---|
INCOMING | 1 | |
CHANNEL_FOLLOWER | 2 |
Public Functions Documentation​
function Webhook​
Webhook() =default
function Webhook​
Webhook(
const json::Value & json
)
function Webhook​
inline Webhook(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::NULLABLE_FIELD ,
json::pair &::, "", ::NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable type​
WebhookType type = static_cast<WebhookType>(0);
variable serverID​
Snowflake< Server > serverID;
variable channelID​
Snowflake< Channel > channelID;
variable user​
User user;
variable name​
std::string name;
variable avatar​
std::string avatar;
variable token​
std::string token;
Updated on 13 April 2022 at 18:39:59 UTC