feat&fix: fix build and add initial authnetication

This commit is contained in:
2026-05-29 13:39:57 +02:00
parent 89787b36cc
commit c29b4bb008
12 changed files with 190 additions and 11 deletions
+13 -1
View File
@@ -1,7 +1,19 @@
#include "discord.h"
#include "error.h"
#include <stdio.h>
int main(void) {
puts("discord.c");
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;
}