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

Canary webhooks marked as invalid #2491

Closed
ghost opened this issue Jul 12, 2023 · 1 comment · Fixed by #2499
Closed

Canary webhooks marked as invalid #2491

ghost opened this issue Jul 12, 2023 · 1 comment · Fixed by #2499
Labels
bug Something misbehaves or is not working. http Related to the `http` module.

Comments

@ghost
Copy link

ghost commented Jul 12, 2023

Serenity version: 0.11.6

Rust version: rustc 1.71.0-nightly (1a6ae3d69 2023-04-27)

Webhooks copied from discord canary are mistakenly marked as invalid. I didn't include the backtrace because it's just tokio.

Test case:

use serenity::http::Http;
use serenity::model::webhook::Webhook;

#[tokio::main]
async fn main() {
    let hook = "https://canary.discord.com/api/webhooks/id/token";

    let http = Http::new("");
    let _webhook = Webhook::from_url(&http, hook).await.expect("invalid hook");
}
@arqunis arqunis added bug Something misbehaves or is not working. http Related to the `http` module. labels Jul 15, 2023
@HexPandaa
Copy link
Contributor

Should be fixed with #2499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something misbehaves or is not working. http Related to the `http` module.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants