diff --git a/module/Library/DPP/Constants.cpp b/module/Library/DPP/Constants.cpp index 346a074e..1a98ad02 100644 --- a/module/Library/DPP/Constants.cpp +++ b/module/Library/DPP/Constants.cpp @@ -192,7 +192,7 @@ static const EnumElement g_DpVoiceStateFlagsEnum[] = { {_SC("SelfDeaf"), static_cast< SQInteger >(dpp::vs_self_deaf)}, {_SC("SelfStream"), static_cast< SQInteger >(dpp::vs_self_stream)}, {_SC("SelfVideo"), static_cast< SQInteger >(dpp::vs_self_video)}, - {_SC("Supress"), static_cast< SQInteger >(dpp::vs_supress)}, + {_SC("Suppress"), static_cast< SQInteger >(dpp::vs_suppress)}, }; // ------------------------------------------------------------------------------------------------ @@ -350,7 +350,7 @@ static const EnumElement g_DpStickerFormatEnum[] = { static const EnumElement g_DpMessageFlagsEnum[] = { {_SC("Crossposted"), static_cast< SQInteger >(dpp::m_crossposted)}, {_SC("IsCrosspost"), static_cast< SQInteger >(dpp::m_is_crosspost)}, - {_SC("SupressEmbeds"), static_cast< SQInteger >(dpp::m_supress_embeds)}, + {_SC("SuppressEmbeds"), static_cast< SQInteger >(dpp::m_suppress_embeds)}, {_SC("SourceMessageDeleted"), static_cast< SQInteger >(dpp::m_source_message_deleted)}, {_SC("Urgent"), static_cast< SQInteger >(dpp::m_urgent)}, {_SC("Ephemeral"), static_cast< SQInteger >(dpp::m_ephemeral)}, diff --git a/module/Library/DPP/Other.cpp b/module/Library/DPP/Other.cpp index d9525808..33e2a8eb 100644 --- a/module/Library/DPP/Other.cpp +++ b/module/Library/DPP/Other.cpp @@ -134,7 +134,7 @@ void Register_DPP_Other(HSQUIRRELVM vm, Table & ns) .Prop(_SC("IsSelfDeaf"), &DpVoiceState::IsSelfDeaf) .Prop(_SC("SelfStream"), &DpVoiceState::SelfStream) .Prop(_SC("SelfVideo"), &DpVoiceState::SelfVideo) - .Prop(_SC("IsSupressed"), &DpVoiceState::IsSupressed) + .Prop(_SC("IsSuppressed"), &DpVoiceState::IsSuppressed) ); } diff --git a/vendor/DPP/src/dpp/discordevents.cpp b/vendor/DPP/src/dpp/discordevents.cpp index c093a34a..fbaeef40 100644 --- a/vendor/DPP/src/dpp/discordevents.cpp +++ b/vendor/DPP/src/dpp/discordevents.cpp @@ -42,7 +42,7 @@ char* strptime(const char* s, const char* f, struct tm* tm) { input.imbue(std::locale(setlocale(LC_ALL, nullptr))); input >> std::get_time(tm, f); if (input.fail()) { - return ""; + return const_cast(""); } return (char*)(s + input.tellg()); } diff --git a/vendor/DPP/src/dpp/httplib.cpp b/vendor/DPP/src/dpp/httplib.cpp index 938412db..e9f2e8ad 100644 --- a/vendor/DPP/src/dpp/httplib.cpp +++ b/vendor/DPP/src/dpp/httplib.cpp @@ -386,6 +386,8 @@ int close_socket(socket_t sock) { if (sock >= 0 && sock < FD_SETSIZE) { return closesocket(sock); } + assert(0); + return -1; #else return close(sock); #endif