Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway: Simplify return value of join/join_gateway #157

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

FelixMcFelix
Copy link
Member

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.

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 serenity-rs#65.
@FelixMcFelix FelixMcFelix merged commit ff9b0cd into serenity-rs:next Jan 9, 2023
@FelixMcFelix FelixMcFelix deleted the new_join_retval branch January 9, 2023 01:35
FelixMcFelix added a commit to FelixMcFelix/songbird that referenced this pull request Nov 20, 2023
)

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 serenity-rs#65.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant