Add Command trait method documentation and other docstrings, make p.co and p.d commands be used from the middle of a message

This commit is contained in:
2026-03-07 20:10:27 -03:00
parent 769d36e9c2
commit 014acf55c6
5 changed files with 133 additions and 15 deletions
+8
View File
@@ -92,6 +92,10 @@ impl Command<State, Extras> for CodeOfConductCommand {
false
}
fn only_runs_if_startswith(&self) -> bool {
false
}
async fn execute(
&self,
ctx: CommandContext<'_, State, Extras>,
@@ -126,6 +130,10 @@ impl Command<State, Extras> for DonateCommand {
false
}
fn only_runs_if_startswith(&self) -> bool {
false
}
async fn execute(
&self,
ctx: CommandContext<'_, State, Extras>,