diff options
| author | Lakelezz <[email protected]> | 2018-10-20 23:42:29 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-10-20 23:42:29 +0200 |
| commit | 75fb5c041511077e60e577e55039acc33d624569 (patch) | |
| tree | 46635aab225f9ee51ff78921eaa1cbda84bee61e /src/model/channel/channel_category.rs | |
| parent | Prefix only Command (#416) (diff) | |
| download | serenity-75fb5c041511077e60e577e55039acc33d624569.tar.xz serenity-75fb5c041511077e60e577e55039acc33d624569.zip | |
Fix NSFW Checks (#418)
Diffstat (limited to 'src/model/channel/channel_category.rs')
| -rw-r--r-- | src/model/channel/channel_category.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/model/channel/channel_category.rs b/src/model/channel/channel_category.rs index 47b2281..f57910e 100644 --- a/src/model/channel/channel_category.rs +++ b/src/model/channel/channel_category.rs @@ -125,10 +125,9 @@ impl ChannelCategory { }) } - #[cfg(feature = "utils")] #[inline] pub fn is_nsfw(&self) -> bool { - self.kind == ChannelType::Text && (self.nsfw || serenity_utils::is_nsfw(&self.name)) + self.kind == ChannelType::Text && self.nsfw } /// Returns the name of the category. |