use serenity::{ all::{GuildMemberUpdateEvent, Member}, async_trait, client::{Context, EventHandler}, }; /// A handler that notices people with an X.500 in their nicknames that matches a student's, and /// records it in the database. pub struct X500Mapper; #[async_trait] impl EventHandler for X500Mapper { async fn guild_member_update( &self, _ctx: Context, old_if_available: Option, new: Option, event: GuildMemberUpdateEvent, ) { dbg!((old_if_available, new, event)); } }