diff --git a/src/events/mod.rs b/src/events/mod.rs index b31e6c3..7b9600e 100644 --- a/src/events/mod.rs +++ b/src/events/mod.rs @@ -38,11 +38,9 @@ pub async fn listen( Event::GuildMemberAddition { new_member } => { guild_member_addition(ctx, data, new_member).await } - Event::GuildMemberRemoval { - guild_id, - user, - member_data_if_available: _, - } => guild_member_removal(ctx, data, *guild_id, user).await, + Event::GuildMemberRemoval { guild_id, user, .. } => { + guild_member_removal(ctx, data, *guild_id, user).await + } Event::VoiceStateUpdate { old, new } => { voice_state_update(ctx, data, old.as_ref(), new).await } diff --git a/src/funcs.rs b/src/funcs.rs index 359aadf..fa1bfe2 100644 --- a/src/funcs.rs +++ b/src/funcs.rs @@ -41,7 +41,7 @@ pub async fn remove_premium(data: &Data, guild_id: serenity::GuildId) -> Result< .set_one(guild_id.into(), "premium_user", None::) .await?; data.guilds_db - .set_one(guild_id.into(), "voice_mode", None::) + .set_one(guild_id.into(), "voice_mode", TTSMode::default()) .await }