Skip to content

Releases: brainboxdotcc/DPP

v10.0.25 release

30 Aug 14:51
32b6759
Compare
Choose a tag to compare

Coroutines are here!

🆕 This release comes with the active support of the coroutine features! New with C++20, coroutines are a great way to simplify asynchronous programs, removing the need for callbacks: check out the docs for more information. With them you can also easily do things that were previously very complex, for example assigning an action to a button on the spot!

You will need to build D++ from source and use the option -DDPP_CORO=on in your CMake command.
Your application also needs to enable C++20 and define DPP_CORO, by using:

  • -std=c++20 -DDPP_CORO in your build command if building manually, or
  • if using CMake, add target_compile_definitions(my_program PUBLIC DPP_CORO) and target_compile_features(my_program PUBLIC cxx_std_20).

⚠ Currently, coroutines are supported on g++11 and above, clang14 and above, and MSVC 19.37 and above. Note that g++11 and g++12 have a compiler bug with lambdas, which is fixed in g++13 (workaround described in one of the examples).
Note that this feature is still new and may have bugs and crashes, please report any to our GitHub or to our Discord server. Feel free to ask for support in the latter as well!

We hope you enjoy, and we will be co_awaiting your feedback!

We have also added support for AVX, AVX2 and AVX512 for mixing audio streams, when you receive audio from many discord users into one stream. This will improve the performance of mixing by many factors if you have a processor that can support it; as of right now, this is 64 bit Intel/AMD machines with plans to support ARM NEON.

We will also be joining the google os-fuzz and are to be considered as a critical infrastructure project - this means that you can expect even more stable releases from us, as well tested as ever and then some!

Release Changelog

💣 Breaking Changes

  • Remove co_attach & enforce event handler call semantics (return void/dpp::job, take const event) (#807)

✨ New Features

  • Coro: more stuff! not breaking this time! (#813)
  • Coro: dpp::task::cancel(), lock-free dpp::task
  • Coro: coroutine, a lightweight synchronized coroutine object
  • Coro: dpp::job, a lightweight async coroutine
  • Added dpp::utility::guild_navigation helper (#810)
  • Updated the reaction struct for super reactions (#811)
  • Application team member roles feature (#805)
  • Build: add off-by-default DPP_USE_PCH option in CMake (#793)
  • Coroutines "beta test" (#763)
  • Added can and can_any methods to dpp::permission class (#776)
  • Added commonly user terms (#718)
  • Add SPDX-License-Identifier to headers in files
  • Introduce the media channel type (#746)
  • Adding AVX implementation for mixing audio. (#745)
  • Add STDCORO to cspell
  • Add dpp::snowflake::str() that returns string form of snowflake value
  • Added functionality for guild onboarding and welcome screen (#734)
  • Add bool is_coro_enabled()function todpp::utility` namespace (#737)
  • Add flags and is_remix() to dpp::attachment (#727)
  • Added role flag IN_PROMPT (#728)
  • Coroutines, still experimental but useable (#724)
  • Added message_author_id field to message_reaction_add_t event (#730)
  • Add missing audit log events (#729)
  • Add missing audit log events: CREATOR_MONETIZATION_REQUEST_CREATED, CREATOR_MONETIZATION_TERMS_ACCEPTED
  • Add .clang-tidy for linting rules (#726)
  • cluster::interaction_followup_get_original (#723)
  • Add embed::set_colour(), alias of set_color with correct spelling
  • Add files via upload
  • Added setter methods to dpp::invite class (#708)
  • Added global_name to dpp::user (#712)
  • Added user field to dpp::invite (#698)
  • Added the USE_EXTERNAL_SOUNDS permission (#701)

🐞 Bug Fixes

  • Avx on raspberry pi 4 didnt build (#823)
  • Broken emoji symbol names (#822)
  • Fix unicode symbol name for piñata, and also make constexprs inline
  • Fix malformed emoji symbol names -1, +1 and new, use unicode_emoji namespace in unit tests instead of hard coded emoji content
  • Silence a client event we arent supposed to receive
  • unicode_emoji.h now compiles properly (#806)
  • Update to change the accepted system processor types. (#819)
  • Update DetectArchitecture.cmake to only search for required CPU-flags. (#816)
  • Dont try to enable AVX on ARM (or any non x86_64/x86 arch) (#815)
  • Fixed cluster::guild_create, cluster::stage_instance_create and cluster::sticker_packs_get returning 404 Not Found (#809)
  • Make cmakelists use the correct AVX2 instruction (#786)
  • Fix discordevents.cpp exports on Windows (#781)
  • Don't allow user to change ws mode on a connected cluster (this would be bad) (#778)
  • Fix various issues and bugs with dpp::emoji (#775)
  • Accidentally removed the preamble from the DCO, we arent allowed to do this - i put it back
  • Fix dodgy search and replace, vscode inserting newlines
  • default empty destructors
  • Delete copy and move assignment operators for cluster
  • Workaround gcc-12 bug #105329 (#748)
  • Uninitlized overshoot_accumulator in voice timers
  • Coroutines: better support for clang, remove experimental if unneeded, add missing headers (#743)
  • Warning for [=] copy without explkit , rerun coro builder for onboarding
  • Add /bigobj to non-VCPKG MSVC CMake flags, fixing ninja build, and fix CMakeSettings.json (#740)
  • user::format_username now returns the global_name if it's set (#733)
  • Fix header, add emoji gen
  • Force dpp::to_hex to use std::locale::classic for formatting (#725)
  • Added cluster::thread_edit, fix cluster::thread_members_get, refactor cluster::threads_get_active, add a bunch of tests for threads (#700)
  • Allowed sync/coro function generator to handle overloaded functions, update sync/coro methods (#705)
  • interaction_modal_response::fill_from_json (#703)
  • Fixed errors on Windows when linking an executable with DPP (#697)
  • Fix linking errors on Windows when linking an executable with dpp

🚀 Performance Improvements

  • Coro: lock free dpp::async

♻️ Refactoring

  • Coro: renamed dpp::awaitable to dpp::async
  • Change interaction_response.msg from message* to message, fixing double free on copy (#762)
  • Json parsing helper functions added to unify the way arrays are parsed (#744)
  • Use nullptr instead of NULL
  • Use structured bindings
  • Change std::for_each to ranged for loops
  • Changed the behaviour of channel::add_permission_overwrite (#702)
  • Changed the behaviour of channel::add_permission_overwrite & added set_permission_overwrite and remove_permission_overwrite methods

🚨 Testing

  • Add enum for test status and type, make each test a variable, add coro tests
  • Add g++-12
  • Add extended unit tests mode (#731)

📚 Documentation

  • Changed README.md to include nightly builds. (#821)
  • Add emojis to titles in readme (#817)
  • Refactored page links (#808)
  • Added a page about sending "only you can see this" messages. (#803)
  • Created a page for separating events into new classes. (#802)
  • Added a new page for on_message_create and changed warnings about message content privilege. (#799)
  • Improved Jenkins page. (#798)
  • Fixed several small things in docs (#797)
  • Coro: update docs for PR #763
  • Added docs page about checking permissions (#777)
  • Fixed some doc pages with errors. (#784)
  • Created a page for automating builds with Jenkins. (#783)
  • Made collect_reactions page more explicit. (#780)
  • Fixed typo in documentation example (#782)
  • Fixed errors on reaction collectors example page (#779)
  • Remove lines of code badge as it is broken upstream (#772)
  • Fix of #771 where final push was missed. (#773)
  • Improve build speed of codeql (#769)
  • Make the PR template less bloaty
  • Governance, roadmap, security pages for best practices badge
  • Add openssf scorecard to readme
  • Fix typo (#741)
  • Some tweaks in code examples (#742)
  • Documentation for unicode_emoji namespace (#739)
  • Documented deprecation policy (#738)
  • Updated README.md (#707)

💎 Style Changes

  • Coro: split coro.h into its own folder

📜 Miscellaneous Changes

  • (WIP) docs(coro): reorganize coro docs and add examples for new features (#818)
  • Modernize command handle page (#800)
  • dpp::slashcommand constructor for context menu commands (#801)
  • Updating to the correct AVX2 instruction.
  • Updated out-dated doc pages to now use slashcommands. (#771)
  • Update disdppgloss.md
  • Create pull_request_template.md
  • Update scorecard.yml
  • Update dependabot.yml
  • OpenSSF best practices badge (#766)
  • Update README.md
  • D++ == CHAD++ // true (#747)
  • Clang-tidy namespace comment autofix
  • Enable CORO on g++11, g++12, osx
  • Dont enable AVX when compiling on GHA
  • Update CONTRIBUTING.md
  • Update CONTRIBUTING.md - add rules about not just using automated tools to generate bad prs
  • More spellcheck words
  • Spellcheck words for emoji names
  • Update .cspell.json
  • Better creation of unicode emojis that will actually work
  • Update INDEX.md
  • Move misplaced compiler definitions to options and make linker option Debug-Mode dependent (#715)
  • Adapt dpp::user::get_default_avatar() to new username system (#711)
  • Re-construct: Fixed issue #604 (#699)
  • Adjust vcpkg ci action to modernize for next release, ref: microsoft/vcpkg#31568 (comment)

👷 Build/CI

  • Silence changelog generator warning emission, not useful when running by hand (#814)
  • We have to silence error reporting here or we get stderr intermixed into our changelog. this is just extra busywork during release that we dont want (#795)
  • Force reupload with clobber, and sign a copy of the s...
Read more

v10.0.24 release

22 May 16:28
Compare
Choose a tag to compare

We are pleased to announce the release of D++ 10.0.24! This new release has four months of fixes and feature enhancements, including:

New guild member flags, on_guild_audit_log_entry_create gateway event, join raid and mention raid protection feature, support for voice messages, slashcommand_t::get_parameter supports subcommands, APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE, VIEW_CREATOR_MONETIZATION_ANALYTICS and USE_SOUNDBOARD permissions, added MIME type to HTTP file transfer API, and also added the ps_invisible presence status.

There is unfortunately no news yet on the structure the API will take for the new discord usernames and replacement of discriminators. When we have more details on this, a new release supporting it officially will follow ASAP.

The changelog is listed below:

Release Changelog

🐞 Bug Fixes

  • Fix hard coded ref to g++ 10
  • Fixed message reaction events not executed in threads (#696)
  • Redesign message unit tests so there is no blocking calls in on_message_receive
  • Moved online unit tests from on_ready event handler to main thread
  • Fixed memory leak and potential use-after-free bug with voiceconn (#687)
  • Fix memory leak and potential use-after-free bug with voiceconn
  • Fixed bug in automod parsing that caused the actions being empty when fetching an automod rule
  • Fix for Gcc13.1 (#664)
  • Fixed for gcc 13.1
  • Fix cluster sync definition for threads_get_active and add an error check to the sync generator so we know sooner if its broken
  • Fix send voice message permission value
  • Add missing mimetype to external HTTPS requests (#656)
  • Fix external HTTP requests not sending MIME type
  • Fixed cluster::guild_get_bans (#655)
  • Fixed cluster::guild_get_bans which stored all bans in the ban_map with key 0, causing the method to return only one ban from the list
  • Move cl compilation flags that clang-cl doesn't recognize to a "not clang-cl" clause (#653)
  • Fixed get_parameter (#648)
  • Fixed command_option parsing which didn't parse commands with too many subcommands and subcommand groups (#647)
  • Fix unittest for get_parameter
  • Fix DPP install copying entire source tree root include/ in its install directory when added as a subdirectory (#637)
  • Fix DPP install copying source root include/ in its install directory as subdirectory
  • Fixed cluster::threads_get_active (#633)
  • Fix detection of sodium on Windows
  • Fixed cluster::threads_get_active method and added a new return type dpp::active_thread_map for it
  • Fixed cluster::thread_members_get and cluster::thread_member_get which accidentally had the wrong endpoint
  • Fix typo in vcpkg builder
  • Fix merge conflict
  • Make this work
  • Why is there a #include 'user.h'?
  • Fix sudo requirement
  • Yaml parser doesnt like : in quoted text?
  • Indent and derp
  • Fix broken vcpkg collector
  • Fix bottom-of-portfile to not try to apply broken patch

♻️ Refactoring

  • Updated invite struct & added unittests for invites (#695)
  • Renamed is_premium_subscription to is_premium_subscriber
  • Added helper functions to create endpoint urls (#684)
  • Modernize dpp::permission (#651)
  • Removed cout (#685)
  • Changed the way guild member flags are parsed
  • Removed unused #include from guild_audit_log_entry_create.cpp
  • Revert get_parameter to interaction_create_t from #641 (#646)
  • Refactored webhook constructor & add_localization & get_parameter in context_menu_t and message_context_menu_t (#641)
  • Refactored webhook constructor
  • Removed get_parameter from context_menu_t and message_context_menu_t
  • Refactored slashcommand to_json and the description parameter of add_localization is now optional
  • Changed second deep_sea to blue_chill
  • Remove redundant send_silence (#627)
  • Refactor vcpkg generator

✨ New Features

  • Added some missing role fields (#691)
  • Added i_guild_subscription integration type (#692)
  • Added url getter for emojis (#682)
  • Added guild member flags (#679)
  • Added on_guild_audit_log_entry_create gateway event (#678)
  • Added explicit casting to avoid warnings (#676)
  • Added join raid and mention raid protection feature (#667)
  • Added join raid protection guild feature. This bumps the guild flags_extra field from 1 byte to 2 bytes!
  • Added automod mention raid protection to the trigger metadata class
  • Support for voice messages (#660)
  • Added channel object to interaction (#649)
  • slashcommand_t::get_parameter supporting subcommands
  • Added APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE application flag (#644)
  • Added VIEW_CREATOR_MONETIZATION_ANALYTICS and USE_SOUNDBOARD permission
  • Add MIME type to HTTP file transfer API
  • Add DPP_ROOT_PATH CMake variable, replace CMAKE_SOURCE_DIR with DPP_ROOT_PATH
  • Add unit test to show the value of multimaps here
  • Added many new colors and created alias for colors called colours (#630)
  • Add ps_invisible presence status

🚨 Testing

  • Fixed managed::get_creation_date unittest (#690)
  • Fixed emoji get unittest (#689)
  • Fixed emoji get unittest. It failed because Discord's respond doesn't include the user which created the emoji on creation
  • Refactor blocking calls out from events in unit tests (#688)
  • Added some dpp::message-related tests (#686)
  • Slightly polished dpp::message unit tests
  • Fixed testdata/DPP-Logo.png case in unit tests
  • Added file attachment tests
  • Added message pin test
  • Added message edit test
  • Added unittests for creating/getting/deleting a custom emoji
  • Added unittests for automod rule creation, fetching and deleting (#666)
  • Updated unit test for automod
  • Added unittests for creating, getting and deleting bans (#657)
  • Added unittest for voice channel creation, editing and deletion (#652)
  • Added unittests for creating, getting and deleting bans with some real (deleted) Discord accounts
  • Fix unit test for get_parameter
  • Added unittest for interaction_create_t::get_parameter

👷 Build/CI

  • Fix broken x86 builds
  • Reformat and refactor the vcpkg generator [skip ci]

📜 Miscellaneous Changes

  • Forgot something in emoji unittest
  • Updated some docs & command option min_length and max_length parsing (#672)
  • Updated information regarding WSL
  • Try to fix get_parameter
  • Update upload-artifact action to v3
  • Update checkout actions to v3
  • Update .cspell.json
  • Renamed active_thread_map to active_threads
  • Renamed active_thread_map to active_thread_map
  • Update ref/sha
  • Update git tree tag

📚 Documentation

  • Added link to all events pointing to the Discord documentation's gateway events (#673)
  • Small tweak for has_send_voice_messages
  • Fixed some docs (#659)
  • Add throws to get_parameter
  • Updated coding style standard (#642)
  • Documentation for setting up D++ in CLion with CMake and vcpkg (#639)
  • Documentation on how to set up D++ through vcpkg for CLion.
  • Documented spell checks in the coding style standards (#636)
  • Updated docs of cluster::threads_get_active
  • Changed docs of get_user method

Thank you for using D++!

v10.0.23 release

28 Feb 17:07
Compare
Choose a tag to compare

We are happy to announce the release of D++ 10.0.23! This new version adds support for custom automod messages, the new user_get_cached function (retrieve a user from the cache if possible otherwise issue an asynchronous user_get call), new message types, plus the ability to suppress notifications for a message, flags for role subscriptions, and a whole boatload of fixes.

The changelog is listed below:

Release Changelog

🐞 Bug Fixes

  • Use a define to determine what to include
  • Fix WS error when intents is 0 (#623)
  • Fix websocket error when intents is 0
  • Bad deref of audio track marker on aarch64
  • Suppress notifications flag is 1 << 12 not 1 << 9
  • Fixed bug in channel::build_json which caused an invalid form body error when creating a voice channel without a bitrate set
  • Fixed the logic for ids of 0.
  • Fix and silence some clang warnings
  • Fix some possible memory leak issues if we throw from a constructor
  • Handle std::bad_alloc in constructors by cleanup and rethrow (fixes #598)
  • Fixed possible bug in guild parsing with the g_unavailable flag
  • Fixed guild feature parsing for dpp::g_monetization_enabled because Discord changed the name from MONETIZATION_ENABLED to CREATOR_MONETIZABLE_PROVISIONAL

♻️ Refactoring

  • Change to current source dir so this doesnt break when used as a dependency
  • Remove some fluff
  • Make it possible to use a system install of nlohmann using -DDPP_USE_EXTERNAL_JSON=ON fix: remove unneccessary patch for making pkgconfig mandatory on vcpkg - this is no longer required.
  • Deprecated guild flags dpp::g_seven_day_thread_archive, dpp::g_three_day_thread_archive and dpp::g_channel_banners
  • Removed code redundancy by get_parameter and make it private instead of overwriting it (#602)

✨ New Features

  • Add oggz example
  • Added custom message for automod rules (#618)
  • Added operator == to dpp::guild_member (#616)
  • Added check for id of 0
  • Added missing const in implementation
  • Added operator == implementation
  • Added operator == to dpp::user
  • user_get_cached and user_get_cached_sync
  • Added a bit of documentation
  • Added == operator in definition.
  • Added Message types for stages: STAGE_START, STAGE_END, STAGE_SPEAKER and STAGE_TOPIC
  • Added SUPPRESS_NOTIFICATIONS message flag (#609)
  • JSON parse errors are now converted to error_info and passed to the callback for post_rest(), so they can be handled by the user
  • Added Message types INTERACTION_PREMIUM_UPSELL & GUILD_APPLICATION_PREMIUM_SUBSCRIPTION (#607)
  • Added Message types 26 & 32
  • Added guild flags dpp::g_role_subscription_enabled, dpp::g_creator_store_page_enabled, dpp::g_no_role_subscription_notifications, dpp::g_no_role_subscription_notification_replies and dpp::g_role_subscriptions_available_for_purchase
  • Changed image url getters to be able to choose the returned image format (#599)
  • Added setter for the channel::default_sort_order (#592)
  • Added missing user flag for animated banners
  • Added new message type mt_role_subscription_purchase (#593)
  • Added setter and getter for the channel::default_sort_order

📚 Documentation

  • Updated some docs
  • get_option -> get_value in subcommand example
  • Updates merged from other commit
  • Updated docs of cluster::guild_auditlog_get (#615)
  • Added documentation for the find_ methods (#606)
  • Updated docs of dpp::application_role_connection_metadata

📜 Miscellaneous Changes

  • Guild flags updated (#603)
  • Updated url getters & added get_default_avatar_url
  • Updated sticker url getter
  • Removed channel getter for the default forum sort order
  • Updated current load_image methods to work with i_webp
  • Updated url getters to have enum parameters as the image format

💣 Breaking Changes

  • Removed guild flags dpp::g_commerce and dpp::g_private_threads
  • Added after-parameter to cluster::guild_auditlog_get (#594)

👷 Build/CI

  • Rework setting of compiler flags (#596)
  • Make C++17 a public compile feature
  • Drop explicitly set -O and -g flags for Linux where possible
  • Drop manually set -fPIC and -std=c++17 flags on Linux
  • Use CXX_FLAGS_{DEBUG,RELEASE} to get rid of if-else blocks

🚨 Testing

  • Added unit test for the user avatar url getter

Thank you for using D++!

v10.0.22 release

04 Jan 16:56
Compare
Choose a tag to compare

We are pleased to bring you the first D++ release of 2023! This new release brings with it a whole load of fixes, tweaks, and some new features such as Discord's new application role connection feature, and new auto moderation features.

We recommend updating to the latest version to stay on top of Discord's API changes.

The changelog is listed below:

Release Changelog

🐞 Bug Fixes

  • Fix comment about libdpp->dpp
  • Fixes to libdpp-config
  • Fixes to the DPP installlation on Linux (#591)
  • Fix cluster sync calls for subscription calls
  • Fix channel bitrate parsing on channel bitrates over 65 kbits (#587)
  • Exclude single word commits from changelog (after conventional commit prefix)
  • Rgb uses float not double, make this match
  • Spacing and add comment
  • on_voice_state_update event hasn't updated the guild member in the cache (#580)
  • dpp::cluster::thread_create_in_forum() crashes the bot without a clear error when the bot has insufficient permissions (#577) (#578)
  • Fix channel bitrate calculation (#568)
  • Array of error parsing (#567)
  • Fix missing semicolon in example (#557)
  • Fix compiler warning (#556)
  • Fix voice support for vcpkg (#553)
  • Fix non-compiling soak test

✨ New Features

  • Added support for application role connection metadata (#584)
  • Added map typedef for application_role_connection_metadata
  • Support for age restricted commands (#588)
  • Support for default forum layout (#586)
  • Added convertions from hex and cmyk colors to decimal value (#581)
  • Added convertions from hex and cmyk colors to decimal value to use in embed
  • Added guild_member::set_pending (#579)
  • Added dpp::u_active_developer user flag (#548)
  • Added automod regex support (#547)

📜 Miscellaneous Changes

  • Updated application role connection feature & added rest_request_vector for rest requests returning real lists
  • Updated docs of interaction class
  • Update discordvoiceclient.cpp
  • Change to float not double
  • Updated unit test USER_GET_FLAGS
  • Updated unit tests for role cluster
  • Update user.cpp

📚 Documentation

  • Updated docs of scheduled_event::set_status
  • Updated the descriptions of dpp::voicestate_flags (#575)
  • Updated automod docs according to Discord's changes (#564)

♻️ Refactoring

  • Remove guild::set_pending again (#585)
  • Deprecated dpp::g_private_threads guild flag and mark as removed (#563)

🚨 Testing

  • Added unit tests for the new mention for channel_mention, user_mention, role_mention and emoji_mention in utility the namespace (#576)
  • Added unit tests for role cluster methods, cluster::guild_get_member and user flags parsing (#565)
  • Report stats in soak test

Thank you for using D++!

v10.0.21 release

01 Nov 09:13
cee27e0
Compare
Choose a tag to compare

We are proud to release the latest version of D++, version 10.0.21! This new version implements the latest Discord features from the API such as the new nitro basic flag, new select component types, and the developer support server flag. Alongside this are a raft of small bug fixes. This is a recommended update for all those wishing to stay at the cutting edge of the Discord API in their bot or application.

Release Changelog

✨ New Features

  • Added channel flag dpp::c_require_tag for forum channels. dpp::channel::flags has increased to uint16_t! (#538)
  • Add missing fields for new select menu types (#535)
  • Added user flag for nitro basic (#534)
  • Added dpp::g_developer_support_server guild flag (#533)
  • Added new select menu types & new field component::channel_types (#529)
  • Add contributor convenant badge
  • Added channel::get_type & forum_tag constructor (#517)

🐞 Bug Fixes

  • Fix potential rare race condition
  • Fixed various C++23 issues (#537)
  • Fix not being able to pass temp msg object to thread_create_in_forum (#532)
  • Ensure we include ctime
  • Emit guild_role_delete_t when role isn't cached (#524)
  • Fix linking weirdness with template on Windows
  • Didnt get added
  • Fix race conditions under heavy load, change some locks to shared_lock, and move event_router to its own header
  • Fix missing . in guild/user avatar urls before file extension
  • Permissions for the invoking member in an interaction_create_t event wasn't parsed (#519)
  • Fix broken construct vcpkg

📜 Miscellaneous Changes

  • Update LICENSE
  • Removed todo
  • Added mentionables to cspell
  • Update code of conduct to v2.1 (#531)
  • Update sync calls
  • Update CODE_OF_CONDUCT.md
  • Update construct-vcpkg-info.yml
  • Updated comments on component::min_length and component::max_length

💣 Breaking Changes

  • Removed dpp::component_type_t. dpp::component_type should be used instead!

📚 Documentation

  • Add example of arbitrary http request

♻️ Refactoring

  • Add helper to command_data_option to check if it is empty (#527)
  • Remove externs from event_router_t
  • Add role_id to guild_role_delete_t
  • Refactor timed_listener header

🚨 Testing

  • Unit tests fixes and beautification

Thank you for using D++!

v10.0.20 release

29 Sep 18:13
Compare
Choose a tag to compare

We are happy to announce the 10.0.20 release of D++, after a short delay due to some hardware issues. This new version of D++ features support for Discord's new Forum channels, a raft of fixes and some optimisations. If you want to keep up to date with the latest Discord features we encourage you to upgrade.

The changelog is listed below:

Release Changelog

✨ New Features

  • Added missing message flag: message_flags::m_thread_mention_failed
  • Added missing message flag: message_flags::m_failed_to_mention_some_roles_in_thread
  • Add markdown logo
  • Added guild flag dpp::g_invites_disabled
  • Added connection::two_way_link field
  • Added audit_extra::automod_rule_name and audit_extra::automod_rule_trigger_type fields & two missing audit types
  • Added unverified bots default intent. (#500)

💣 Breaking Changes

  • Removed channel::banner field
  • Message flags are now stored as uint16_t instead of uint8_t
  • Changed the type of guild::afk_timeout to enum dpp::guild_afk_timeout_t and guild::max_video_channel_users down to uint8_t
  • Changed the type of guild::afk_timeout up to uint16_t and guild::max_video_channel_users down to uint8_t

🐞 Bug Fixes

  • Fix date/time trim on Windows
  • Fix hash in vcpkg
  • Fix weird port version in master
  • Fix portfile generation
  • Guild flag dpp::g_featureable wasn't parsed correctly
  • Rename attach() overload to co_attach()
  • Add dummy_container to event_router_t to retain struct size
  • Fix firstbot page tables, and improve utterances somewhat
  • Fixed double slash comment to triple

🚨 Testing

  • Added unit tests for forum channel creation

📚 Documentation

  • Improve readme
  • Updated clion tutorial (#514)
  • Fixed whoopsy in an example program (#513)
  • Moved raspberry pi to its own section
  • Updated some fields and methods
  • Updated docs of dpp::interaction_response_type
  • Updated docs of dpp::command_value
  • Updated startpage
  • Docs (#503)

♻️ Refactoring

  • Default event_router_t constructor

📜 Miscellaneous Changes

  • Updated forums
  • Updated changelog builder (#509)
  • Update README.md

Thank you for using D++!

v10.0.19 release

10 Sep 10:30
Compare
Choose a tag to compare

Due to discord changing the format of the websocket URLs for resuming connections, we released version 10.0.19 to fix the issue. This fix is critical for operation, you should update to it as soon as possible if you are on version later than 10.0.16.

The changelog is listed below:

Release Changelog

🐞 Bug Fixes

  • Adjust wording
  • Fix Discord moment
  • Fix uninitialized warnings fields in dpp.h (#498)

📜 Miscellaneous Changes

  • Updated docs of guild::permission_overwrites and channel::get_user_permissions (#499)
  • Update soak.cpp

♻️ Refactoring

  • Change the test builder so that it can build multiple executables based on folder name

Thank you for using D++!

v10.0.18 release

03 Sep 20:12
Compare
Choose a tag to compare

This 10.0.18 release is a critical fix for a reconnect and resume issue in 10.0.17. If you are using 10.0.17 and have been having issues with sessions not resuming correctly, you are urged to upgrade to this version ASAP.

Also in this version are fixes to ensure that the deb and rpm files are correctly built with libssl 3.x on x64 and x86.

The changelog is listed below:

Release Changelog

🐞 Bug Fixes

  • Fix broken reconnect request

📜 Miscellaneous Changes

  • Update ci.yml
  • Update ARM64ToolChain.cmake
  • Update LINUXx86ToolChain.cmake

✨ New Features

  • Add getter for slashcommand mentions (#492)
  • Add getter for slashcommand mentions

Thank you for using D++!

v10.0.17 release

31 Aug 16:18
Compare
Choose a tag to compare

We are happy to announce the release of D++ 10.0.17!

This new release adds support for Discord's most recent changes, such as message deletion when banning a user now being in seconds instead of days. From a technical perspective this release changes dpp::snowflake from a simple typedef to a class with methods. This lets you for example call get_creation_time() on a snowflake, and prevents dumb mistakes like trying to store snowflakes into int or into signed values. It comes fully equipped with operators to make it behave like a uint64_t when being used correctly, so this should not break well written code.

Our binary packages are now built on g++ 10 under the Ubuntu 22.04 LTS for 64 bit builds, which means they are linked against the SSL 3.x libraries instead of 1.1.

Yet again, there are performance improvements, mainly in the ETF parser, and also in our socket multiplexing code which means those of you with truly huge bots will notice the most performance improvement.

The changelog is listed below:

Release Changelog

💣 Breaking Changes

  • Delete message count on cluster::guild_ban_add is now scaled in seconds instead of days (#489)
  • Rename "news" channel to announcement channel (#488)

✨ New Features

  • Add support to build rc file to .res from Harshfuedal's template, only if we are on MSVC and building as dynamic lib
  • Added a fluent function for setting the default gateway address. (#487)
  • Added constructor for dpp::automod_metadata
  • Added apf_application_command_badge to application flags
  • Added attachment::description attribute (#482)
  • Added attachment::description attribute
  • Operators for comparing role positions
  • Shorthand methods for making subcommands and options easier
  • New methods in dpp::interaction to make for easier use
  • Add DPP_CORO
  • Add operator==(uint64_t)
  • Snowflake class. Please TEST THIS with some bots

♻️ Refactoring

  • Warn if user tries to delete someones messages for the last 7 seconds, they likely didnt check for breaking changes and were thinking it was in days
  • cluster::request() now supports coroutines (#491)
  • Warning fixes for msvc
  • cluster::request() now supports coroutines
  • Use poll not select for ssl_client - Needs Windows testing
  • Performance improvements in etf parser
  • Changed dpp::snowflake in subcommands docs to uint64_t and removed extra brackets
  • Remove newlines

🐞 Bug Fixes

  • Pollin/pollout required on Linux
  • Make poll() work on Windows
  • role::get_mention not working
  • Fix check for snowflake also munching up ints
  • Fix about the sussy thing
  • Fixed AppleSilicon check (#478)
  • Fixed AppleSilicon check
  • Large bot sharding multi-connect spams console with connect message
  • Gcc 8.3 fails, 8.4+ passes. ugh.
  • Ugh left one out
  • Fix interaction_create in many compilers
  • Fix small issue in guild::build_json() (#475)
  • Fix guild build_json afk_timeout field addition depends on another field's validity
  • Fixed subcommand docs (#473)
  • Fix slash commands in dm and tidy up .find/.at to .contains in some places
  • Coroutine support for g++ 10 and msvc
  • Experimental coro generator
  • Get rid of these weird extra checks
  • Backport some changes that were made when getting this live

👷 Build/CI

  • Improvements to changelog builder
  • Try moving cross-compiles to ubuntu-latest
  • Move packaging to ubuntu-latest g++-10 instead of debian g++-8, to link to ssl 3 instead

📜 Miscellaneous Changes

  • Updated automod (#483)
  • Update cluster.cpp
  • Updated automod docs
  • Updated docs in automod
  • Updated automod
  • Update construct-vcpkg-info.yml

📚 Documentation

  • Document coro.h (#471)
  • Document coro.h
  • Placeholders for coro docs

Thank you for using D++!

v10.0.16 release

15 Aug 12:43
Compare
Choose a tag to compare

We are happy to announce the release of D++ 10.0.16! This new version adds support for Discord's new session specific gateway resume feature, so it is strongly recommended to update to this version so you don't have issues with reconnection/resuming sessions.

There is also a performance improvement making ETF 60% faster. Enjoy! 🚀

We have also added experimental support for coroutines, to enable this add the DPP_CORO cmake flag during the compilation and cmake process.

The changelog is listed below:

Release Changelog

♻️ Refactoring

  • Improved autogenerator, uses class autoloading to cut down on copy paste
  • Convenience function dpp::confirmation_callback_t::get<T>()
  • Split cluster.h
  • Check the script time for regen
  • Change to , modern PHP
  • Search and replace json_fwd->json in cpp implementation files

✨ New Features

🐞 Bug Fixes

  • More robust requesting for non-Discord calls
  • Add CORO and cback to spellcheck
  • Missing includes
  • Remove unnecessary includes
  • Proper includes for sync.h
  • Missing virtual destructors
  • Didnt save
  • pthread_setname_np on osx
  • Fix pthread_setname_np, seems to be used mainly by pthreads on Windows mingw64
  • Target branch
  • Squash some msvc warnings
  • Fix this to properly detect msvc

📜 Miscellaneous Changes

  • Update doxygen
  • Updated notes on voice connection methods
  • Chmod -x on source files
  • Update guild.h
  • Updated - as DiscordCoreAPI has ETF.

👷 Build/CI

  • Display install locations
  • Fix dlcount, fix compile error on gcc12
  • Better detection of pthread_setname_np variants
  • Target dev
  • Add checks for docker

📚 Documentation

  • Rewrite this and make our own
  • Resize animated gif used on the threads/lambdas page saving 60%
  • Add xmake install instructions
  • Spelling fix [skip ci]
  • New installation docs for package managers
  • Add custom downloads badge

Thank you for using D++!