diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-14 03:08:27 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-14 03:08:27 -0400 |
commit | f53b9742cb6f8e9b3e6c3c18344fbe9193a4e438 (patch) | |
tree | 4658a2e13e915df1903399a3c755e3ad5c4dd48b /discord/channel.hpp | |
parent | cd97c554651a4940131eec5e694632dc0d084928 (diff) | |
download | abaddon-portaudio-f53b9742cb6f8e9b3e6c3c18344fbe9193a4e438.tar.gz abaddon-portaudio-f53b9742cb6f8e9b3e6c3c18344fbe9193a4e438.zip |
handle stage-related audit log action types
Diffstat (limited to 'discord/channel.hpp')
-rw-r--r-- | discord/channel.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/discord/channel.hpp b/discord/channel.hpp index f1d75db..b9bfd6d 100644 --- a/discord/channel.hpp +++ b/discord/channel.hpp @@ -21,6 +21,22 @@ enum class ChannelType : int { GUILD_STAGE_VOICE = 13, }; +enum class StagePrivacy { + PUBLIC = 1, + GUILD_ONLY = 2, +}; + +constexpr const char *GetStagePrivacyDisplayString(StagePrivacy e) { + switch (e) { + case StagePrivacy::PUBLIC: + return "Public"; + case StagePrivacy::GUILD_ONLY: + return "Guild Only"; + default: + return "Unknown"; + } +} + struct ChannelData { Snowflake ID; ChannelType Type; |