diff --git a/include/dpp/discordvoiceclient.h b/include/dpp/discordvoiceclient.h index 9a8cbdd369..9edeef94fa 100644 --- a/include/dpp/discordvoiceclient.h +++ b/include/dpp/discordvoiceclient.h @@ -201,11 +201,10 @@ struct dave_binary_header_t { /** * Get the data package from the packed binary frame, as a vector of uint8_t * for use in the libdave functions - * - * @param length Length of the data, use the websocket frame size here + * @return data blob */ - [[nodiscard]] std::vector get_data(size_t length) const; + [[nodiscard]] std::vector get_data() const; /** * Get transition ID for process_welcome diff --git a/src/dpp/discordvoiceclient.cpp b/src/dpp/discordvoiceclient.cpp index 1949be362e..ca44b19c06 100644 --- a/src/dpp/discordvoiceclient.cpp +++ b/src/dpp/discordvoiceclient.cpp @@ -101,7 +101,7 @@ dave_binary_header_t::dave_binary_header_t(const std::string& buffer) { package.assign(buffer.begin() + (opcode == voice_client_dave_mls_welcome ? 5 : 3), buffer.end()); } -std::vector dave_binary_header_t::get_data(size_t length) const { +std::vector dave_binary_header_t::get_data() const { return package; }