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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user