Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
evieluvsrainbows committed Dec 5, 2024
1 parent e7bc76d commit 2e4ca00
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/commands/fun/xkcd.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::{models::Comic, Context, Error};
use poise::CreateReply;
use rand::Rng;
use reqwest::StatusCode;
use serenity::all::{CreateActionRow, CreateButton, CreateEmbed, CreateEmbedFooter};
Expand Down Expand Up @@ -47,7 +48,7 @@ pub async fn xkcd(context: Context<'_>, #[description = "Gets a specific comic."
.footer(CreateEmbedFooter::new(format!("xkcd comic no. {num}")));

let links = CreateActionRow::Buttons(vec![CreateButton::new_link(page).label("View on xkcd"), CreateButton::new_link(wiki).label("View wiki")]);
context.send(poise::CreateReply::default().embed(embed).components(vec![links])).await?;
context.send(CreateReply::default().embed(embed).components(vec![links])).await?;

Ok(())
}

0 comments on commit 2e4ca00

Please sign in to comment.