From a8a78f48007e5bbc5f2e328289a1151bc38e3161 Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Mon, 15 Jul 2024 23:01:11 +0100 Subject: [PATCH] Fix compile with no cache --- src/dispatch/common.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dispatch/common.rs b/src/dispatch/common.rs index 688ea6223e5..041b32823f2 100644 --- a/src/dispatch/common.rs +++ b/src/dispatch/common.rs @@ -92,9 +92,12 @@ async fn user_permissions( }; #[cfg(not(feature = "cache"))] - let partial_guild = guild_id.to_partial_guild.await.ok()?; + let partial_guild = guild_id + .to_partial_guild(ctx.serenity_context()) + .await + .ok()?; #[cfg(not(feature = "cache"))] - let user_permissions = ( + let users_permissions = ( user_member.map(|m| partial_guild.user_permissions_in(&channel, &m)), bot_member.map(|m| partial_guild.user_permissions_in(&channel, &m)), );