summaryrefslogtreecommitdiff
path: root/src/discord/channel.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-01-08 20:11:52 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2022-01-08 20:11:52 -0500
commitf31d431517b27a88a95f6972de8fcf3206df1da1 (patch)
tree772ee0241f8f79c510aa158e0d5f1a04302214c9 /src/discord/channel.cpp
parentf19dcc01145edd2e69a8cccbc59258b6b73bd704 (diff)
parent604f2ffe3dc8978aebd6aa819b73374aa32d2f0e (diff)
downloadabaddon-portaudio-f31d431517b27a88a95f6972de8fcf3206df1da1.tar.gz
abaddon-portaudio-f31d431517b27a88a95f6972de8fcf3206df1da1.zip
Merge branch 'unread' into msys
Diffstat (limited to 'src/discord/channel.cpp')
-rw-r--r--src/discord/channel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/discord/channel.cpp b/src/discord/channel.cpp
index d2828eb..2f5c3c1 100644
--- a/src/discord/channel.cpp
+++ b/src/discord/channel.cpp
@@ -78,6 +78,14 @@ bool ChannelData::IsJoinedThread() const {
return Abaddon::Get().GetDiscordClient().IsThreadJoined(ID);
}
+bool ChannelData::IsCategory() const noexcept {
+ return Type == ChannelType::GUILD_CATEGORY;
+}
+
+std::vector<Snowflake> ChannelData::GetChildIDs() const {
+ return Abaddon::Get().GetDiscordClient().GetChildChannelIDs(ID);
+}
+
std::optional<PermissionOverwrite> ChannelData::GetOverwrite(Snowflake id) const {
return Abaddon::Get().GetDiscordClient().GetPermissionOverwrite(ID, id);
}