#ifndef DC_INTERNAL_H #define DC_INTERNAL_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* For internal debugging only. Please note that the client will then begin to * write text files everywhere filled with all sorts of private information. Use * with caution. */ /*#define DEBUG*/ #define return_if_true(v,r) do { if (v) return r; } while(0) #define goto_if_true(v,l) do { if (v) goto l; } while(0) #define continue_if_true(v) if (v) continue #define TOKEN(l) (dc_account_token(l)) #define DISCORD_URL "https://discordapp.com/api/v6" #define DISCORD_GATEWAY_URL "/?encoding=json&v=6" #define DISCORD_GATEWAY_HOST "gateway.discord.gg" #define DISCORD_GATEWAY "https://" DISCORD_GATEWAY_HOST DISCORD_GATEWAY_URL #define DISCORD_USERAGENT "Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0" #endif