From 6e75c4a95dcf0e601aba324ab5ae5f34ebd1a00d Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 23 Jun 2021 02:24:24 -0400 Subject: add pin menu item to messages --- discord/discord.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discord/discord.hpp') diff --git a/discord/discord.hpp b/discord/discord.hpp index d647f03..10da6e8 100644 --- a/discord/discord.hpp +++ b/discord/discord.hpp @@ -138,6 +138,7 @@ public: void RemoveRelationship(Snowflake id, sigc::slot callback); void SendFriendRequest(const Glib::ustring &username, int discriminator, sigc::slot callback); void PutRelationship(Snowflake id, sigc::slot callback); // send fr by id, accept incoming + void Pin(Snowflake channel_id, Snowflake message_id, sigc::slot callback); void Unpin(Snowflake channel_id, Snowflake message_id, sigc::slot callback); bool CanModifyRole(Snowflake guild_id, Snowflake role_id) const; @@ -327,7 +328,7 @@ public: typedef sigc::signal type_signal_relationship_remove; typedef sigc::signal type_signal_relationship_add; typedef sigc::signal type_signal_message_unpinned; // not a real event - typedef sigc::signal type_signal_message_pinned; // not a real event either + typedef sigc::signal type_signal_message_pinned; // not a real event either typedef sigc::signal type_signal_message_sent; typedef sigc::signal type_signal_message_send_fail; // retry after param will be 0 if it failed for a reason that isnt slowmode typedef sigc::signal type_signal_disconnected; // bool true if reconnecting -- cgit v1.2.3