feat&fix: fix build and add initial authnetication
This commit is contained in:
+13
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user