SleepyDiscord
Namespaces​
Name |
---|
SleepyDiscord::InteractionCallback |
SleepyDiscord::json |
Classes​
Types​
Name | |
---|---|
enum | AuditLogEvent { GUILD_UPDATE = 1, CHANNEL_CREATE = 10, CHANNEL_UPDATE = 11, CHANNEL_DELETE = 12, CHANNEL_OVERWRITE_CREATE = 13, CHANNEL_OVERWRITE_UPDATE = 14, CHANNEL_OVERWRITE_DELETE = 15, MEMBER_KICK = 20, MEMBER_PRUNE = 21, MEMBER_BAN_ADD = 22, MEMBER_BAN_REMOVE = 23, MEMBER_UPDATE = 24, MEMBER_ROLE_UPDATE = 25, ROLE_CREATE = 30, ROLE_UPDATE = 31, ROLE_DELETE = 32, INVITE_CREATE = 40, INVITE_UPDATE = 41, INVITE_DELETE = 42, WEBHOOK_CREATE = 50, WEBHOOK_UPDATE = 51, WEBHOOK_DELETE = 52, EMOJI_CREATE = 60, EMOJI_UPDATE = 61, EMOJI_DELETE = 62, MESSAGE_DELETE = 72} |
enum char | Mode { USER_CONTROLED_THREADS = 1, USE_RUN_THREAD = 3, DEFAULT_THREADS = USER_CONTROLED_THREADS} |
enum char | TTS { DisableTTS, EnableTTS, Default = DisableTTS} |
enum | RequestMode { UseRequestAsync = 1 << 0, UseRequestSync = 0 << 0, ThrowError = 1 << 4, AsyncQueue = 1 << 5, Async = UseRequestAsync |
enum IntentsRaw | Intent { SERVERS = 1 << 0, SERVER_MEMBERS = 1 << 1, SERVER_BANS = 1 << 2, SERVER_EMOJIS = 1 << 3, SERVER_INTEGRATIONS = 1 << 4, SERVER_WEBHOOKS = 1 << 5, SERVER_INVITES = 1 << 6, SERVER_VOICE_STATES = 1 << 7, SERVER_PRESENCES = 1 << 8, SERVER_MESSAGES = 1 << 9, SERVER_MESSAGE_REACTIONS = 1 << 10, SERVER_MESSAGE_TYPING = 1 << 11, DIRECT_MESSAGES = 1 << 12, DIRECT_MESSAGE_REACTIONS = 1 << 13, DIRECT_MESSAGE_TYPING = 1 << 14} |
enum | ErrorCode { ERROR_ZERO = 0, SWITCHING_PROTOCOLS = 101, OK = 200, CREATED = 201, NO_CONTENT = 204, NOT_MODIFIED = 304, BAD_REQUEST = 400, UNAUTHORIZED = 401, FORBIDDEN = 403, NOT_FOUND = 404, METHOD_NOT_ALLOWED = 405, TOO_MANY_REQUESTS = 429, GATEWAY_UNAVAILABLE = 502, UNKNOWN_ERROR = 4000, UNKNOWN_OPCODE = 4001, DECODE_ERROR = 4002, NOT_AUTHENTICATED = 4003, AUTHENTICATION_FAILED = 4004, ALREADY_AUTHENTICATED = 4005, SESSION_NO_LONGER_VALID = 4006, INVALID_SEQ = 4007, RATE_LIMITED = 4008, SESSION_TIMEOUT = 4009, INVALID_SHARD = 4010, SHARDING_REQUIRED = 4011, UNKNOWN_PROTOCOL = 4012, INVALID_INTENTS = 4013, DISALLOWED_INTENTS = 4014, VOICE_SERVER_CRASHED = 4015, UNKNOWN_ENCRYPTION_MODE = 4016, RECONNECTING = 4900, CONNECT_FAILED = 5000, EVENT_UNKNOWN = 5001, GATEWAY_FAILED = 5002, GENERAL_ERROR = 5003, LAZY_ERROR = 5004, ERROR_NOTE = 5005, VOICE_NO_SODIUM = 5006, VOICE_NO_OPUS = 5007, CANT_SCHEDULE = 5008} |
enum | Status { statusError = 0, online, doNotDisturb, idle, invisible, offline} |
enum | GameType { Playing = 0, Streaming = 1} |
enum | RequestMethod { Post = 0, Patch = 1, Delete = 2, Get = 3, Put = 4} |
enum int | InteractionType { NONE = 0, Ping = 1, ApplicationCommand = 2, MessageComponent = 3, ApplicationCommandAutocomplete = 4, ModalSubmit = 5} |
enum | ComponentType { NONE = 0, ActionRow = 1, Button = 2, SelectMenu = 3, TextInputs = 4} |
enum | ButtonStyle { NONE = 0, Primary = 1, Secondary = 2, Success = 3, Danger = 4, Link = 5, DefaultStyle = NONE} |
enum | TextInputStyle { NONE = 0, Short = 1, Paragraph = 2, DefaultStyle = NONE} |
enum | MentionReplierFlag { NotSet = -2, DoNotMentionReply = false, MentionReply = true} |
enum PermissionRaw | Permission { CREATE_INSTANT_INVITE = 0x00000001, KICK_MEMBERS = 0x00000002, BAN_MEMBERS = 0x00000004, ADMINISTRATOR = 0x00000008, MANAGE_CHANNELS = 0x00000010, MANAGE_GUILD = 0x00000020, ADD_REACTIONS = 0x00000040, VIEW_AUDIT_LOG = 0x00000080, VIEW_CHANNEL = 0x00000400, SEND_MESSAGES = 0x00000800, SEND_TTS_MESSAGES = 0x00001000, MANAGE_MESSAGES = 0x00002000, EMBED_LINKS = 0x00004000, ATTACH_FILES = 0x00008000, READ_MESSAGE_HISTORY = 0x00010000, MENTION_EVERYONE = 0x00020000, USE_EXTERNAL_EMOJIS = 0x00040000, CONNECT = 0x00100000, SPEAK = 0x00200000, MUTE_MEMBERS = 0x00400000, DEAFEN_MEMBERS = 0x00800000, MOVE_MEMBERS = 0x01000000, USE_VAD = 0x02000000, PRIORITY_SPEAKER = 0x00000100, CHANGE_NICKNAME = 0x04000000, MANAGE_NICKNAMES = 0x08000000, MANAGE_ROLES = 0x10000000, MANAGE_WEBHOOKS = 0x20000000, MANAGE_EMOJIS = 0x40000000, NONE = 0x000000000, NONE = 0, NONE = 0, NONE = 0, NONE = 0, ALL = 0xFFFFFFFFF, READ_MESSAGES = VIEW_CHANNEL} |
enum int | IntCallBackT { NONE = 0, Pong = 1, ChannelMessageWithSource = 4, DeferredChannelMessageWithSource = 5, DefChannelMessageWScore = DeferredChannelMessageWithSource, DeferredUpdateMessage = 6, UpdateMessage = 7, ApplicationCommandAutocompleteResult = 8, AppCommandAutocomplete = ApplicationCommandAutocompleteResult, Modal = 9} |
enum | AudioSourceType { AUDIO_BASE_TYPE, AUDIO_CONTAINER} |
typedef ASIOUDPClient | UDPClient |
template <typename template< class, class > Data,ObjectChanged ,Type > using std::pair< std::string, Data< ObjectChanged, Type > > | AuditLogKey |
template <class _Type > using std::unordered_map< typename Snowflake< _Type >::RawType, _Type > | CacheParent |
using int32_t | IntentsRaw |
typedef BooleanResponse | BoolResponse |
template <class Type > using json::ArrayWrapper< Type, ArrayResponseWrapper > | ArrayResponse |
using StringResponse | VoidResponse |
typedef CPRSession | Session |
typedef std::shared_ptr< GenericWebsocketConnection > | WebsocketConnection |
typedef GenericSession (const)() | CustomInit |
typedef CustomInit | CustomInitSession |
typedef GenericUDPClient (const)() | CustomInitUDPClient |
typedef std::initializer_list< Part > | Multipart |
using uint64_t | PermissionRaw |
template <class Int > using typename std::enable_if< std::is_integral< Int >::value > | isInt |
template <class Num > using typename std::enable_if< std::is_floating_point< Num >::value > | isNum |
using InteractionCallback::Message | InteractionAppCommandCallbackData |
using IntCallBackT | InteractionCallbackType |
using int64_t | Time |
typedef std::function< void()> | TimedTask |
typedef UWebSocketsDiscordClient | DiscordClient |
using int16_t | AudioSample |
using BaseAudioSource | AudioPointerSource |
using ZLibCompression | DefaultCompression |
Functions​
Name | |
---|---|
void | handle_send(const std::error_code & , std::size_t , GenericUDPClient::SendHandler handler) |
constexpr unsigned int | hash(const char * key, unsigned int i =0) |
std::string | createMessageBody(std::string & message, Embed & embed, MessageReference & replyingTo, TTS tts) |
std::string | convertEmojiToURL(const std::string emoji) |
const char * | optionalWebhookToken(std::string webhookToken) |
std::string | CDN_path(const std::initializer_list< std::string > path) |
const char * | getMethodName(const RequestMethod & method) |
std::string | escapeURL(const std::string & string) |
Permission | getBasePermissions(const Server & server, const ServerMember & member) |
void | handleOverwrite(Permission & target, const Permission & allow, const Permission & deny) |
void | handleOverwrite(Permission & target, const Overwrite & overwrite) |
Permission | overwritePermissions(const Permission basePermissions, const Server & server, const ServerMember & member, const Channel & channel) |
Permission | getPermissions(const Server & server, const ServerMember & member, const Channel & channel) |
void | handleTimer(const websocketpp::lib::error_code & ec, std::function< void()> & code) |
void | handleTimers(const websocketpp::lib::error_code & ec, std::function< void()> & code, _client::timer_ptr timer) |
template <class Client > void | rerunTimer(_client::timer_ptr timer, TimedTask code, Client & c) |
template <ErrorCode Code> const BooleanResponse::Callback | SuccessCodeFn() |
const BooleanResponse::Callback | EmptyRespFn() |
const BooleanResponse::Callback | StandardRespFn() |
template <template< class... > class Container,typename Type > constexpr unsigned int | index(Container< Type const > names, Type name, unsigned int i =0) |
template <class _DiscordObject > std::vector< _DiscordObject > | JSON_getArray(const std::string * _source) |
template <class _DiscordObject ,class Type > std::vector< _DiscordObject > | JSON_getArray(const Type & _source) |
template <class _DiscordObject ,class Type > std::list< _DiscordObject > | JSON_getList(const Type & _source) |
constexpr Permission | toPermission(const int64_t & permission) |
Permission | toPermission(const json::Value & value) |
constexpr Permission | **[operator |
constexpr Permission | operator&(const Permission & a, const Permission & b) |
constexpr Permission | operator^(const Permission & a, const Permission & b) |
constexpr bool | hasPremission(const Permission & target, const Permission & permission) |
void | AppCommand::Option::Choice::set< json::Value >(json::Value & _val) |
template <typename DiscordOject > std::string | operator+(const char * left, Snowflake< DiscordOject > & right) |
template <typename DiscordOject > bool | operator==(const char * left, Snowflake< DiscordOject > & right) |
template <typename DiscordOject > bool | operator!=(const char * left, Snowflake< DiscordOject > & right) |
bool | isFeatureAvaiable(std::string & featureName) |
Attributes​
Name | |
---|---|
constexpr unsigned int | versionNum |
constexpr unsigned int | revisionNum |
constexpr const char * | description |
constexpr const char * | branch |
constexpr const char * | revision |
constexpr const char * | version |
constexpr bool | isMaster |
constexpr const char * | userAgent |
std::unordered_set< std::string > | availableFeatures |
Types Documentation​
enum AuditLogEvent​
Enumerator | Value | Description |
---|---|---|
GUILD_UPDATE | 1 | |
CHANNEL_CREATE | 10 | |
CHANNEL_UPDATE | 11 | |
CHANNEL_DELETE | 12 | |
CHANNEL_OVERWRITE_CREATE | 13 | |
CHANNEL_OVERWRITE_UPDATE | 14 | |
CHANNEL_OVERWRITE_DELETE | 15 | |
MEMBER_KICK | 20 | |
MEMBER_PRUNE | 21 | |
MEMBER_BAN_ADD | 22 | |
MEMBER_BAN_REMOVE | 23 | |
MEMBER_UPDATE | 24 | |
MEMBER_ROLE_UPDATE | 25 | |
ROLE_CREATE | 30 | |
ROLE_UPDATE | 31 | |
ROLE_DELETE | 32 | |
INVITE_CREATE | 40 | |
INVITE_UPDATE | 41 | |
INVITE_DELETE | 42 | |
WEBHOOK_CREATE | 50 | |
WEBHOOK_UPDATE | 51 | |
WEBHOOK_DELETE | 52 | |
EMOJI_CREATE | 60 | |
EMOJI_UPDATE | 61 | |
EMOJI_DELETE | 62 | |
MESSAGE_DELETE | 72 |
enum Mode​
Enumerator | Value | Description |
---|---|---|
USER_CONTROLED_THREADS | 1 | |
USE_RUN_THREAD | 3 | |
DEFAULT_THREADS | USER_CONTROLED_THREADS |
enum TTS​
Enumerator | Value | Description |
---|---|---|
DisableTTS | ||
EnableTTS | ||
Default | DisableTTS |
enum RequestMode​
Enumerator | Value | Description |
---|---|---|
UseRequestAsync | 1 << 0 | |
UseRequestSync | 0 << 0 | |
ThrowError | 1 << 4 | |
AsyncQueue | 1 << 5 | |
Async | UseRequestAsync | AsyncQueue |
Sync | UseRequestSync | ThrowError |
Sync_AsyncQueue | UseRequestSync | ThrowError |
enum Intent​
Enumerator | Value | Description |
---|---|---|
SERVERS | 1 << 0 | |
SERVER_MEMBERS | 1 << 1 | |
SERVER_BANS | 1 << 2 | |
SERVER_EMOJIS | 1 << 3 | |
SERVER_INTEGRATIONS | 1 << 4 | |
SERVER_WEBHOOKS | 1 << 5 | |
SERVER_INVITES | 1 << 6 | |
SERVER_VOICE_STATES | 1 << 7 | |
SERVER_PRESENCES | 1 << 8 | |
SERVER_MESSAGES | 1 << 9 | |
SERVER_MESSAGE_REACTIONS | 1 << 10 | |
SERVER_MESSAGE_TYPING | 1 << 11 | |
DIRECT_MESSAGES | 1 << 12 | |
DIRECT_MESSAGE_REACTIONS | 1 << 13 | |
DIRECT_MESSAGE_TYPING | 1 << 14 |
enum ErrorCode​
Enumerator | Value | Description |
---|---|---|
ERROR_ZERO | 0 | |
SWITCHING_PROTOCOLS | 101 | |
OK | 200 | |
CREATED | 201 | |
NO_CONTENT | 204 | |
NOT_MODIFIED | 304 | |
BAD_REQUEST | 400 | |
UNAUTHORIZED | 401 | |
FORBIDDEN | 403 | |
NOT_FOUND | 404 | |
METHOD_NOT_ALLOWED | 405 | |
TOO_MANY_REQUESTS | 429 | |
GATEWAY_UNAVAILABLE | 502 | |
UNKNOWN_ERROR | 4000 | |
UNKNOWN_OPCODE | 4001 | |
DECODE_ERROR | 4002 | |
NOT_AUTHENTICATED | 4003 | |
AUTHENTICATION_FAILED | 4004 | |
ALREADY_AUTHENTICATED | 4005 | |
SESSION_NO_LONGER_VALID | 4006 | |
INVALID_SEQ | 4007 | |
RATE_LIMITED | 4008 | |
SESSION_TIMEOUT | 4009 | |
INVALID_SHARD | 4010 | |
SHARDING_REQUIRED | 4011 | |
UNKNOWN_PROTOCOL | 4012 | |
INVALID_INTENTS | 4013 | |
DISALLOWED_INTENTS | 4014 | |
VOICE_SERVER_CRASHED | 4015 | |
UNKNOWN_ENCRYPTION_MODE | 4016 | |
RECONNECTING | 4900 | |
CONNECT_FAILED | 5000 | |
EVENT_UNKNOWN | 5001 | |
GATEWAY_FAILED | 5002 | |
GENERAL_ERROR | 5003 | |
LAZY_ERROR | 5004 | |
ERROR_NOTE | 5005 | |
VOICE_NO_SODIUM | 5006 | |
VOICE_NO_OPUS | 5007 | |
CANT_SCHEDULE | 5008 |
enum Status​
Enumerator | Value | Description |
---|---|---|
statusError | 0 | |
online | ||
doNotDisturb | ||
idle | ||
invisible | ||
offline |
enum GameType​
Enumerator | Value | Description |
---|---|---|
Playing | 0 | |
Streaming | 1 |
enum RequestMethod​
Enumerator | Value | Description |
---|---|---|
Post | 0 | |
Patch | 1 | |
Delete | 2 | |
Get | 3 | |
Put | 4 |
enum InteractionType​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
Ping | 1 | |
ApplicationCommand | 2 | |
MessageComponent | 3 | |
ApplicationCommandAutocomplete | 4 | |
ModalSubmit | 5 |
enum ComponentType​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
ActionRow | 1 | |
Button | 2 | |
SelectMenu | 3 | |
TextInputs | 4 |
enum ButtonStyle​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
Primary | 1 | |
Secondary | 2 | |
Success | 3 | |
Danger | 4 | |
Link | 5 | |
DefaultStyle | NONE |
enum TextInputStyle​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
Short | 1 | |
Paragraph | 2 | |
DefaultStyle | NONE |
enum MentionReplierFlag​
Enumerator | Value | Description |
---|---|---|
NotSet | -2 | |
DoNotMentionReply | false | |
MentionReply | true |
enum Permission​
Enumerator | Value | Description |
---|---|---|
CREATE_INSTANT_INVITE | 0x00000001 | |
KICK_MEMBERS | 0x00000002 | |
BAN_MEMBERS | 0x00000004 | |
ADMINISTRATOR | 0x00000008 | |
MANAGE_CHANNELS | 0x00000010 | |
MANAGE_GUILD | 0x00000020 | |
ADD_REACTIONS | 0x00000040 | |
VIEW_AUDIT_LOG | 0x00000080 | |
VIEW_CHANNEL | 0x00000400 | |
SEND_MESSAGES | 0x00000800 | |
SEND_TTS_MESSAGES | 0x00001000 | |
MANAGE_MESSAGES | 0x00002000 | |
EMBED_LINKS | 0x00004000 | |
ATTACH_FILES | 0x00008000 | |
READ_MESSAGE_HISTORY | 0x00010000 | |
MENTION_EVERYONE | 0x00020000 | |
USE_EXTERNAL_EMOJIS | 0x00040000 | |
CONNECT | 0x00100000 | |
SPEAK | 0x00200000 | |
MUTE_MEMBERS | 0x00400000 | |
DEAFEN_MEMBERS | 0x00800000 | |
MOVE_MEMBERS | 0x01000000 | |
USE_VAD | 0x02000000 | |
PRIORITY_SPEAKER | 0x00000100 | |
CHANGE_NICKNAME | 0x04000000 | |
MANAGE_NICKNAMES | 0x08000000 | |
MANAGE_ROLES | 0x10000000 | |
MANAGE_WEBHOOKS | 0x20000000 | |
MANAGE_EMOJIS | 0x40000000 | |
NONE | 0x000000000 | |
NONE | 0 | |
NONE | 0 | |
NONE | 0 | |
NONE | 0 | |
ALL | 0xFFFFFFFFF | |
READ_MESSAGES | VIEW_CHANNEL |
enum IntCallBackT​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
Pong | 1 | |
ChannelMessageWithSource | 4 | |
DeferredChannelMessageWithSource | 5 | |
DefChannelMessageWScore | DeferredChannelMessageWithSource | |
DeferredUpdateMessage | 6 | |
UpdateMessage | 7 | |
ApplicationCommandAutocompleteResult | 8 | |
AppCommandAutocomplete | ApplicationCommandAutocompleteResult | |
Modal | 9 |
enum AudioSourceType​
Enumerator | Value | Description |
---|---|---|
AUDIO_BASE_TYPE | ||
AUDIO_CONTAINER |
typedef UDPClient​
typedef CustomUDPClient SleepyDiscord::UDPClient;
using AuditLogKey​
template <typename template< class, class > Data,
ObjectChanged ,
Type >
using SleepyDiscord::AuditLogKey = typedef std::pair<std::string, Data<ObjectChanged, Type> >;
using CacheParent​
template <class _Type >
using SleepyDiscord::CacheParent = typedef std::unordered_map<typename Snowflake<_Type>::RawType, _Type>;
using IntentsRaw​
using SleepyDiscord::IntentsRaw = typedef int32_t;
typedef BoolResponse​
typedef BooleanResponse SleepyDiscord::BoolResponse;
using ArrayResponse​
template <class Type >
using SleepyDiscord::ArrayResponse = typedef json::ArrayWrapper<Type, ArrayResponseWrapper>;
using VoidResponse​
using SleepyDiscord::VoidResponse = typedef StringResponse;
typedef Session​
typedef CustomSession SleepyDiscord::Session;
typedef WebsocketConnection​
typedef websocketpp::connection_hdl SleepyDiscord::WebsocketConnection;
typedef CustomInit​
typedef GenericSession*(*const SleepyDiscord::CustomInit) ();
typedef CustomInitSession​
typedef CustomInit SleepyDiscord::CustomInitSession;
typedef CustomInitUDPClient​
typedef GenericUDPClient*(*const SleepyDiscord::CustomInitUDPClient) ();
typedef Multipart​
typedef std::initializer_list<Part> SleepyDiscord::Multipart;
using PermissionRaw​
using SleepyDiscord::PermissionRaw = typedef uint64_t;
using isInt​
template <class Int >
using SleepyDiscord::isInt = typedef typename std::enable_if < std::is_integral< Int >::value >;
using isNum​
template <class Num >
using SleepyDiscord::isNum = typedef typename std::enable_if < std::is_floating_point< Num >::value >;
using InteractionAppCommandCallbackData​
using SleepyDiscord::InteractionAppCommandCallbackData = typedef InteractionCallback::Message;
using InteractionCallbackType​
using SleepyDiscord::InteractionCallbackType = typedef IntCallBackT;
using Time​
using SleepyDiscord::Time = typedef int64_t;
typedef TimedTask​
typedef std::function<void()> SleepyDiscord::TimedTask;
typedef DiscordClient​
typedef WebsocketppDiscordClient SleepyDiscord::DiscordClient;
using AudioSample​
using SleepyDiscord::AudioSample = typedef int16_t;
using AudioPointerSource​
using SleepyDiscord::AudioPointerSource = typedef BaseAudioSource;
using DefaultCompression​
using SleepyDiscord::DefaultCompression = typedef ZLibCompression;
Functions Documentation​
function handle_send​
void handle_send(
const std::error_code & ,
std::size_t ,
GenericUDPClient::SendHandler handler
)
function hash​
constexpr unsigned int hash(
const char * key,
unsigned int i =0
)
function createMessageBody​
std::string createMessageBody(
std::string & message,
Embed & embed,
MessageReference & replyingTo,
TTS tts
)
function convertEmojiToURL​
std::string convertEmojiToURL(
const std::string emoji
)
function optionalWebhookToken​
inline const char * optionalWebhookToken(
std::string webhookToken
)
function CDN_path​
std::string CDN_path(
const std::initializer_list< std::string > path
)
function getMethodName​
const char * getMethodName(
const RequestMethod & method
)
function escapeURL​
std::string escapeURL(
const std::string & string
)
function getBasePermissions​
Permission getBasePermissions(
const Server & server,
const ServerMember & member
)
function handleOverwrite​
void handleOverwrite(
Permission & target,
const Permission & allow,
const Permission & deny
)
function handleOverwrite​
void handleOverwrite(
Permission & target,
const Overwrite & overwrite
)
function overwritePermissions​
Permission overwritePermissions(
const Permission basePermissions,
const Server & server,
const ServerMember & member,
const Channel & channel
)
function getPermissions​
Permission getPermissions(
const Server & server,
const ServerMember & member,
const Channel & channel
)
function handleTimer​
void handleTimer(
const websocketpp::lib::error_code & ec,
std::function< void()> & code
)
function handleTimers​
void handleTimers(
const websocketpp::lib::error_code & ec,
std::function< void()> & code,
_client::timer_ptr timer
)
function rerunTimer​
template <class Client >
void rerunTimer(
_client::timer_ptr timer,
TimedTask code,
Client & c
)
function SuccessCodeFn​
template <ErrorCode Code>
inline const BooleanResponse::Callback SuccessCodeFn()
function EmptyRespFn​
inline const BooleanResponse::Callback EmptyRespFn()
function StandardRespFn​
inline const BooleanResponse::Callback StandardRespFn()
function index​
template <template< class... > class Container,
typename Type >
constexpr unsigned int index(
Container< Type *const > names,
Type * name,
unsigned int i =0
)
function JSON_getArray​
template <class _DiscordObject >
std::vector< _DiscordObject > JSON_getArray(
const std::string * _source
)
function JSON_getArray​
template <class _DiscordObject ,
class Type >
inline std::vector< _DiscordObject > JSON_getArray(
const Type & _source
)
function JSON_getList​
template <class _DiscordObject ,
class Type >
inline std::list< _DiscordObject > JSON_getList(
const Type & _source
)
function toPermission​
inline constexpr Permission toPermission(
const int64_t & permission
)
function toPermission​
inline Permission toPermission(
const json::Value & value
)
function operator|​
inline constexpr Permission operator|(
const Permission & a,
const Permission & b
)
function operator&​
inline constexpr Permission operator&(
const Permission & a,
const Permission & b
)
function operator^​
inline constexpr Permission operator^(
const Permission & a,
const Permission & b
)
function hasPremission​
inline constexpr bool hasPremission(
const Permission & target,
const Permission & permission
)
function AppCommand::Option::Choice::set< json::Value >​
inline void AppCommand::Option::Choice::set< json::Value >(
json::Value & _val
)
function operator+​
template <typename DiscordOject >
inline std::string operator+(
const char * left,
Snowflake< DiscordOject > & right
)
function operator==​
template <typename DiscordOject >
inline bool operator==(
const char * left,
Snowflake< DiscordOject > & right
)
function operator!=​
template <typename DiscordOject >
inline bool operator!=(
const char * left,
Snowflake< DiscordOject > & right
)
function isFeatureAvaiable​
inline bool isFeatureAvaiable(
std::string & featureName
)
Attributes Documentation​
variable versionNum​
constexpr unsigned int versionNum = SLEEPY_DISCORD_VERSION_NUM;
variable revisionNum​
constexpr unsigned int revisionNum = SLEEPY_DISCORD_VERSION_BUILD;
variable description​
constexpr const char * description = SLEEPY_DISCORD_VERSION_DESCRIPTION;
variable branch​
constexpr const char * branch = SLEEPY_DISCORD_VERSION_BRANCH;
variable revision​
constexpr const char * revision = SLEEPY_DISCORD_VERSION_HASH;
variable version​
constexpr const char * version = SLEEPY_DISCORD_VERSION;
variable isMaster​
constexpr bool isMaster = SLEEPY_DISCORD_VERSION_IS_MASTER;
variable userAgent​
constexpr const char * userAgent =
"DiscordBot (https://github.com/yourWaifu/SleepyDiscord, "
SLEEPY_DISCORD_VERSION_STR(NUM)
") "
SLEEPY_DISCORD_VERSION;
variable availableFeatures​
std::unordered_set< std::string > availableFeatures {
"Available Feature List",
"List of Available Features",
"V8 Discord API",
};
Updated on 13 April 2022 at 18:39:58 UTC