Skip to content

Releases

discord.cpp-self v0.2.2

Choose a tag to compare

@github-actions github-actions released this 01 Nov 15:41

discord.cpp-self v0.2.2

This update improves HTTP session continuity, message delivery/error handling,
and camera/Go Live controls. Package version: 0.2.2.

Changes

  • Add MediaSession::set_outputs(camera, go_live) to change outputs without
    leaving the voice channel or interrupting incoming media and recording.
  • Wait for outgoing stream stop acknowledgement before recreating it, reject
    stale asynchronous stream connections, and apply current source/output
    preferences when a connection finishes preparing.
  • Add a fresh MessageOptions::nonce and default enforce_nonce=true.
    Retain the same options/nonce for the same logical send after an ambiguous
    failure; create new options for an intentionally new message. Deduplication
    remains limited to Discord's recent-message window.
  • Classify verification/CAPTCHA and account-restriction errors before ordinary
    HTTP 429 retry handling. Preserve Discord error codes on exhausted rate-limit
    retries. Stop further REST requests with a rejected token until credentials
    change.
  • Reuse HTTP connections and server-issued cookies in memory for one credential.
    Reset request options after each transfer and discard the session when the
    token changes. Client instances have separate cookie stores; no browser
    cookies are imported and no cookie file is written.
  • Derive the library User-Agent version from CMake metadata.
  • Clean up temporary DAVE session/encryptor handles when voice construction
    fails, and declare the native test's direct libcurl dependency for shared builds.

Validation and limits

Windows/MinGW static and shared native-media builds passed unit, HTTP/Gateway
loopback, native media and HTTP/1.1 session tests. The new session fixture checks
real connection reuse, cookie path scoping, request-method/body reset, and
credential/Client isolation using localhost and fake credentials.
The Gateway fixture also checks heartbeat progress during REST rate-limit waits
with timing headroom for CI scheduling.

No new live message or camera/Go Live toggle test is claimed for these changes.
These fixes do not establish why an account was restricted or guarantee that
Discord will accept account activity. Browser/TLS fingerprint impersonation is
not included. See the reliability review
for the remaining limits.

Rebuild consumers against matching headers and libraries: MessageOptions
gained members and the native media API gained output controls. Runtime remains
C++ with optional native FFmpeg; no Node/Python/Rust runtime dependency is added.
Personal interfaces, credentials, account journals and recordings are excluded.

Downloads

Prebuilt MSYS2 packages contain the REST/Gateway core. Build optional native media
from source using the media guide.

Copyright (C) 2026 Cavanshirpro. LGPL-3.0-or-later.

discord.cpp-self v0.2.1

Choose a tag to compare

@github-actions github-actions released this 28 Oct 21:58

discord.cpp-self v0.2.1

This update fixes media deaf/mute handling and prevents duplicate outgoing file
audio by default. Package version: 0.2.1.

Fixes

  • Deaf state now suppresses Opus on every voice transport, including watched
    Go Live streams, rather than relying solely on the main Gateway flag.
  • Local audio playback stops immediately when deafened or disabled; pending
    waveOut buffers and queued PCM are cleared.
  • Add independent set_audio_playback() and set_muted() controls. Local
    playback, incoming media and outgoing file/device audio have distinct states.
  • The file audio source goes to the voice channel once by default. Go Live
    audio requires stream_audio=true; voice_audio=false selects stream-only
    delivery. Sending identical audio to both destinations remains an explicit
    choice, since viewers can otherwise hear two copies.
  • Snapshots expose mute, requested/active playback and audio destination flags.
  • Regression fixtures check muted output, deafened stream audio rejection and
    default audio routing without real accounts or audio devices.

The personal TUI remains external to the repository. Its local listening output
defaults to off when used alongside the normal Discord client. The SDK never
routes received conversation packets into the outgoing file/device source.
These fixes address confirmed routing/control defects; absence of acoustic echo
on a particular speaker/microphone setup requires a listening test.

Downloads

Prebuilt packages contain the REST/Gateway core; optional native media is built
from source using the media guide.
Rebuild media consumers against the new headers/library. No runtime Node/Python/
Rust dependency is introduced. Personal configuration, tokens, scripts and media
remain excluded from publication. See v0.2.0 for the native backend's
original feature list and live validation limits.

Copyright (C) 2026 Cavanshirpro. LGPL-3.0-or-later.

discord.cpp-self v0.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 15:01

discord.cpp-self v0.2.0

This release adds an optional native C++20 voice/video backend to the existing
Discord user-account REST/Gateway library. Package version: 0.2.0.

Changes

  • MediaSession sends camera, file audio and Go Live with independent looping
    inputs and live source/channel controls.
  • Receive Opus speech and H264/H265 cameras/Go Live; optionally play audio on
    Windows and record mixed WAV plus a separate MP4 for each video source.
  • Use official C++ libdave, MLS++, OpenSSL and libopus with native FFmpeg.
    Node, Python and Rust are not media/library runtime dependencies.
  • Cache file encodes, bound capture/repair queues, repair RTP/RTX and expose
    actual participant/viewer metadata, RTCP feedback and sender pacing.
  • Explicitly subscribe to Opus streams alongside video, fixing missing speech
    when the receive catch-all suppresses unspecified streams.
  • Document a user-client roadmap covering settings, interactions, shop,
    subscriptions, quests and developer-presented verification challenges.
  • Keep the personal test TUI, credentials, live scripts and recordings outside
    the source distribution. The public media API and JSON-console example remain.

Downloads

Source archives include the library, documentation, examples, tests, package
recipes and LGPL notices; dependencies are not bundled. Prebuilt MSYS2 packages,
Conan and vcpkg recipes provide the REST/Gateway core with media disabled. For
media, build from source with DISCORD_SELF_NATIVE_MEDIA=ON following the
native media guide.
The matching MSYS2 toolchain's bin directory must be on PATH.

Validation and limits

Static and DLL Windows suites cover the core HTTP/Gateway library and native
media transport, decoding, capture pipes, source caching and recording. An
installed CMake consumer links against the native build. A designated live test
produced a 20.000-second non-silent WAV, a 9.965-second camera MP4 and a
10.033-second watched-stream MP4; all decoded successfully. Measured outbound
video pacing averaged 33.33 ms (30 FPS). These results do not establish every
receiver's rendered FPS or guarantee elimination of Discord error 2012.

Media supports guild voice channels, H264 sending, H264/H265 receiving and Opus.
Windows audio monitoring uses waveOut. Other incoming codecs, private/group
calls and broad platform/device validation are future work. The media API is
independent of Client and uses a separate account Gateway session.

Shop, quests, full settings and challenge-completion APIs are roadmap items,
not newly implemented features. v0.2.0 still raises VerificationRequired
without a challenge payload/completion interface. Discord's user API remains
unofficial and account permissions/verification still apply.

Copyright (C) 2026 Cavanshirpro. LGPL-3.0-or-later.

discord.cpp-self v0.1.1

Choose a tag to compare

@github-actions github-actions released this 20 Oct 17:23

discord.cpp-self v0.1.1

A release of the C++20 library for Discord user accounts, with expanded,
commented examples and a continuous auto-responder. Package version: 0.1.1.

What's included

  • English code comments explaining the examples' setup, callbacks and lifetimes.
  • A channel-scoped auto-reply example with editable keyword/reply rules.
  • Owner-only on/off/status/quit controls and Ctrl+C shutdown.
  • Own-message/bot filtering, global and per-user cooldowns, bounded replay tracking.
  • An offline HTTP/Gateway scenario covering the actual responder policy.
  • This downloadable release.md, source archives and a commit-pinned vcpkg overlay.
  • Public class/method/field hover documentation, VS Code/clangd setup and real LSP checks.
  • Native MINGW64/UCRT64 MSYS2 packages and a source-building PKGBUILD recipe.

The library API remains the same as v0.1. The original v0.1 tag and source assets
remain available as a historical prerelease.

Downloads

The source archives contain the examples, documentation, CMake files, Conan recipe
and complete LGPL notices. Source archives do not bundle dependencies. The native
MSYS2 packages include this library's DLL, import library and documented headers;
pacman resolves their declared runtime dependencies. Choose the package matching
your compiler environment. Other compiler ABIs can build from source.

Install through MSYS2

In MSYS2 MINGW64, after downloading the MINGW64 package above:

pacman -U ./mingw-w64-x86_64-discord-cpp-self-0.1.1-1-any.pkg.tar.zst

In MSYS2 UCRT64, use the corresponding UCRT64 package instead. Applications use
find_package(discordSelf CONFIG REQUIRED) and link discord::self.
These are project-hosted packages; central pacman -S installation requires MSYS2
repository acceptance. See the MSYS2 guide.

Public headers include editor hover explanations for types, methods, parameters
and fields. See the editor guide
for VS Code IntelliSense and clangd configuration. No Doxygen executable is needed.

Run the auto-reply example

Build with a C++20 compiler, CMake 3.25+, libcurl 7.86+ with ws/wss and TLS,
nlohmann/json 3.11+, and zlib. In MSYS2 MINGW64:

cmake --preset mingw64
cmake --build --preset mingw64 --target discord_self_auto_reply
read -rs -p 'Discord token: ' DISCORD_TOKEN; echo
export DISCORD_TOKEN
export DISCORD_REPLY_CHANNEL='123456789012345678'
./build/mingw64/discord_self_auto_reply.exe
unset DISCORD_TOKEN

Use your channel's ID. From another account, send hello, hi, !ping,
!help or !about there. From your own account, use !autoreply off,
!autoreply on, !autoreply status or !autoreply quit. Ctrl+C also stops it.

Replies are limited to one every two seconds globally and one per user every
30 seconds. The program keeps listening while running and reconnects within the
configured budget. Account verification and fatal connection errors end it.

Read the examples guide
and installation guide
for the complete setup, customization and Conan/vcpkg instructions.

Scope and license

This is an early user-account library; it does not offer bot-token mode, custom
embed sending, file uploads, voice/video, coroutines or complete discord.py-self
parity. Discord prohibits user-account automation and can require verification.
No account restriction or CAPTCHA bypass is provided.

Copyright (C) 2026 Cavanshirpro. LGPL-3.0-or-later.

discord.cpp-self v0.1

discord.cpp-self v0.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Oct 16:25

discord.cpp-self v0.1

First public prerelease of an independent C++20 library for Discord user accounts.
The GitHub tag is v0.1; CMake, Conan, vcpkg and discord::version use 0.1.0.

This release provides messaging and history, DMs, visible profiles and memberships,
a small own-message command router, Gateway reconnect/resume and rate-limit-aware
REST. The CMake package supports static and shared builds with target discord::self.

Documentation, examples, offline HTTP/WebSocket fixtures, source packaging and
LGPL-3.0-or-later notices are included. Source archives do not bundle dependencies
or runtime DLLs.

Download and install

  • discord.cpp-self-v0.1.tar.gz / .zip: the complete source distribution.
  • discord.cpp-self-v0.1-vcpkg-overlay.zip: a port pinned to this release's commit,
    with the verified upstream source SHA512.
  • SHA256SUMS: checksums for all three assets.

Use CMake with target discord::self, build the included Conan 2 recipe, or use
the overlay with vcpkg. See installation. The Conan recipe
is included in both source archives; a central registry listing is not required.

Known limits

  • Early API; not a complete port of discord.py-self and not a bot-token library.
  • No custom embed sender, file upload, voice/video or coroutine REST interface.
  • Rate limiting is per client; REST calls are serialized.
  • Historical live messaging/DM/profile tests passed; friend-request completion
    required CAPTCHA, and subsequent account/token failures were observed.
  • Live edit/delete, macOS and MSVC runtime validation remain outstanding.
  • Discord prohibits user-account automation; this library does not bypass account
    verification, CAPTCHA or platform restrictions.

See the README, API reference, comparison and validation notes for precise scope.