Make bot state readonly

This commit is contained in:
Joscha 2024-12-27 19:11:52 +01:00
parent 818b8748a1
commit 38556a16dd
8 changed files with 29 additions and 29 deletions

View file

@ -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)