20 lines
330 B
C
20 lines
330 B
C
#include "discord.h"
|
|
#include "error.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
puts("discord.c example");
|
|
|
|
const char token[] = "";
|
|
|
|
discord_client client;
|
|
discord_error err = discord_init(&client, token);
|
|
if (err != DISCORD_OK) {
|
|
fprintf(stderr, "discord_init(): %s\n", discord_err_str(err));
|
|
return -1;
|
|
}
|
|
|
|
return 0;
|
|
}
|