-
Notifications
You must be signed in to change notification settings - Fork 115
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
the trait bound poise::serenity_prelude::Context: AsRef<poise::serenity_prelude::Context>
is not satisfied
#247
Comments
It's possible your Cargo.toml contains a different serenity version than the one poise uses, which means the two mismatching serenity Context types only mismatch because they're of two different versions.. Poise 0.6 needs Serenity 0.12. Is that the case in your Cargo.toml? |
There is no serenity in my Cargo.toml. I am using the one that comes in the poise crate. The types are the same. Rust does not have a blanket |
Please attach your Cargo.lock file, so we can see if you have duplicate dependencies. |
Here. Poise 0.6.1 and Serenity 0.12.1. Cargo.lock.txt The problem is not duplicate dependencies. The types are the same. See https://doc.rust-lang.org/std/convert/trait.AsRef.html#reflexivity To fix this I copied the existing but private |
I'm not a Rust pro but maybe this should be |
It shouldn't be AsRef in the first place, it should just be |
No! You cannot pass Changing |
That is so weird. |
What is this error? I am trying to use poise::execute_modal_on_component_interaction.
Here is my function:
And my error is:
What is happening? I know in general there is no blanket
impl AsRef<T> for &T
in Rust because of some sort of conflict, but what do I do in this case? I feel like I am missing something obvious.The text was updated successfully, but these errors were encountered: