Skip to content

Commit

Permalink
run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Dec 17, 2024
1 parent 938d372 commit fc064c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bin/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use twilight_http::request::TryIntoRequest;
use twilight_http::response::marker::EmptyBody;
use twilight_http::Response;
use twilight_mention::Mention;
use twilight_model::id::Id;
use twilight_model::id::marker::RoleMarker;
use twilight_model::id::Id;
use twilight_model::util::Timestamp;
use twilight_util::builder::embed::{EmbedBuilder, ImageSource};
use twilight_util::link::webhook;
Expand Down Expand Up @@ -139,7 +139,6 @@ async fn wrapped_main() -> anyhow::Result<()> {
writeln!(out, "EOF")?;
}


if args.discord_ping_notification_role {
info!("Pinging notification role");

Expand All @@ -148,7 +147,7 @@ async fn wrapped_main() -> anyhow::Result<()> {
role_str = "918884941461352469".to_string();
}
if role_str.starts_with("<@&") {
role_str = role_str[3..role_str.len()-1].to_string();
role_str = role_str[3..role_str.len() - 1].to_string();
}

let role_id: Id<RoleMarker> = role_str.parse()?;
Expand Down

0 comments on commit fc064c9

Please sign in to comment.