Skip to content

Commit

Permalink
Apr 24, 2024, 8:19 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
cycle-five committed Apr 24, 2024
1 parent 436cdad commit b91f14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async fn check_permissions_and_cooldown_single<'a, U, E>(
}
};

if !channel.is_nsfw() {
if !channel.guild().map(|x| x.nsfw).unwrap_or(false) {
return Err(crate::FrameworkError::NsfwOnly { ctx });
}
}
Expand Down

0 comments on commit b91f14d

Please sign in to comment.