pub fn check_nsfw(ctx: &mut Context, msg: &Message) -> RedditResult<bool> {
    match msg.channel_id.to_channel(ctx) {
        Ok(channel) => Ok(channel.is_nsfw()),
        Err(_) => Err(RedditAPIError::new("failed to get channel info")),
    }
}
// helper to check if a discord channel is nsfw
helper to check if a discord channel is nsfw
helper to check if a discord channel is nsfw
pub fn check_nsfw(ctx: &mut Context, msg: &Message) -> RedditResult<bool> {
    match msg.channel_id.to_channel(ctx) {
        Ok(channel) => Ok(channel.is_nsfw()),
        Err(_) => Err(RedditAPIError::new("failed to get channel info")),
    }
}
pub fn check_nsfw ( ctx : & mut Context , msg : & Message ) -> RedditResult < bool > { match msg . channel_id . to_channel ( ctx ) { Ok ( channel ) => Ok ( channel . is_nsfw ( ) ) , Err ( _ ) => Err ( RedditAPIError :: new ( " " ) ) , } }
helper to check if a discord channel is nsfw
helper to check if a discord channel is nsfw
ctx
&mut Context
msg
&Message