diff options
Diffstat (limited to 'src/discord/channel.cpp')
-rw-r--r-- | src/discord/channel.cpp | 8 |
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); } |