diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-01-05 03:52:20 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-01-05 03:52:20 -0500 |
commit | 40106ddeb11a755864e446920b74739f1ec21c57 (patch) | |
tree | accbb08e769727e623fb53223d00e71b1c57482e /src/discord/channel.cpp | |
parent | 8695562cb4b34c70d4d6b607042988de7b6e244d (diff) | |
download | abaddon-portaudio-40106ddeb11a755864e446920b74739f1ec21c57.tar.gz abaddon-portaudio-40106ddeb11a755864e446920b74739f1ec21c57.zip |
handle mutable categories
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); } |