remove some stuff

This commit is contained in:
ouwou
2020-11-14 00:15:15 -05:00
parent ded2007b53
commit 1e3ebefb5e
6 changed files with 0 additions and 107 deletions

View File

@@ -108,17 +108,6 @@ void DiscordClient::FetchInviteData(std::string code, std::function<void(Invite)
});
}
void DiscordClient::UpdateSettingsGuildPositions(const std::vector<Snowflake> &pos) {
nlohmann::json body;
body["guild_positions"] = pos;
m_http.MakePATCH("/users/@me/settings", body.dump(), [this, pos](const cpr::Response &r) {
if (!CheckCode(r)) return;
m_user_settings.GuildPositions = pos;
m_signal_channel_list_refresh.emit();
});
}
void DiscordClient::FetchMessagesInChannel(Snowflake id, std::function<void(const std::vector<Snowflake> &)> cb) {
std::string path = "/channels/" + std::to_string(id) + "/messages?limit=50";
m_http.MakeGET(path, [this, id, cb](cpr::Response r) {
@@ -815,10 +804,6 @@ DiscordClient::type_signal_gateway_ready DiscordClient::signal_gateway_ready() {
return m_signal_gateway_ready;
}
DiscordClient::type_signal_channel_list_refresh DiscordClient::signal_channel_list_refresh() {
return m_signal_channel_list_refresh;
}
DiscordClient::type_signal_message_create DiscordClient::signal_message_create() {
return m_signal_message_create;
}