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

I have tried to work with poise but can't get it to work. #200

Open
rejafdofs opened this issue Oct 13, 2023 · 0 comments
Open

I have tried to work with poise but can't get it to work. #200

rejafdofs opened this issue Oct 13, 2023 · 0 comments

Comments

@rejafdofs
Copy link

///example
#[poise::command(slash_command, prefix_command)]
async fn mogetama(
    ctx:poise::Context<'a, Data, Box<dyn std::error::Error + Send + Sync>>,
) -> Result<(), Error> {
  let context = match ctx {
                poise::Context::Application(x) => x.serenity_context,
                poise::Context::Prefix(y) => y.serenity_context,
            };
             let a=songbird::get(context)
        .await

    Ok(())
}

If you do this, a will always be set to none when the user is in the voice channel.
Is it possible to use a bot created with poise?

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

No branches or pull requests

1 participant