serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
394 stars 116 forks source link

feat: return track handle when adding an `Input` to the queue #116

Closed vaporoxx closed 2 years ago

vaporoxx commented 2 years ago

This modifies Driver::enqueue_source and TrackQueue::add_source to return the created track handle. This can be useful if you want to e.g. access the metadata after adding it and makes it more consistent with Driver::play_source, which returns the handle as well.