Files
Backcord/discordapi.h
T

15 lines
611 B
C
Executable File

#include "globals.h"
#include "components/snoctrl.h"
int DiscordSendMessage(const char *channelID, const char* content);
int DiscordListGuildChannels(char* guildID, DiscordChannel** out);
#define GUILD_TEXT 0
#define CHANNEL_DM 1
#define GUILD_VOICE 2
#define CHANNEL_GC 3
#define GUILD_CATEGORY 4
#define GUILD_ANNOUNCEMENT 5
#define GUILD_FORUM 15
int DiscordGetChannelHistory(const char* channelID, unsigned int amount, DiscordMessage** msgs);
char *DiscordFetchTmpPfp(char *userID, char *hash);
char *DiscordFetchTmpGuildIcon(char *guildID, char *hash);
int DiscordListPrivateChannels(DiscordChannel** out);