moderatior
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 339abb8..2ddb660 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -#![feature(if_let_guard, let_chains, generic_const_exprs)] use anyhow::Result; emojib::the_crate!(); use emoji::named::*; @@ -226,8 +225,9 @@ impl Bot { .options(poise::FrameworkOptions { commands: vec![help(), reload(), redact()], on_error: |e| Box::pin(on_error(e)), - event_handler: |c, e, _, _| { + event_handler: |c, e| { Box::pin(async move { + let c = c.serenity_context; match e { FullEvent::GuildAuditLogEntryCreate { entry, .. } => { let Some(h) = format(entry.clone()) else { |