-
Notifications
You must be signed in to change notification settings - Fork 121
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
Introduce Call::current_channel #60
Introduce Call::current_channel #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! This is useful, and can be modified easily to account for #47's ConnectionInfo
changes when it's time to release that.
Just need an additional comment on a known bug until next breaking due to #47 (since this PR will go into a patch release after #56 is fixed). Apart from that, lgtm!
@@ -240,6 +240,15 @@ impl Call { | |||
} | |||
} | |||
|
|||
/// Returns `id` of the channel, if connected to any. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Returns `id` of the channel, if connected to any. | |
/// Returns `id` of the channel, if connected to any. | |
/// | |
/// **Note**: The returned `id` will not correctly update if a connected bot | |
/// is moved between channels manually. This will be fixed in the next | |
// breaking release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expanded a bit your suggestion. Check it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that expands the explanation nicely, thanks!
…ng changes. This commit undoes serenity-rs#64 (and bumps the library MSRV accordingly), and modifies serenity-rs#60 to match the new `Call` connection handling. This was tested using `cargo make ready`, and rustc v1.49.0 on `examples/serenity/voice`.
…ng changes. This commit undoes serenity-rs#64 (and bumps the library MSRV accordingly), and modifies serenity-rs#60 to match the new `Call` connection handling. This was tested using `cargo make ready`, and rustc v1.49.0 on `examples/serenity/voice`.
…ng changes. This commit undoes serenity-rs#64 (and bumps the library MSRV accordingly), and modifies serenity-rs#60 to match the new `Call` connection handling. This was tested using `cargo make ready`, and rustc v1.49.0 on `examples/serenity/voice`.
…ng changes. This commit undoes serenity-rs#64 (and bumps the library MSRV accordingly), and modifies serenity-rs#60 to match the new `Call` connection handling. This was tested using `cargo make ready`, and rustc v1.49.0 on `examples/serenity/voice`.
…ng changes. This commit undoes serenity-rs#64 (and bumps the library MSRV accordingly), and modifies serenity-rs#60 to match the new `Call` connection handling. This was tested using `cargo make ready`, and rustc v1.49.0 on `examples/serenity/voice`.
I'm not sure how you want to organize connection info and whether channel id should be separate from it.
For now I left it separated, just getting API to access it for user so that I could know whether I need to join new one or not
Fixes #58