Add user argument docs to incidents command

This commit is contained in:
2025-08-23 03:23:01 -03:00
parent 7a5943a5ef
commit b10484cacc
3 changed files with 10 additions and 2 deletions
Generated
+1 -1
View File
@@ -1437,7 +1437,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
[[package]] [[package]]
name = "payphone" name = "payphone"
version = "4.2.10" version = "4.2.12"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "payphone" name = "payphone"
version = "4.2.10" version = "4.2.12"
edition = "2024" edition = "2024"
default-run = "payphone" default-run = "payphone"
+8
View File
@@ -106,6 +106,14 @@ impl Command<State, Extras> for IncidentsCommand {
vec![Box::new(BotModeratorPermission)] 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<State, Extras>, extras: &Extras) -> bool { fn show_in_help(&self, _rt: &Runtime<State, Extras>, extras: &Extras) -> bool {
extras.user.is_moderator extras.user.is_moderator
} }