Skip to content

Commit

Permalink
revert shop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivia committed Jun 17, 2024
1 parent cb6a8ab commit 8833641
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/botowners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ pub async fn getbotroles(ctx: Context<'_>) -> Result<(), Error> {
}

Ok(())
}
}
7 changes: 1 addition & 6 deletions src/impls/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,7 @@ pub async fn get_owned_by(user_id: &str, pool: &PgPool) -> Result<Vec<OwnedBy>,
)
.fetch_all(pool)
.await
.map_err(|e| {
format!(
"Error while executing query for user {}: {}",
user_id, e
)
})?;
.map_err(|e| format!("Error while executing query for user {}: {}", user_id, e))?;

let mut owned_by = Vec::new();

Expand Down
3 changes: 2 additions & 1 deletion src/leaderboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ pub async fn leaderboard(
.fetch_all(&data.pool)
.await?;

let mut desc = String::from("Oh, hello there! Let's see who's been fighting bots the most :eyes:\n\n");
let mut desc =
String::from("Oh, hello there! Let's see who's been fighting bots the most :eyes:\n\n");
let mut embed = CreateEmbed::default()
.title("Staff Leaderboard")
.color(Color::from_rgb(0, 255, 0))
Expand Down

0 comments on commit 8833641

Please sign in to comment.