#pragma once #include #include #include "discord/snowflake.hpp" namespace Gtk { class TextBuffer; class TextView; } // namespace Gtk namespace ChatUtil { Glib::ustring GetText(const Glib::RefPtr &buf); void HandleRoleMentions(const Glib::RefPtr &buf); void HandleUserMentions(const Glib::RefPtr &buf, Snowflake channel_id, bool plain); void HandleStockEmojis(Gtk::TextView &tv); void HandleCustomEmojis(Gtk::TextView &tv); void HandleEmojis(Gtk::TextView &tv); void CleanupEmojis(const Glib::RefPtr &buf); } // namespace ChatUtil