Skip to content

yl-discord.cpp v0.1.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Oct 15:16
· 28 commits to main since this release

yl-discord.cpp v0.1.0

The first offline foundation prerelease of a C++20 Discord bot library inspired
by discord.py's ease of use. Package version: 0.1.0.

This release does not connect to Discord. It provides the async runtime,
event/command API and memory transport for development and testing. HTTP REST,
WebSocket Gateway, token login, slash commands and voice are not implemented.
The public API is experimental; no speed or memory advantage has been measured.

Included

  • task<T>, co_await, nonblocking timers and a single Asio event loop.
  • Client/Bot subclasses, async hooks, multiple listeners and error handling.
  • Prefix commands, aliases, quoted arguments, Context send/reply and Cog classes.
  • In-flight callback/Cog ownership, raw event dispatch and executor access.
  • MemoryTransport, offline behavior tests and two working example programs.
  • Static/shared builds, generated version/DLL headers and installed CMake consumers.
  • Conan 2 recipe, commit-pinned vcpkg overlay and MSYS2 package automation.
  • API/build/distribution/release documentation and MAJOR.MINOR.PATCH validation.

Downloads

From this release:

Source archives include source, examples, tests, documentation, recipes and
license notices. Dependencies are not bundled. Native MSYS2 packages use
declared Asio/runtime dependencies and must match your compiler environment.
Project-hosted packages are not central ConanCenter/vcpkg/MSYS2 listings.

Build and try

Use a C++20 compiler, CMake >= 3.25, Ninja and standalone Asio >= 1.30.2. CMake
can fetch a pinned Asio commit when needed. Python >= 3.10 supports release tools.

cmake --preset default
cmake --build --preset default --parallel 2
ctest --preset default
./build/default/yl_offline_bot

On Windows add .exe; use the matching MINGW64/UCRT64 runtime on PATH.
Consumers use find_package(ylDiscord 0.1 CONFIG REQUIRED) and yl::discord.
For setup and package instructions see
the documentation.

Copyright (C) 2026 Cavanshirpro. LGPL-3.0-or-later. Asio remains BSL-1.0.