diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index b251a38..a6bdef5 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -258,6 +258,10 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) { const auto author = Abaddon::Get().GetDiscordClient().GetUser(data->Author.ID); b->insert_markup(s, "" + author->GetEscapedBoldName() + " changed the name to " + Glib::Markup::escape_text(data->Content) + ""); } break; + case MessageType::CHANNEL_ICON_CHANGE: { + const auto author = Abaddon::Get().GetDiscordClient().GetUser(data->Author.ID); + b->insert_markup(s, "" + author->GetEscapedBoldName() + " changed the channel icon"); + } break; default: break; } } diff --git a/discord/message.hpp b/discord/message.hpp index ee6153e..c8aa0c1 100644 --- a/discord/message.hpp +++ b/discord/message.hpp @@ -14,11 +14,11 @@ enum class MessageType { RECIPIENT_ADD = 1, // yep RECIPIENT_REMOVE = 2, // yep CALL = 3, // nope - CHANNEL_NAME_CHANGE = 4, // nope - CHANNEL_ICON_CHANGE = 5, // nope + CHANNEL_NAME_CHANGE = 4, // yep + CHANNEL_ICON_CHANGE = 5, // yep CHANNEL_PINNED_MESSAGE = 6, // yep GUILD_MEMBER_JOIN = 7, // yep - USER_PREMIUM_GUILD_SUBSCRIPTION = 8, // nope + USER_PREMIUM_GUILD_SUBSCRIPTION = 8, // yep USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9, // nope USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10, // nope USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11, // nope