serenity-rs / songbird

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

Gateway: Simplify return value of `join`/`join_gateway` #157

Closed FelixMcFelix closed 1 year ago

FelixMcFelix commented 1 year ago

Replaces the annoying dual-return (i.e., created Call and Result<x>) with a single Return<Call/ConnectionInfo>. Users are now informed via that a Call is created -- thus, cleanup in event of connection failure is now their responsibility.

Tested using cargo make ready.

Closes #65.