diff --git a/src/util/user_util.rs b/src/util/user_util.rs index 8bfd6ad..3f70c58 100644 --- a/src/util/user_util.rs +++ b/src/util/user_util.rs @@ -93,6 +93,7 @@ pub fn get_self_vc_id_cached(ctx: &Context, guild_id: &GuildId) -> Option Result { - let channel_id = get_vc_id(ctx, guild_id, &ctx.cache.current_user().id).await; - channel_id // This throws errors in main.rs for some reason + let user_id = ctx.cache.current_user().id; + + get_vc_id(ctx, guild_id, &user_id).await }