From f53b9742cb6f8e9b3e6c3c18344fbe9193a4e438 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 14 May 2021 03:08:27 -0400 Subject: handle stage-related audit log action types --- discord/channel.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'discord/channel.hpp') 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; -- cgit v1.2.3