Move decode config into DecodeMode::Decode (#272)
Some checks failed
CI / Lint (push) Successful in 10m16s
CI / Test (beta, beta) (push) Failing after 6m11s
CI / Test (nightly, nightly) (push) Successful in 10m53s
CI / Test (stable) (push) Failing after 7s
CI / Test (true, driver tungstenite rustls, driver only) (push) Failing after 7s
CI / Test (true, gateway serenity tungstenite rustls, gateway only) (push) Failing after 6s
CI / Build docs (push) Successful in 10m0s
CI / Examples (push) Failing after 6s
Publish docs / Publish docs (push) Successful in 10m8s
CI / Test (true, Windows, windows-latest) (push) Has been cancelled
CI / Test (true, macOS, macOS-latest) (push) Has been cancelled

This commit is contained in:
Gnome!
2025-02-23 13:02:29 +00:00
committed by GnomedDev
parent 8956352f13
commit e8c134664b
8 changed files with 68 additions and 68 deletions

View File

@@ -34,7 +34,7 @@ use serenity::{
};
use songbird::{
driver::DecodeMode,
driver::{DecodeConfig, DecodeMode},
model::{
id::UserId,
payload::{ClientDisconnect, Speaking},
@@ -217,7 +217,8 @@ async fn main() {
// Here, we need to configure Songbird to decode all incoming voice packets.
// If you want, you can do this on a per-call basis---here, we need it to
// read the audio data that other people are sending us!
let songbird_config = Config::default().decode_mode(DecodeMode::Decode);
let songbird_config =
Config::default().decode_mode(DecodeMode::Decode(DecodeConfig::default()));
let mut client = Client::builder(&token, intents)
.event_handler(Handler)