Skip to content

Commit

Permalink
Fix compile with no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbt365 committed Jul 15, 2024
1 parent ca5d9db commit a8a78f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dispatch/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ async fn user_permissions<U, E>(
};

#[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)),
);
Expand Down

0 comments on commit a8a78f4

Please sign in to comment.