storage: make constructors more idiomatic
This commit is contained in:
parent
46fd02605f
commit
651f14d724
5 changed files with 44 additions and 85 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::{api, Data};
|
||||
|
||||
use eyre::{Report, Result};
|
||||
use log::{debug, info};
|
||||
use log::{debug, info, trace};
|
||||
use poise::serenity_prelude::{ActivityData, Context, FullEvent, OnlineStatus};
|
||||
use poise::FrameworkContext;
|
||||
|
||||
|
@ -15,7 +15,7 @@ mod support_onboard;
|
|||
pub async fn handle(
|
||||
ctx: &Context,
|
||||
event: &FullEvent,
|
||||
_framework: FrameworkContext<'_, Data, Report>,
|
||||
_: FrameworkContext<'_, Data, Report>,
|
||||
data: &Data,
|
||||
) -> Result<()> {
|
||||
match event {
|
||||
|
@ -33,7 +33,7 @@ pub async fn handle(
|
|||
// ignore new messages from bots
|
||||
// NOTE: the webhook_id check allows us to still respond to PK users
|
||||
if new_message.author.bot && new_message.webhook_id.is_none() {
|
||||
debug!("Ignoring message {} from bot", new_message.id);
|
||||
trace!("Ignoring message {} from bot", new_message.id);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue