summaryrefslogtreecommitdiff
path: root/src/windows/pinnedwindow.hpp
blob: 69fdbe09655a72e15e4cd87d4168298aa69c073b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <gtkmm/window.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;
};