Make bot state readonly
This commit is contained in:
parent
818b8748a1
commit
38556a16dd
8 changed files with 29 additions and 29 deletions
|
|
@ -31,7 +31,7 @@ where
|
|||
arg: &str,
|
||||
msg: &Message,
|
||||
ctx: &Context,
|
||||
_bot: &mut B,
|
||||
_bot: &B,
|
||||
) -> Result<Propagate, E> {
|
||||
if arg.trim().is_empty() {
|
||||
ctx.reply_only(msg.id, &self.0).await?;
|
||||
|
|
@ -60,7 +60,7 @@ where
|
|||
_args: Self::Args,
|
||||
msg: &Message,
|
||||
ctx: &Context,
|
||||
_bot: &mut B,
|
||||
_bot: &B,
|
||||
) -> Result<Propagate, E> {
|
||||
ctx.reply_only(msg.id, &self.0).await?;
|
||||
Ok(Propagate::No)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue