diff --git a/Cargo.lock b/Cargo.lock index aba3cfb..00ceb06 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1437,7 +1437,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" [[package]] name = "payphone" -version = "4.2.10" +version = "4.2.12" dependencies = [ "async-trait", "axum", diff --git a/Cargo.toml b/Cargo.toml index 65fbfb1..a5200af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "payphone" -version = "4.2.10" +version = "4.2.12" edition = "2024" default-run = "payphone" diff --git a/src/groups/moderation/commands.rs b/src/groups/moderation/commands.rs index 1bb65e2..845d00a 100644 --- a/src/groups/moderation/commands.rs +++ b/src/groups/moderation/commands.rs @@ -106,6 +106,14 @@ impl Command for IncidentsCommand { vec![Box::new(BotModeratorPermission)] } + fn arguments(&self) -> &'static [Argument] { + &[Argument { + name: "user", + is_optional: false, + is_greedy: false, + }] + } + fn show_in_help(&self, _rt: &Runtime, extras: &Extras) -> bool { extras.user.is_moderator }