Skip to content

Commit

Permalink
default page to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Sep 13, 2024
1 parent 95496ae commit e0f55ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assyst-core/src/command/misc/tag.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::collections::HashMap;
use std::fmt::Write;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use std::u64;

use anyhow::{anyhow, bail, ensure, Context};
use assyst_common::util::discord::{format_discord_timestamp, format_tag, get_avatar_url};
Expand Down Expand Up @@ -390,7 +391,7 @@ pub async fn list(ctxt: CommandCtxt<'_>, user: Option<User>, flags: TagListFlags
bail!("Tags can only be listed in guilds.")
};

let page = flags.page;
let page = flags.page.clamp(1, u64::MAX);

// user-specific search if arg is a mention
let user_id = user.map(|x| x.0.id);
Expand Down

0 comments on commit e0f55ca

Please sign in to comment.