blob: cf2ec3c8b805ac00654bf2f49da55dbb5084d228 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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;
};
|