serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
597 stars 106 forks source link

Fix compile error #282

Closed SkyfallWasTaken closed 1 month ago

SkyfallWasTaken commented 1 month ago

Before this commit, Poise compilation would fail with this error:

error[E0432]: unresolved import `crate::serenity`
  --> src/builtins/mod.rs:20:13
   |
20 | use crate::{serenity::CreateAllowedMentions, serenity_prelude as serenity, CreateReply};
   |             ^^^^^^^^
   |             |
   |             unresolved import
   |             help: a similar path exists: `crate::prefix_argument::key_value_args::serenity`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `poise` (lib) due to 1 previous error

Now, compilation succeeds successfully.

SkyfallWasTaken commented 1 month ago

looks like serenity_context also got renamed, which is weird because it didn't show up on my cargo clippy 😅

Anyway I'll probably try to fix most of those later

SkyfallWasTaken commented 1 month ago

Okay, so I think that's everything! The tests are working anyways

GnomedDev commented 1 month ago

Thanks for the PR, however I've fixed this up via rebasing and editing the specific commits that brought in the issues.