mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update Constants.cpp
This commit is contained in:
parent
4eaeeedf15
commit
c0c8cf91cb
@ -9,83 +9,83 @@ namespace SqMod {
|
|||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
const std::array< const char *, static_cast< size_t >(DpEventID::Max) > DpEventID::NAME{
|
const std::array< const char *, static_cast< size_t >(DpEventID::Max) > DpEventID::NAME{
|
||||||
"VoiceStateUpdate",
|
"VoiceStateUpdate",
|
||||||
"VoiceClientDisconnect",
|
"VoiceClientDisconnect",
|
||||||
"VoiceClientSpeaking",
|
"VoiceClientSpeaking",
|
||||||
"Log",
|
"Log",
|
||||||
"GuildJoinRequestDelete",
|
"GuildJoinRequestDelete",
|
||||||
"InteractionCreate",
|
"InteractionCreate",
|
||||||
"SlashCommand",
|
"SlashCommand",
|
||||||
"ButtonClick",
|
"ButtonClick",
|
||||||
"AutoComplete",
|
"AutoComplete",
|
||||||
"SelectClick",
|
"SelectClick",
|
||||||
"MessageContextMenu",
|
"MessageContextMenu",
|
||||||
"UserContextMenu",
|
"UserContextMenu",
|
||||||
"FormSubmit",
|
"FormSubmit",
|
||||||
"GuildDelete",
|
"GuildDelete",
|
||||||
"ChannelDelete",
|
"ChannelDelete",
|
||||||
"ChannelUpdate",
|
"ChannelUpdate",
|
||||||
"Ready",
|
"Ready",
|
||||||
"MessageDelete",
|
"MessageDelete",
|
||||||
"GuildMemberRemove",
|
"GuildMemberRemove",
|
||||||
"Resumed",
|
"Resumed",
|
||||||
"GuildRoleCreate",
|
"GuildRoleCreate",
|
||||||
"TypingStart",
|
"TypingStart",
|
||||||
"MessageReactionAdd",
|
"MessageReactionAdd",
|
||||||
"GuildMembersChunk",
|
"GuildMembersChunk",
|
||||||
"MessageReactionRemove",
|
"MessageReactionRemove",
|
||||||
"GuildCreate",
|
"GuildCreate",
|
||||||
"ChannelCreate",
|
"ChannelCreate",
|
||||||
"MessageReactionRemoveEmoji",
|
"MessageReactionRemoveEmoji",
|
||||||
"MessageDeleteDulk",
|
"MessageDeleteDulk",
|
||||||
"GuildRoleUpdate",
|
"GuildRoleUpdate",
|
||||||
"GuildRoleDelete",
|
"GuildRoleDelete",
|
||||||
"ChannelPinsUpdate",
|
"ChannelPinsUpdate",
|
||||||
"MessageReactionRemoveAll",
|
"MessageReactionRemoveAll",
|
||||||
"VoiceServerUpdate",
|
"VoiceServerUpdate",
|
||||||
"GuildEmojisUpdate",
|
"GuildEmojisUpdate",
|
||||||
"GuildStickersUpdate",
|
"GuildStickersUpdate",
|
||||||
"PresenceUpdate",
|
"PresenceUpdate",
|
||||||
"WebhooksUpdate",
|
"WebhooksUpdate",
|
||||||
"AutomodRuleCreate",
|
"AutomodRuleCreate",
|
||||||
"AutomodRuleUpdate",
|
"AutomodRuleUpdate",
|
||||||
"AutomodRuleDelete",
|
"AutomodRuleDelete",
|
||||||
"AutomodRuleExecute",
|
"AutomodRuleExecute",
|
||||||
"GuildMemberAdd",
|
"GuildMemberAdd",
|
||||||
"InviteDelete",
|
"InviteDelete",
|
||||||
"GuildUpdate",
|
"GuildUpdate",
|
||||||
"GuildIntegrationsUpdate",
|
"GuildIntegrationsUpdate",
|
||||||
"GuildMemberUpdate",
|
"GuildMemberUpdate",
|
||||||
"InviteCreate",
|
"InviteCreate",
|
||||||
"MessageUpdate",
|
"MessageUpdate",
|
||||||
"UserUpdate",
|
"UserUpdate",
|
||||||
"MessageCreate",
|
"MessageCreate",
|
||||||
"GuildAuditLogEntryCreate",
|
"GuildAuditLogEntryCreate",
|
||||||
"GuildBanAdd",
|
"GuildBanAdd",
|
||||||
"GuildBanRemove",
|
"GuildBanRemove",
|
||||||
"IntegrationCreate",
|
"IntegrationCreate",
|
||||||
"IntegrationUpdate",
|
"IntegrationUpdate",
|
||||||
"IntegrationDelete",
|
"IntegrationDelete",
|
||||||
"ThreadCreate",
|
"ThreadCreate",
|
||||||
"ThreadUpdate",
|
"ThreadUpdate",
|
||||||
"ThreadDelete",
|
"ThreadDelete",
|
||||||
"ThreadListSync",
|
"ThreadListSync",
|
||||||
"ThreadMemberUpdate",
|
"ThreadMemberUpdate",
|
||||||
"ThreadMembersUpdate",
|
"ThreadMembersUpdate",
|
||||||
"GuildScheduledEventCreate",
|
"GuildScheduledEventCreate",
|
||||||
"GuildScheduledEventUpdate",
|
"GuildScheduledEventUpdate",
|
||||||
"GuildScheduledEventDelete",
|
"GuildScheduledEventDelete",
|
||||||
"GuildScheduledEventUserAdd",
|
"GuildScheduledEventUserAdd",
|
||||||
"GuildScheduledEventUserRemove",
|
"GuildScheduledEventUserRemove",
|
||||||
"VoiceBufferSend",
|
"VoiceBufferSend",
|
||||||
"VoiceUserTalking",
|
"VoiceUserTalking",
|
||||||
"VoiceReady",
|
"VoiceReady",
|
||||||
"VoiceReceive",
|
"VoiceReceive",
|
||||||
"VoiceReceiveCombined",
|
"VoiceReceiveCombined",
|
||||||
"VoiceTrackMarker",
|
"VoiceTrackMarker",
|
||||||
"StageInstanceCreate",
|
"StageInstanceCreate",
|
||||||
"StageInstanceUpdate",
|
"StageInstanceUpdate",
|
||||||
"StageInstanceDelete",
|
"StageInstanceDelete",
|
||||||
};
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
@ -98,6 +98,14 @@ static const EnumElement g_DpLogLevelEnum[] = {
|
|||||||
{_SC("Critical"), static_cast< SQInteger >(dpp::ll_critical)},
|
{_SC("Critical"), static_cast< SQInteger >(dpp::ll_critical)},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
static const EnumElement g_DpImageTypeEnum[] = {
|
||||||
|
{_SC("PNG"), static_cast< SQInteger >(dpp::i_png)},
|
||||||
|
{_SC("JPG"), static_cast< SQInteger >(dpp::i_jpg)},
|
||||||
|
{_SC("GIF"), static_cast< SQInteger >(dpp::i_gif)},
|
||||||
|
{_SC("WEBP"), static_cast< SQInteger >(dpp::i_webp)},
|
||||||
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
static const EnumElement g_DpVoiceStateFlagsEnum[] = {
|
static const EnumElement g_DpVoiceStateFlagsEnum[] = {
|
||||||
{_SC("Deaf"), static_cast< SQInteger >(dpp::vs_deaf)},
|
{_SC("Deaf"), static_cast< SQInteger >(dpp::vs_deaf)},
|
||||||
@ -250,9 +258,38 @@ static const EnumElement g_DpGuildMemberFlagsEnum[] = {
|
|||||||
{_SC("VoiceAction"), static_cast< SQInteger >(dpp::gm_voice_action)},
|
{_SC("VoiceAction"), static_cast< SQInteger >(dpp::gm_voice_action)},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
static const EnumElement g_DpUserFlagsEnum[] = {
|
||||||
|
{_SC("Bot"), static_cast<SQInteger>(dpp::u_bot)},
|
||||||
|
{_SC("System"), static_cast<SQInteger>(dpp::u_system)},
|
||||||
|
{_SC("MfaEnabled"), static_cast<SQInteger>(dpp::u_mfa_enabled)},
|
||||||
|
{_SC("Verified"), static_cast<SQInteger>(dpp::u_verified)},
|
||||||
|
{_SC("NitroFull"), static_cast<SQInteger>(dpp::u_nitro_full)},
|
||||||
|
{_SC("NitroClassic"), static_cast<SQInteger>(dpp::u_nitro_classic)},
|
||||||
|
{_SC("DiscordEmployee"), static_cast<SQInteger>(dpp::u_discord_employee)},
|
||||||
|
{_SC("PartneredOwner"), static_cast<SQInteger>(dpp::u_partnered_owner)},
|
||||||
|
{_SC("HypesquadEvents"), static_cast<SQInteger>(dpp::u_hypesquad_events)},
|
||||||
|
{_SC("Bughunter1"), static_cast<SQInteger>(dpp::u_bughunter_1)},
|
||||||
|
{_SC("HouseBravery"), static_cast<SQInteger>(dpp::u_house_bravery)},
|
||||||
|
{_SC("HouseBrilliance"), static_cast<SQInteger>(dpp::u_house_brilliance)},
|
||||||
|
{_SC("HouseBalance"), static_cast<SQInteger>(dpp::u_house_balance)},
|
||||||
|
{_SC("EarlySupporter"), static_cast<SQInteger>(dpp::u_early_supporter)},
|
||||||
|
{_SC("TeamUser"), static_cast<SQInteger>(dpp::u_team_user)},
|
||||||
|
{_SC("Bughunter2"), static_cast<SQInteger>(dpp::u_bughunter_2)},
|
||||||
|
{_SC("VerifiedBot"), static_cast<SQInteger>(dpp::u_verified_bot)},
|
||||||
|
{_SC("VerifiedBotDev"), static_cast<SQInteger>(dpp::u_verified_bot_dev)},
|
||||||
|
{_SC("AnimatedIcon"), static_cast<SQInteger>(dpp::u_animated_icon)},
|
||||||
|
{_SC("CertifiedModerator"), static_cast<SQInteger>(dpp::u_certified_moderator)},
|
||||||
|
{_SC("BotHttpInteractions"), static_cast<SQInteger>(dpp::u_bot_http_interactions)},
|
||||||
|
{_SC("NitroBasic"), static_cast<SQInteger>(dpp::u_nitro_basic)},
|
||||||
|
{_SC("ActiveDeveloper"), static_cast<SQInteger>(dpp::u_active_developer)},
|
||||||
|
{_SC("AnimatedBanner"), static_cast<SQInteger>(dpp::u_animated_banner)},
|
||||||
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
static const EnumElements g_EnumList[] = {
|
static const EnumElements g_EnumList[] = {
|
||||||
{_SC("SqDiscordLogLevel"), g_DpLogLevelEnum},
|
{_SC("SqDiscordLogLevel"), g_DpLogLevelEnum},
|
||||||
|
{_SC("SqDiscordImageType"), g_DpImageTypeEnum},
|
||||||
{_SC("SqDiscordVoiceStateFlags"), g_DpVoiceStateFlagsEnum},
|
{_SC("SqDiscordVoiceStateFlags"), g_DpVoiceStateFlagsEnum},
|
||||||
{_SC("SqDiscordEmojiFlags"), g_DpEmojiFlagsEnum},
|
{_SC("SqDiscordEmojiFlags"), g_DpEmojiFlagsEnum},
|
||||||
{_SC("SqDiscordPresenceFlags"), g_DpPresenceFlagsEnum},
|
{_SC("SqDiscordPresenceFlags"), g_DpPresenceFlagsEnum},
|
||||||
@ -263,6 +300,7 @@ static const EnumElements g_EnumList[] = {
|
|||||||
{_SC("SqDiscordGuildFlags"), g_DpGuildFlagsEnum},
|
{_SC("SqDiscordGuildFlags"), g_DpGuildFlagsEnum},
|
||||||
{_SC("SqDiscordGuildFlagsExtra"), g_DpGuildFlagsExtraEnum},
|
{_SC("SqDiscordGuildFlagsExtra"), g_DpGuildFlagsExtraEnum},
|
||||||
{_SC("SqDiscordGuildMemberFlags"), g_DpGuildMemberFlagsEnum},
|
{_SC("SqDiscordGuildMemberFlags"), g_DpGuildMemberFlagsEnum},
|
||||||
|
{_SC("SqDiscordUserFlags"), g_DpUserFlagsEnum},
|
||||||
};
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user