Generated code.
More...
#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
#include "carray.h"
#include "cog-utils.h"
#include "types.h"
#include "jsmn.h"
#include "jsmn-find.h"
#include "json-build.h"
Go to the source code of this file.
|
void | discord_component_init (struct discord_component *self) |
|
void | discord_component_cleanup (struct discord_component *self) |
|
void | discord_components_cleanup (struct discord_components *self) |
|
void | discord_select_options_cleanup (struct discord_select_options *self) |
|
long | discord_component_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_component *self) |
|
size_t | discord_component_from_json (const char buf[], size_t size, struct discord_component *self) |
|
long | discord_components_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_components *self) |
|
size_t | discord_components_from_json (const char buf[], size_t size, struct discord_components *self) |
|
long | discord_select_options_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_select_options *self) |
|
size_t | discord_select_options_from_json (const char buf[], size_t size, struct discord_select_options *self) |
|
jsonbcode | discord_component_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_component *self) |
|
size_t | discord_component_to_json (char buf[], size_t size, const struct discord_component *self) |
|
jsonbcode | discord_components_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_components *self) |
|
size_t | discord_components_to_json (char buf[], size_t size, const struct discord_components *self) |
|
jsonbcode | discord_select_options_to_jsonb (jsonb *b, char buf[], size_t size, const struct discord_select_options *self) |
|
size_t | discord_select_options_to_json (char buf[], size_t size, const struct discord_select_options *self) |
|
Generated code.
- Author
- Cogmasters
◆ JSMN_STRICT
◆ JSMN_HEADER
◆ JSONB_HEADER
◆ discord_component_types
Enumerator |
---|
DISCORD_COMPONENT_ACTION_ROW | a container for the other components
|
DISCORD_COMPONENT_BUTTON | a button object
|
DISCORD_COMPONENT_SELECT_MENU | a select menu for picking from choices
|
DISCORD_COMPONENT_TEXT_INPUT | a text input object
|
◆ discord_component_styles
Enumerator |
---|
DISCORD_BUTTON_PRIMARY | blurple
|
DISCORD_BUTTON_SECONDARY | grey
|
DISCORD_BUTTON_SUCCESS | green
|
DISCORD_BUTTON_DANGER | red
|
DISCORD_BUTTON_LINK | grey, navigates to a URL
|
DISCORD_TEXT_SHORT | a single-line input
|
DISCORD_TEXT_PARAGRAPH | a multi-line input
|
◆ discord_component_init()
◆ discord_component_cleanup()
◆ discord_components_cleanup()
◆ discord_select_options_cleanup()
◆ discord_component_from_jsmnf()
long discord_component_from_jsmnf |
( |
jsmnf_pair * |
root, |
|
|
const char * |
js, |
|
|
struct discord_component * |
self |
|
) |
| |
◆ discord_component_from_json()
size_t discord_component_from_json |
( |
const char |
buf[], |
|
|
size_t |
size, |
|
|
struct discord_component * |
self |
|
) |
| |
◆ discord_components_from_jsmnf()
long discord_components_from_jsmnf |
( |
jsmnf_pair * |
root, |
|
|
const char * |
js, |
|
|
struct discord_components * |
self |
|
) |
| |
◆ discord_components_from_json()
size_t discord_components_from_json |
( |
const char |
buf[], |
|
|
size_t |
size, |
|
|
struct discord_components * |
self |
|
) |
| |
◆ discord_select_options_from_jsmnf()
long discord_select_options_from_jsmnf |
( |
jsmnf_pair * |
root, |
|
|
const char * |
js, |
|
|
struct discord_select_options * |
self |
|
) |
| |
◆ discord_select_options_from_json()
size_t discord_select_options_from_json |
( |
const char |
buf[], |
|
|
size_t |
size, |
|
|
struct discord_select_options * |
self |
|
) |
| |
◆ discord_component_to_jsonb()
◆ discord_component_to_json()
size_t discord_component_to_json |
( |
char |
buf[], |
|
|
size_t |
size, |
|
|
const struct discord_component * |
self |
|
) |
| |
◆ discord_components_to_jsonb()
◆ discord_components_to_json()
size_t discord_components_to_json |
( |
char |
buf[], |
|
|
size_t |
size, |
|
|
const struct discord_components * |
self |
|
) |
| |
◆ discord_select_options_to_jsonb()
◆ discord_select_options_to_json()