handle CHANNEL_ICON_CHANGE message

This commit is contained in:
ouwou
2021-04-24 03:46:57 -04:00
parent 687a336bc9
commit 71d314ebc3
2 changed files with 7 additions and 3 deletions

View File

@@ -258,6 +258,10 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) {
const auto author = Abaddon::Get().GetDiscordClient().GetUser(data->Author.ID);
b->insert_markup(s, "<i><span color='#999999'>" + author->GetEscapedBoldName() + " changed the name to <b>" + Glib::Markup::escape_text(data->Content) + "</b></span></i>");
} break;
case MessageType::CHANNEL_ICON_CHANGE: {
const auto author = Abaddon::Get().GetDiscordClient().GetUser(data->Author.ID);
b->insert_markup(s, "<i><span color='#999999'>" + author->GetEscapedBoldName() + " changed the channel icon</span></i>");
} break;
default: break;
}
}

View File

@@ -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