Skip to main content

SleepyDiscord

Namespaces​

Name
SleepyDiscord::InteractionCallback
SleepyDiscord::json

Classes​

Name
structSleepyDiscord::ActionRow
structSleepyDiscord::Activity
structSleepyDiscord::ActivityAssets
structSleepyDiscord::ActivityParty
structSleepyDiscord::ActivitySecrets
structSleepyDiscord::ActivityTimestamp
structSleepyDiscord::ActivityTimestampTypeHelper
structSleepyDiscord::AllowedMentions
structSleepyDiscord::AllowMentionsParseHelper
structSleepyDiscord::AppCommand
structSleepyDiscord::Application
structSleepyDiscord::ArrayResponseWrapper
classSleepyDiscord::ASIOBasedScheduleHandler
classSleepyDiscord::ASIOScheduleHandler
classSleepyDiscord::ASIOUDPClient
structSleepyDiscord::Attachment
structSleepyDiscord::AudioSource
structSleepyDiscord::AudioTimer
structSleepyDiscord::AudioTransmissionDetails
structSleepyDiscord::AudioVectorSource
structSleepyDiscord::AuditLog
structSleepyDiscord::AuditLogKeyData
structSleepyDiscord::BaseAudioOutput
structSleepyDiscord::BaseAudioSource
structSleepyDiscord::BaseComponent
classSleepyDiscord::BaseDiscordClient
structSleepyDiscord::BaseEditWebhookParams
classSleepyDiscord::BaseVoiceEventHandler
structSleepyDiscord::BaseWebHookParams
structSleepyDiscord::BasicAudioSourceForContainers
structSleepyDiscord::BooleanResponse
structSleepyDiscord::Button
structSleepyDiscord::Cache
structSleepyDiscord::caseInsensitiveCompare
structSleepyDiscord::Channel
structSleepyDiscord::ComponentTemp
structSleepyDiscord::Connection
classSleepyDiscord::CPRSession
classSleepyDiscord::CustomSession
classSleepyDiscord::CustomUDPClient
classSleepyDiscord::DiscordObject
structSleepyDiscord::EditMessageParams
structSleepyDiscord::EditWebhookParams
structSleepyDiscord::Embed
structSleepyDiscord::EmbedAuthor
structSleepyDiscord::EmbedField
structSleepyDiscord::EmbedFooter
structSleepyDiscord::EmbedImage
structSleepyDiscord::EmbedProvider
structSleepyDiscord::EmbedThumbnail
structSleepyDiscord::EmbedVideo
structSleepyDiscord::Emoji
structSleepyDiscord::EmptyDiscordObject
structSleepyDiscord::filePathPart
structSleepyDiscord::FollowupMessage
structSleepyDiscord::Game
structSleepyDiscord::Gateway
classSleepyDiscord::GenericCompression
classSleepyDiscord::GenericMessageReceiver
classSleepyDiscord::GenericScheduleHandler
classSleepyDiscord::GenericSession
classSleepyDiscord::GenericUDPClient
structSleepyDiscord::GenericWebsocketConnection
structSleepyDiscord::GetDefault
structSleepyDiscord::GetDefault< Activity::ActivityType >
structSleepyDiscord::GetDefault< AllowedMentions::MentionReplierFlag >
structSleepyDiscord::GetDefault< AppCommand::Option::Default >
structSleepyDiscord::GetDefault< Channel::ChannelType >
structSleepyDiscord::GetDefault< InteractionCallback::Message::Flags >
structSleepyDiscord::GetDefault< Overwrite::Type >
structSleepyDiscord::GetDefault< StageInstance::PrivacyLevel >
structSleepyDiscord::GetDefault< UnavailableServer::AvailableFlag >
structSleepyDiscord::GetEnumBaseType
structSleepyDiscord::GetEnumBaseType< AllowedMentions::MentionReplierFlag >
structSleepyDiscord::GetEnumBaseType< UnavailableServer::AvailableFlag >
structSleepyDiscord::HeaderPair
classSleepyDiscord::IdentifiableDiscordObject
structSleepyDiscord::Interaction
structSleepyDiscord::InteractionCallbackHelper
structSleepyDiscord::InteractionCallbackHelper< InteractionCallback::Autocomplete >
structSleepyDiscord::InteractionCallbackHelper< InteractionCallback::EditMessage >
structSleepyDiscord::InteractionCallbackHelper< InteractionCallback::Modal >
structSleepyDiscord::InteractionCallbackTypeHelper
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::AppCommandAutocomplete >
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::ChannelMessageWithSource >
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::DefChannelMessageWScore >
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::DeferredUpdateMessage >
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::Modal >
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::Pong >
structSleepyDiscord::InteractionCallbackTypeHelper< IntCallBackT::UpdateMessage >
structSleepyDiscord::InteractionData
structSleepyDiscord::Invite
structSleepyDiscord::InviteMetadata
structSleepyDiscord::Message
structSleepyDiscord::MessageParams
structSleepyDiscord::MessageReference
structSleepyDiscord::MessageRevisions
structSleepyDiscord::ObjectResponse
structSleepyDiscord::OutputQueue
structSleepyDiscord::Overwrite
structSleepyDiscord::Part
structSleepyDiscord::PresenceUpdate
structSleepyDiscord::RateLimiter
structSleepyDiscord::RawComponent
structSleepyDiscord::Reaction
structSleepyDiscord::Ready
structSleepyDiscord::Response
structSleepyDiscord::Role
classSleepyDiscord::Route
structSleepyDiscord::SelectMenu
structSleepyDiscord::SendMessageParams
structSleepyDiscord::Server
structSleepyDiscord::ServerAppCommandPermissions
classSleepyDiscord::ServerCache
structSleepyDiscord::ServerMember
structSleepyDiscord::ServerMembersChunk
structSleepyDiscord::ServerMembersRequest
structSleepyDiscord::ServerWidget
structSleepyDiscord::SessionStartLimit
structSleepyDiscord::Snowflake
structSleepyDiscord::StageInstance
structSleepyDiscord::StandardResponse
structSleepyDiscord::Sticker
structSleepyDiscord::StickerPack
structSleepyDiscord::StringResponse
structSleepyDiscord::TextInputs
structSleepyDiscord::Timer
structSleepyDiscord::UInt64StrTypeHelper
structSleepyDiscord::UnavailableServer
structSleepyDiscord::User
classSleepyDiscord::UWebSocketsDiscordClient
classSleepyDiscord::VoiceConnection
structSleepyDiscord::VoiceContext
structSleepyDiscord::VoiceRegion
structSleepyDiscord::VoiceServerUpdate
structSleepyDiscord::VoiceState
structSleepyDiscord::Webhook
structSleepyDiscord::WebHookParams
structSleepyDiscord::WebSocketMessage
classSleepyDiscord::WebsocketppDiscordClient
classSleepyDiscord::WebsocketppScheduleHandler
classSleepyDiscord::ZLibCompression

Types​

Name
enumAuditLogEvent { 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 charMode { USER_CONTROLED_THREADS = 1, USE_RUN_THREAD = 3, DEFAULT_THREADS = USER_CONTROLED_THREADS}
enum charTTS { DisableTTS, EnableTTS, Default = DisableTTS}
enumRequestMode { UseRequestAsync = 1 << 0, UseRequestSync = 0 << 0, ThrowError = 1 << 4, AsyncQueue = 1 << 5, Async = UseRequestAsync
enum IntentsRawIntent { 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}
enumErrorCode { 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}
enumStatus { statusError = 0, online, doNotDisturb, idle, invisible, offline}
enumGameType { Playing = 0, Streaming = 1}
enumRequestMethod { Post = 0, Patch = 1, Delete = 2, Get = 3, Put = 4}
enum intInteractionType { NONE = 0, Ping = 1, ApplicationCommand = 2, MessageComponent = 3, ApplicationCommandAutocomplete = 4, ModalSubmit = 5}
enumComponentType { NONE = 0, ActionRow = 1, Button = 2, SelectMenu = 3, TextInputs = 4}
enumButtonStyle { NONE = 0, Primary = 1, Secondary = 2, Success = 3, Danger = 4, Link = 5, DefaultStyle = NONE}
enumTextInputStyle { NONE = 0, Short = 1, Paragraph = 2, DefaultStyle = NONE}
enumMentionReplierFlag { NotSet = -2, DoNotMentionReply = false, MentionReply = true}
enum PermissionRawPermission { 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 intIntCallBackT { NONE = 0, Pong = 1, ChannelMessageWithSource = 4, DeferredChannelMessageWithSource = 5, DefChannelMessageWScore = DeferredChannelMessageWithSource, DeferredUpdateMessage = 6, UpdateMessage = 7, ApplicationCommandAutocompleteResult = 8, AppCommandAutocomplete = ApplicationCommandAutocompleteResult, Modal = 9}
enumAudioSourceType { AUDIO_BASE_TYPE, AUDIO_CONTAINER}
typedef ASIOUDPClientUDPClient
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_tIntentsRaw
typedef BooleanResponseBoolResponse
template <class Type >
using json::ArrayWrapper< Type, ArrayResponseWrapper >
ArrayResponse
using StringResponseVoidResponse
typedef CPRSessionSession
typedef std::shared_ptr< GenericWebsocketConnection >WebsocketConnection
typedef GenericSession (const)()CustomInit
typedef CustomInitCustomInitSession
typedef GenericUDPClient (const)()CustomInitUDPClient
typedef std::initializer_list< Part >Multipart
using uint64_tPermissionRaw
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::MessageInteractionAppCommandCallbackData
using IntCallBackTInteractionCallbackType
using int64_tTime
typedef std::function< void()>TimedTask
typedef UWebSocketsDiscordClientDiscordClient
using int16_tAudioSample
using BaseAudioSourceAudioPointerSource
using ZLibCompressionDefaultCompression

Functions​

Name
voidhandle_send(const std::error_code & , std::size_t , GenericUDPClient::SendHandler handler)
constexpr unsigned inthash(const char * key, unsigned int i =0)
std::stringcreateMessageBody(std::string & message, Embed & embed, MessageReference & replyingTo, TTS tts)
std::stringconvertEmojiToURL(const std::string emoji)
const char *optionalWebhookToken(std::string webhookToken)
std::stringCDN_path(const std::initializer_list< std::string > path)
const char *getMethodName(const RequestMethod & method)
std::stringescapeURL(const std::string & string)
PermissiongetBasePermissions(const Server & server, const ServerMember & member)
voidhandleOverwrite(Permission & target, const Permission & allow, const Permission & deny)
voidhandleOverwrite(Permission & target, const Overwrite & overwrite)
PermissionoverwritePermissions(const Permission basePermissions, const Server & server, const ServerMember & member, const Channel & channel)
PermissiongetPermissions(const Server & server, const ServerMember & member, const Channel & channel)
voidhandleTimer(const websocketpp::lib::error_code & ec, std::function< void()> & code)
voidhandleTimers(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::CallbackEmptyRespFn()
const BooleanResponse::CallbackStandardRespFn()
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 PermissiontoPermission(const int64_t & permission)
PermissiontoPermission(const json::Value & value)
constexpr Permission**[operator
constexpr Permissionoperator&(const Permission & a, const Permission & b)
constexpr Permissionoperator^(const Permission & a, const Permission & b)
constexpr boolhasPremission(const Permission & target, const Permission & permission)
voidAppCommand::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)
boolisFeatureAvaiable(std::string & featureName)

Attributes​

Name
constexpr unsigned intversionNum
constexpr unsigned intrevisionNum
constexpr const char *description
constexpr const char *branch
constexpr const char *revision
constexpr const char *version
constexpr boolisMaster
constexpr const char *userAgent
std::unordered_set< std::string >availableFeatures

Types Documentation​

enum AuditLogEvent​

EnumeratorValueDescription
GUILD_UPDATE1
CHANNEL_CREATE10
CHANNEL_UPDATE11
CHANNEL_DELETE12
CHANNEL_OVERWRITE_CREATE13
CHANNEL_OVERWRITE_UPDATE14
CHANNEL_OVERWRITE_DELETE15
MEMBER_KICK20
MEMBER_PRUNE21
MEMBER_BAN_ADD22
MEMBER_BAN_REMOVE23
MEMBER_UPDATE24
MEMBER_ROLE_UPDATE25
ROLE_CREATE30
ROLE_UPDATE31
ROLE_DELETE32
INVITE_CREATE40
INVITE_UPDATE41
INVITE_DELETE42
WEBHOOK_CREATE50
WEBHOOK_UPDATE51
WEBHOOK_DELETE52
EMOJI_CREATE60
EMOJI_UPDATE61
EMOJI_DELETE62
MESSAGE_DELETE72

enum Mode​

EnumeratorValueDescription
USER_CONTROLED_THREADS1
USE_RUN_THREAD3
DEFAULT_THREADSUSER_CONTROLED_THREADS

enum TTS​

EnumeratorValueDescription
DisableTTS
EnableTTS
DefaultDisableTTS

enum RequestMode​

EnumeratorValueDescription
UseRequestAsync1 << 0
UseRequestSync0 << 0
ThrowError1 << 4
AsyncQueue1 << 5
AsyncUseRequestAsyncAsyncQueue
SyncUseRequestSyncThrowError
Sync_AsyncQueueUseRequestSyncThrowError

enum Intent​

EnumeratorValueDescription
SERVERS1 << 0
SERVER_MEMBERS1 << 1
SERVER_BANS1 << 2
SERVER_EMOJIS1 << 3
SERVER_INTEGRATIONS1 << 4
SERVER_WEBHOOKS1 << 5
SERVER_INVITES1 << 6
SERVER_VOICE_STATES1 << 7
SERVER_PRESENCES1 << 8
SERVER_MESSAGES1 << 9
SERVER_MESSAGE_REACTIONS1 << 10
SERVER_MESSAGE_TYPING1 << 11
DIRECT_MESSAGES1 << 12
DIRECT_MESSAGE_REACTIONS1 << 13
DIRECT_MESSAGE_TYPING1 << 14

enum ErrorCode​

EnumeratorValueDescription
ERROR_ZERO0
SWITCHING_PROTOCOLS101
OK200
CREATED201
NO_CONTENT204
NOT_MODIFIED304
BAD_REQUEST400
UNAUTHORIZED401
FORBIDDEN403
NOT_FOUND404
METHOD_NOT_ALLOWED405
TOO_MANY_REQUESTS429
GATEWAY_UNAVAILABLE502
UNKNOWN_ERROR4000
UNKNOWN_OPCODE4001
DECODE_ERROR4002
NOT_AUTHENTICATED4003
AUTHENTICATION_FAILED4004
ALREADY_AUTHENTICATED4005
SESSION_NO_LONGER_VALID4006
INVALID_SEQ4007
RATE_LIMITED4008
SESSION_TIMEOUT4009
INVALID_SHARD4010
SHARDING_REQUIRED4011
UNKNOWN_PROTOCOL4012
INVALID_INTENTS4013
DISALLOWED_INTENTS4014
VOICE_SERVER_CRASHED4015
UNKNOWN_ENCRYPTION_MODE4016
RECONNECTING4900
CONNECT_FAILED5000
EVENT_UNKNOWN5001
GATEWAY_FAILED5002
GENERAL_ERROR5003
LAZY_ERROR5004
ERROR_NOTE5005
VOICE_NO_SODIUM5006
VOICE_NO_OPUS5007
CANT_SCHEDULE5008

enum Status​

EnumeratorValueDescription
statusError0
online
doNotDisturb
idle
invisible
offline

enum GameType​

EnumeratorValueDescription
Playing0
Streaming1

enum RequestMethod​

EnumeratorValueDescription
Post0
Patch1
Delete2
Get3
Put4

enum InteractionType​

EnumeratorValueDescription
NONE0
Ping1
ApplicationCommand2
MessageComponent3
ApplicationCommandAutocomplete4
ModalSubmit5

enum ComponentType​

EnumeratorValueDescription
NONE0
ActionRow1
Button2
SelectMenu3
TextInputs4

enum ButtonStyle​

EnumeratorValueDescription
NONE0
Primary1
Secondary2
Success3
Danger4
Link5
DefaultStyleNONE

enum TextInputStyle​

EnumeratorValueDescription
NONE0
Short1
Paragraph2
DefaultStyleNONE

enum MentionReplierFlag​

EnumeratorValueDescription
NotSet-2
DoNotMentionReplyfalse
MentionReplytrue

enum Permission​

EnumeratorValueDescription
CREATE_INSTANT_INVITE0x00000001
KICK_MEMBERS0x00000002
BAN_MEMBERS0x00000004
ADMINISTRATOR0x00000008
MANAGE_CHANNELS0x00000010
MANAGE_GUILD0x00000020
ADD_REACTIONS0x00000040
VIEW_AUDIT_LOG0x00000080
VIEW_CHANNEL0x00000400
SEND_MESSAGES0x00000800
SEND_TTS_MESSAGES0x00001000
MANAGE_MESSAGES0x00002000
EMBED_LINKS0x00004000
ATTACH_FILES0x00008000
READ_MESSAGE_HISTORY0x00010000
MENTION_EVERYONE0x00020000
USE_EXTERNAL_EMOJIS0x00040000
CONNECT0x00100000
SPEAK0x00200000
MUTE_MEMBERS0x00400000
DEAFEN_MEMBERS0x00800000
MOVE_MEMBERS0x01000000
USE_VAD0x02000000
PRIORITY_SPEAKER0x00000100
CHANGE_NICKNAME0x04000000
MANAGE_NICKNAMES0x08000000
MANAGE_ROLES0x10000000
MANAGE_WEBHOOKS0x20000000
MANAGE_EMOJIS0x40000000
NONE0x000000000
NONE0
NONE0
NONE0
NONE0
ALL0xFFFFFFFFF
READ_MESSAGESVIEW_CHANNEL

enum IntCallBackT​

EnumeratorValueDescription
NONE0
Pong1
ChannelMessageWithSource4
DeferredChannelMessageWithSource5
DefChannelMessageWScoreDeferredChannelMessageWithSource
DeferredUpdateMessage6
UpdateMessage7
ApplicationCommandAutocompleteResult8
AppCommandAutocompleteApplicationCommandAutocompleteResult
Modal9

enum AudioSourceType​

EnumeratorValueDescription
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