summaryrefslogtreecommitdiff
path: root/src/discord/channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/channel.cpp')
-rw-r--r--src/discord/channel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/discord/channel.cpp b/src/discord/channel.cpp
index 9d47076..0770581 100644
--- a/src/discord/channel.cpp
+++ b/src/discord/channel.cpp
@@ -116,5 +116,8 @@ std::vector<UserData> ChannelData::GetDMRecipients() const {
return ret;
}
- return std::vector<UserData>();
+ return {};
+}
+bool ChannelData::IsText() const noexcept {
+ return Type == ChannelType::GUILD_TEXT || Type == ChannelType::GUILD_NEWS;
}