From b10484caccc7488122ae69beaeaf2c75104b7fa3 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Sat, 23 Aug 2025 03:23:01 -0300 Subject: [PATCH] Add user argument docs to incidents command --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/groups/moderation/commands.rs | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) 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 }