summaryrefslogtreecommitdiff
path: root/src/windows/pinnedwindow.hpp
blob: dd90a77e00211b12347ea451bcba4be46e1d0471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#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;
};