Crates.io | discord-sdk |
lib.rs | discord-sdk |
version | 0.3.8 |
source | src |
created_at | 2021-06-04 11:01:52.038363 |
updated_at | 2024-09-02 08:48:29.15884 |
description | An open implementation of the Discord Game SDK |
homepage | https://github.com/EmbarkStudios/discord-sdk |
repository | https://github.com/EmbarkStudios/discord-sdk |
max_upload_size | |
id | 406074 |
size | 231,873 |
VOICE_SETTINGS_UPDATE_2
- Undocumented, but this event is fired for all voice settings changes, except for "Set Local Volume".NOTE: These are only tested insofar as the protocol is (probably) correct, however, the overlay is currently extremely limited, and so we were unable to test that the overlay commands actually function correctly since our primary project is Vulkan.
Also note, the SDK itself and its documentation uses the utterly confusing terminology of Un/Locked when talking about the overlay, this crate instead uses Visibility
, as in Visible
or Hidden
.
This hasn't been officially announced by Discord yet, but the Voice, Lobbies, and Networking functionality will be deprecated and removed sometime in the future. Since only the lobbies functionality has been implemented thus far, we will mark that functionality as deprecated
once it is official.
Unfortunately Discord does not provide a convenient way to perform automated testing, as it requires an actual working Discord application to be running and logged in, which makes automated (particularly headless) testing...annoying.
For now, it's required that you manually spin up 2 different Discord applications (eg, Stable and Canary) and log in with separate accounts on the same machine, then run one test at a time.
cargo test --features local-testing test_activity
NOTE: This does not test the lobby search
functionality as that command seems to be non-functioning and never returns results, even if the REST equivalent does return the expected results.
cargo test --features local-testing test_lobbies
We welcome community contributions to this project.
Please read our Contributor Guide for more information on how to get started. Please also read our Contributor Terms before you make any contributions.
Any contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:
This contribution is dual licensed under EITHER OF
at your option.
For clarity, "your" refers to Embark or any other licensee/user of the contribution.