Files
abaddon/windows/pinnedwindow.hpp
2021-11-20 22:29:03 -05:00

23 lines
534 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;
};