From a4d0cd9612dfa8b60fed63f1088b59b1762d217a Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 20 Jul 2021 17:55:03 -0400 Subject: color nsfw channels --- discord/channel.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord/channel.cpp') diff --git a/discord/channel.cpp b/discord/channel.cpp index 68e73e9..9d90eb5 100644 --- a/discord/channel.cpp +++ b/discord/channel.cpp @@ -43,6 +43,10 @@ void ChannelData::update_from_json(const nlohmann::json &j) { JS_RD("last_pin_timestamp", LastPinTimestamp); } +bool ChannelData::NSFW() const { + return IsNSFW.has_value() && *IsNSFW; +} + std::optional ChannelData::GetOverwrite(Snowflake id) const { return Abaddon::Get().GetDiscordClient().GetPermissionOverwrite(ID, id); } -- cgit v1.2.3