serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
384 stars 110 forks source link

There should be a way to get all `Arc<Mutex<Call>>`s #165

Closed fee1-dead closed 1 year ago

fee1-dead commented 1 year ago

Songbird version: next

Description:

I'm currently implementing a procedure for saving call information (including tracks from the builtin queue) to disk, but it looks like the Songbird type does not provide access to iter over all calls? Should this feature be added or am I approaching it in a wrong way?

FelixMcFelix commented 1 year ago

This is an API oversight, but I think it might be a little bit rougher to implement than it initially appears. Internally, we use a DashMap to store Calls -- you'd need to look into the best way to expose this without leaking internal implementation details.

fee1-dead commented 1 year ago

Fixed by #166. Closing.