21 lines
347 B
C
21 lines
347 B
C
#ifndef DISCORD_ERROR_H
|
|
#define DISCORD_ERROR_H
|
|
|
|
typedef enum discord_error {
|
|
DISCORD_OK,
|
|
DISCORD_ERR,
|
|
DISCORD_AUTH_ERR,
|
|
DISCORD_NULL_VALUE,
|
|
DISCORD_AUTH_FAILED,
|
|
} discord_error;
|
|
|
|
/**
|
|
* @brief Retrieves error string.
|
|
*
|
|
* @param err Discord error.
|
|
* @return String of the error.
|
|
*/
|
|
const char *discord_err_str(discord_error err);
|
|
|
|
#endif
|