Files
abaddon/windows/pinnedwindow.hpp
2021-06-23 02:09:07 -04:00

23 lines
546 B
C++

#pragma once
#include <gtkmm.h>
#include "../discord/errors.hpp"
#include "../discord/channel.hpp"
#include "../discord/message.hpp"
#include "../components/chatlist.hpp"
class PinnedWindow : public Gtk::Window {
public:
PinnedWindow(const ChannelData &data);
Snowflake GuildID;
Snowflake ChannelID;
private:
void OnMessagePinned(const Message &msg);
void OnMessageUnpinned(const Message &msg);
void FetchPinned();
void OnFetchedPinned(const std::vector<Message> &msgs, DiscordError code);
ChatList m_chat;
};