Concord - C Discord API library
A Discord API wrapper library written in C
channel.h
Go to the documentation of this file.
1
6#ifndef API_CHANNEL_H
7#define API_CHANNEL_H
8/* Allow symbols usage without GENCODECS_ prefix */
9#include <stddef.h>
10#include <stdbool.h>
11#include <inttypes.h>
12#include "carray.h"
13#include "cog-utils.h"
14#include "types.h"
15/* Custom JSON encoding macros */
16/* Custom JSON decoding macros */
17/* Custom field macros */
18/* if GENCODECS_READ is not specified then generate for all files */
19/*****************************************************************************
20 * Channel Datatypes
21 * **************************************************************************/
27#define DISCORD_MESSAGE_CROSSPOSTED 1 << 0
30#define DISCORD_MESSAGE_IS_CROSSPOST 1 << 1
32#define DISCORD_MESSAGE_SUPRPRESS_EMBEDS 1 << 2
35#define DISCORD_MESSAGE_SOURCE_MESSAGE_DELETED 1 << 3
37#define DISCORD_MESSAGE_URGENT 1 << 4
39#define DISCORD_MESSAGE_HAS_THREAD 1 << 5
41#define DISCORD_MESSAGE_EPHEMERAL 1 << 6
43#define DISCORD_MESSAGE_LOADING 1 << 7
46#define DISCORD_MESSAGE_FAILED_TO_MENTION_SOME_ROLES_IN_THREAD 1 << 8
83};
89};
131
137 char * name;
139 char * topic;
141 bool nsfw;
156 char * icon;
189};
192 struct discord_channel *array; int realsize; };
207 char * content;
213
215 bool tts;
234 bool pinned;
263};
266 struct discord_message *array; int realsize; };
272 char * party_id;
273};
284};
291};
294 int count;
296 bool me;
299};
301 struct discord_reaction *array; int realsize; };
307 int type;
312};
314 struct discord_overwrite *array; int realsize; };
327 bool locked;
334};
347};
350 struct discord_thread_member *array; int realsize; };
354 char * content;
359 char * filename;
360
364
368
371 size_t size;
372
375 char * url;
376
379 char * proxy_url;
380
384
387 int width;
388
391};
394 struct discord_attachment *array; int realsize; };
399 char * title;
401 char * type;
405 char * url;
409
412 int color;
413
417
421
425
429
430
432
433
435
436
438
439};
441struct discord_embeds { int size;
442 struct discord_embed *array; int realsize; };
447 char * url;
450 char * proxy_url;
451
455
458 int width;
459
460};
465 char * url;
466
469 char * proxy_url;
470
474
477 int width;
478
479};
483 char * url;
486 char * proxy_url;
487
491
494 int width;
495
496};
501 char * name;
502
505 char * url;
506
507};
511 char * name;
514 char * url;
515
518 char * icon_url;
519
523
524};
528 char * text;
531 char * icon_url;
532
536
537};
541 char * name;
543 char * value;
545 bool Inline;
546};
549 struct discord_embed_field *array; int realsize; };
559 char * name;
560};
563 struct strings * parse;
571};
582};
583/*****************************************************************************
584 * Channel REST parameters
585 * **************************************************************************/
589 char * reason;
591 char * name;
592 /* GROUP DM */
593 /* TODO: implement base64 encoder */
594 /* GUILD CHANNEL */
599
603
606 char * topic;
607
610 bool nsfw;
611
617
622
626
630
634
638
644
645 /* THREAD */
652
655 bool locked;
659};
662 char * reason;
663};
668
672
676
679 int limit;
680
681};
685 char * content;
687 bool tts;
693
697
701
705
709
714
715};
720
723 int limit;
724
725};
729 char * content;
736
740
744
748
749};
752 char * reason;
753};
757 char * reason;
760};
764 char * reason;
769
774
776 int type;
777};
781 char * reason;
786
790
794
798 bool unique;
799
803
808
813
814};
817 char * reason;
818};
824
825};
828 char * reason;
829};
832 char * reason;
833};
839 char * nick;
840};
844 char * reason;
846 char * name;
851
856
857};
861 char * reason;
863 char * name;
868
878
879};
885
890
894};
895#include <stddef.h>
896#include <stdbool.h>
897#define JSMN_STRICT
898#define JSMN_HEADER
899#include "jsmn.h"
900#include "jsmn-find.h"
901#define JSONB_HEADER
902#include "json-build.h"
903#include <inttypes.h>
904#include "carray.h"
905#include "cog-utils.h"
906#include "types.h"
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
999
1000
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1078
1079
1080
1081
1082
1083
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1117
1118
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1153
1154
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1194
1195
1196
1197
1198
1199
1200
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1214
1215
1216
1217
1218
1219
1220
1221
1223
1224
1225
1226
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1243
1244
1245
1246
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1358
1359
1360
1362
1363
1364
1365
1366
1367
1368
1369
1370
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1410
1411
1412
1414
1415
1416
1417
1418
1419
1420
1421
1422
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453long discord_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_channel *self); size_t discord_channel_from_json(const char buf[], size_t size, struct discord_channel *self);
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483long discord_channels_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_channels *self); size_t discord_channels_from_json(const char buf[], size_t size, struct discord_channels *self);
1484
1485
1486long discord_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_message *self); size_t discord_message_from_json(const char buf[], size_t size, struct discord_message *self);
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520long discord_messages_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_messages *self); size_t discord_messages_from_json(const char buf[], size_t size, struct discord_messages *self);
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533long discord_followed_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_followed_channel *self); size_t discord_followed_channel_from_json(const char buf[], size_t size, struct discord_followed_channel *self);
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562long discord_thread_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_thread_member *self); size_t discord_thread_member_from_json(const char buf[], size_t size, struct discord_thread_member *self);
1563
1564
1565
1566
1567
1568
1569long discord_thread_members_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_thread_members *self); size_t discord_thread_members_from_json(const char buf[], size_t size, struct discord_thread_members *self);
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600long discord_attachments_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_attachments *self); size_t discord_attachments_from_json(const char buf[], size_t size, struct discord_attachments *self);
1601
1602
1603long discord_embed_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed *self); size_t discord_embed_from_json(const char buf[], size_t size, struct discord_embed *self);
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636long discord_embeds_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embeds *self); size_t discord_embeds_from_json(const char buf[], size_t size, struct discord_embeds *self);
1637
1638
1639long discord_embed_thumbnail_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_thumbnail *self); size_t discord_embed_thumbnail_from_json(const char buf[], size_t size, struct discord_embed_thumbnail *self);
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651long discord_embed_video_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_video *self); size_t discord_embed_video_from_json(const char buf[], size_t size, struct discord_embed_video *self);
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665long discord_embed_image_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_image *self); size_t discord_embed_image_from_json(const char buf[], size_t size, struct discord_embed_image *self);
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677long discord_embed_provider_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_provider *self); size_t discord_embed_provider_from_json(const char buf[], size_t size, struct discord_embed_provider *self);
1678
1679
1680
1681
1682
1683
1684
1685long discord_embed_author_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_author *self); size_t discord_embed_author_from_json(const char buf[], size_t size, struct discord_embed_author *self);
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697long discord_embed_footer_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_footer *self); size_t discord_embed_footer_from_json(const char buf[], size_t size, struct discord_embed_footer *self);
1698
1699
1700
1701
1702
1703
1704
1705
1706long discord_embed_field_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_field *self); size_t discord_embed_field_from_json(const char buf[], size_t size, struct discord_embed_field *self);
1707
1708
1709
1710
1711long discord_embed_fields_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_fields *self); size_t discord_embed_fields_from_json(const char buf[], size_t size, struct discord_embed_fields *self);
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726long discord_thread_response_body_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_thread_response_body *self); size_t discord_thread_response_body_from_json(const char buf[], size_t size, struct discord_thread_response_body *self);
1727
1728
1729
1730
1731long discord_modify_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_channel *self); size_t discord_modify_channel_from_json(const char buf[], size_t size, struct discord_modify_channel *self);
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773long discord_create_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_message *self); size_t discord_create_message_from_json(const char buf[], size_t size, struct discord_create_message *self);
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796long discord_edit_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_message *self); size_t discord_edit_message_from_json(const char buf[], size_t size, struct discord_edit_message *self);
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812long discord_bulk_delete_messages_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_bulk_delete_messages *self); size_t discord_bulk_delete_messages_from_json(const char buf[], size_t size, struct discord_bulk_delete_messages *self);
1813
1814
1815long discord_edit_channel_permissions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_channel_permissions *self); size_t discord_edit_channel_permissions_from_json(const char buf[], size_t size, struct discord_edit_channel_permissions *self);
1816
1817
1818
1819
1820
1821
1822
1823
1824long discord_create_channel_invite_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_channel_invite *self); size_t discord_create_channel_invite_from_json(const char buf[], size_t size, struct discord_create_channel_invite *self);
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847long discord_follow_news_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_follow_news_channel *self); size_t discord_follow_news_channel_from_json(const char buf[], size_t size, struct discord_follow_news_channel *self);
1848
1849
1850
1851
1852long discord_group_dm_add_recipient_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_group_dm_add_recipient *self); size_t discord_group_dm_add_recipient_from_json(const char buf[], size_t size, struct discord_group_dm_add_recipient *self);
1853
1854
1855
1857
1858
1859
1860
1861
1862
1863
1864
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876long discord_list_active_threads_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_list_active_threads *self); size_t discord_list_active_threads_from_json(const char buf[], size_t size, struct discord_list_active_threads *self);
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894jsonbcode discord_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_channel *self); size_t discord_channel_to_json(char buf[], size_t size, const struct discord_channel *self);
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924jsonbcode discord_channels_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_channels *self); size_t discord_channels_to_json(char buf[], size_t size, const struct discord_channels *self);
1925
1926
1927jsonbcode discord_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_message *self); size_t discord_message_to_json(char buf[], size_t size, const struct discord_message *self);
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961jsonbcode discord_messages_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_messages *self); size_t discord_messages_to_json(char buf[], size_t size, const struct discord_messages *self);
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974jsonbcode discord_followed_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_followed_channel *self); size_t discord_followed_channel_to_json(char buf[], size_t size, const struct discord_followed_channel *self);
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003jsonbcode discord_thread_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_thread_member *self); size_t discord_thread_member_to_json(char buf[], size_t size, const struct discord_thread_member *self);
2004
2005
2006
2007
2008
2009
2010jsonbcode discord_thread_members_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_thread_members *self); size_t discord_thread_members_to_json(char buf[], size_t size, const struct discord_thread_members *self);
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041jsonbcode discord_attachments_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_attachments *self); size_t discord_attachments_to_json(char buf[], size_t size, const struct discord_attachments *self);
2042
2043
2044jsonbcode discord_embed_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed *self); size_t discord_embed_to_json(char buf[], size_t size, const struct discord_embed *self);
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077jsonbcode discord_embeds_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embeds *self); size_t discord_embeds_to_json(char buf[], size_t size, const struct discord_embeds *self);
2078
2079
2080jsonbcode discord_embed_thumbnail_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_thumbnail *self); size_t discord_embed_thumbnail_to_json(char buf[], size_t size, const struct discord_embed_thumbnail *self);
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092jsonbcode discord_embed_video_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_video *self); size_t discord_embed_video_to_json(char buf[], size_t size, const struct discord_embed_video *self);
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106jsonbcode discord_embed_image_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_image *self); size_t discord_embed_image_to_json(char buf[], size_t size, const struct discord_embed_image *self);
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118jsonbcode discord_embed_provider_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_provider *self); size_t discord_embed_provider_to_json(char buf[], size_t size, const struct discord_embed_provider *self);
2119
2120
2121
2122
2123
2124
2125
2126jsonbcode discord_embed_author_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_author *self); size_t discord_embed_author_to_json(char buf[], size_t size, const struct discord_embed_author *self);
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138jsonbcode discord_embed_footer_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_footer *self); size_t discord_embed_footer_to_json(char buf[], size_t size, const struct discord_embed_footer *self);
2139
2140
2141
2142
2143
2144
2145
2146
2147jsonbcode discord_embed_field_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_field *self); size_t discord_embed_field_to_json(char buf[], size_t size, const struct discord_embed_field *self);
2148
2149
2150
2151
2152jsonbcode discord_embed_fields_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_fields *self); size_t discord_embed_fields_to_json(char buf[], size_t size, const struct discord_embed_fields *self);
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2168
2169
2170
2171
2172jsonbcode discord_modify_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_channel *self); size_t discord_modify_channel_to_json(char buf[], size_t size, const struct discord_modify_channel *self);
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214jsonbcode discord_create_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_message *self); size_t discord_create_message_to_json(char buf[], size_t size, const struct discord_create_message *self);
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237jsonbcode discord_edit_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_message *self); size_t discord_edit_message_to_json(char buf[], size_t size, const struct discord_edit_message *self);
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2254
2255
2257
2258
2259
2260
2261
2262
2263
2264
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2289
2290
2291
2292
2294
2295
2296
2298
2299
2300
2301
2302
2303
2304
2305
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2318
2319
2320
2321
2322
2323
2324
2325
2326#endif /* API_CHANNEL_H */
jsonbcode discord_list_active_threads_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_list_active_threads *self)
size_t discord_message_to_json(char buf[], size_t size, const struct discord_message *self)
void discord_modify_channel_cleanup(struct discord_modify_channel *self)
void discord_modify_channel_init(struct discord_modify_channel *self)
long discord_embed_fields_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_fields *self)
size_t discord_group_dm_add_recipient_to_json(char buf[], size_t size, const struct discord_group_dm_add_recipient *self)
jsonbcode discord_embed_video_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_video *self)
void discord_attachments_cleanup(struct discord_attachments *self)
jsonbcode discord_group_dm_add_recipient_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_group_dm_add_recipient *self)
size_t discord_embed_provider_to_json(char buf[], size_t size, const struct discord_embed_provider *self)
jsonbcode discord_embed_author_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_author *self)
void discord_embed_field_cleanup(struct discord_embed_field *self)
void discord_thread_member_init(struct discord_thread_member *self)
void discord_embed_author_cleanup(struct discord_embed_author *self)
size_t discord_create_channel_invite_from_json(const char buf[], size_t size, struct discord_create_channel_invite *self)
long discord_embed_image_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_image *self)
void discord_embed_video_init(struct discord_embed_video *self)
jsonbcode discord_thread_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_thread_member *self)
long discord_follow_news_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_follow_news_channel *self)
long discord_followed_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_followed_channel *self)
size_t discord_thread_response_body_to_json(char buf[], size_t size, const struct discord_thread_response_body *self)
void discord_edit_message_cleanup(struct discord_edit_message *self)
size_t discord_embed_to_json(char buf[], size_t size, const struct discord_embed *self)
long discord_group_dm_add_recipient_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_group_dm_add_recipient *self)
size_t discord_embed_author_from_json(const char buf[], size_t size, struct discord_embed_author *self)
long discord_create_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_message *self)
void discord_group_dm_add_recipient_init(struct discord_group_dm_add_recipient *self)
discord_message_activity_types
Definition: channel.h:115
@ DISCORD_MESSAGE_ACTIVITY_JOIN_REQUEST
Definition: channel.h:119
@ DISCORD_MESSAGE_ACTIVITY_SPECTATE
Definition: channel.h:117
@ DISCORD_MESSAGE_ACTIVITY_JOIN
Definition: channel.h:116
@ DISCORD_MESSAGE_ACTIVITY_LISTEN
Definition: channel.h:118
size_t discord_embed_image_from_json(const char buf[], size_t size, struct discord_embed_image *self)
void discord_list_active_threads_cleanup(struct discord_list_active_threads *self)
size_t discord_attachments_to_json(char buf[], size_t size, const struct discord_attachments *self)
jsonbcode discord_embeds_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embeds *self)
void discord_follow_news_channel_init(struct discord_follow_news_channel *self)
size_t discord_follow_news_channel_to_json(char buf[], size_t size, const struct discord_follow_news_channel *self)
size_t discord_create_message_to_json(char buf[], size_t size, const struct discord_create_message *self)
size_t discord_embed_from_json(const char buf[], size_t size, struct discord_embed *self)
jsonbcode discord_embed_image_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_image *self)
size_t discord_embeds_to_json(char buf[], size_t size, const struct discord_embeds *self)
jsonbcode discord_thread_members_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_thread_members *self)
jsonbcode discord_attachments_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_attachments *self)
jsonbcode discord_embed_provider_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_provider *self)
void discord_list_active_threads_init(struct discord_list_active_threads *self)
void discord_create_channel_invite_cleanup(struct discord_create_channel_invite *self)
void discord_start_thread_without_message_cleanup(struct discord_start_thread_without_message *self)
size_t discord_embed_thumbnail_to_json(char buf[], size_t size, const struct discord_embed_thumbnail *self)
void discord_embed_provider_cleanup(struct discord_embed_provider *self)
void discord_message_cleanup(struct discord_message *self)
void discord_embed_footer_cleanup(struct discord_embed_footer *self)
size_t discord_embed_footer_to_json(char buf[], size_t size, const struct discord_embed_footer *self)
jsonbcode discord_embed_footer_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_footer *self)
void discord_edit_message_init(struct discord_edit_message *self)
long discord_embed_video_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_video *self)
long discord_messages_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_messages *self)
size_t discord_create_channel_invite_to_json(char buf[], size_t size, const struct discord_create_channel_invite *self)
void discord_embed_author_init(struct discord_embed_author *self)
long discord_modify_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_channel *self)
size_t discord_embed_field_to_json(char buf[], size_t size, const struct discord_embed_field *self)
size_t discord_thread_response_body_from_json(const char buf[], size_t size, struct discord_thread_response_body *self)
long discord_thread_members_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_thread_members *self)
size_t discord_start_thread_with_message_to_json(char buf[], size_t size, const struct discord_start_thread_with_message *self)
size_t discord_embed_field_from_json(const char buf[], size_t size, struct discord_embed_field *self)
void discord_embed_thumbnail_init(struct discord_embed_thumbnail *self)
void discord_thread_members_cleanup(struct discord_thread_members *self)
jsonbcode discord_start_thread_with_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_start_thread_with_message *self)
size_t discord_embed_video_from_json(const char buf[], size_t size, struct discord_embed_video *self)
long discord_channels_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_channels *self)
void discord_start_thread_without_message_init(struct discord_start_thread_without_message *self)
void discord_embed_video_cleanup(struct discord_embed_video *self)
size_t discord_attachments_from_json(const char buf[], size_t size, struct discord_attachments *self)
void discord_create_message_cleanup(struct discord_create_message *self)
void discord_channel_cleanup(struct discord_channel *self)
jsonbcode discord_embed_thumbnail_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_thumbnail *self)
long discord_edit_channel_permissions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_channel_permissions *self)
size_t discord_start_thread_without_message_to_json(char buf[], size_t size, const struct discord_start_thread_without_message *self)
void discord_followed_channel_init(struct discord_followed_channel *self)
long discord_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_channel *self)
size_t discord_message_from_json(const char buf[], size_t size, struct discord_message *self)
long discord_embed_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed *self)
long discord_edit_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_message *self)
void discord_start_thread_with_message_cleanup(struct discord_start_thread_with_message *self)
void discord_embed_cleanup(struct discord_embed *self)
void discord_bulk_delete_messages_init(struct discord_bulk_delete_messages *self)
long discord_embed_author_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_author *self)
size_t discord_followed_channel_to_json(char buf[], size_t size, const struct discord_followed_channel *self)
void discord_edit_channel_permissions_init(struct discord_edit_channel_permissions *self)
jsonbcode discord_create_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_message *self)
size_t discord_follow_news_channel_from_json(const char buf[], size_t size, struct discord_follow_news_channel *self)
size_t discord_thread_members_to_json(char buf[], size_t size, const struct discord_thread_members *self)
size_t discord_modify_channel_from_json(const char buf[], size_t size, struct discord_modify_channel *self)
size_t discord_embed_footer_from_json(const char buf[], size_t size, struct discord_embed_footer *self)
void discord_embed_provider_init(struct discord_embed_provider *self)
discord_channel_types
Definition: channel.h:48
@ DISCORD_CHANNEL_GUILD_PRIVATE_THREAD
Definition: channel.h:76
@ DISCORD_CHANNEL_GUILD_FORUM
Definition: channel.h:82
@ DISCORD_CHANNEL_GUILD_NEWS_THREAD
Definition: channel.h:69
@ DISCORD_CHANNEL_GUILD_STAGE_VOICE
Definition: channel.h:78
@ DISCORD_CHANNEL_GUILD_VOICE
Definition: channel.h:54
@ DISCORD_CHANNEL_GUILD_STORE
Definition: channel.h:64
@ DISCORD_CHANNEL_GUILD_DIRECTORY
Definition: channel.h:80
@ DISCORD_CHANNEL_GUILD_TEXT
Definition: channel.h:50
@ DISCORD_CHANNEL_GUILD_CATEGORY
Definition: channel.h:58
@ DISCORD_CHANNEL_GROUP_DM
Definition: channel.h:56
@ DISCORD_CHANNEL_DM
Definition: channel.h:52
@ DISCORD_CHANNEL_ANNOUNCEMENT_THREAD
Definition: channel.h:67
@ DISCORD_CHANNEL_GUILD_PUBLIC_THREAD
Definition: channel.h:72
@ DISCORD_CHANNEL_GUILD_ANNOUNCEMENT
Definition: channel.h:60
@ DISCORD_CHANNEL_GUILD_NEWS
Definition: channel.h:62
long discord_create_channel_invite_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_channel_invite *self)
void discord_follow_news_channel_cleanup(struct discord_follow_news_channel *self)
size_t discord_channel_to_json(char buf[], size_t size, const struct discord_channel *self)
jsonbcode discord_followed_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_followed_channel *self)
void discord_message_init(struct discord_message *self)
size_t discord_edit_channel_permissions_to_json(char buf[], size_t size, const struct discord_edit_channel_permissions *self)
discord_video_quality_modes
Definition: channel.h:84
@ DISCORD_VIDEO_QUALITY_FULL
Definition: channel.h:88
@ DISCORD_VIDEO_QUALITY_AUTO
Definition: channel.h:86
long discord_attachments_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_attachments *self)
void discord_edit_channel_permissions_cleanup(struct discord_edit_channel_permissions *self)
size_t discord_embed_author_to_json(char buf[], size_t size, const struct discord_embed_author *self)
discord_message_types
Definition: channel.h:90
@ DISCORD_MESSAGE_THREAD_STARTER_MESSAGE
Definition: channel.h:111
@ DISCORD_MESSAGE_CHANNEL_PINNED_MESSAGE
Definition: channel.h:97
@ DISCORD_MESSAGE_CHANNEL_FOLLOW_ADD
Definition: channel.h:103
@ DISCORD_MESSAGE_CALL
Definition: channel.h:94
@ DISCORD_MESSAGE_RECIPIENT_ADD
Definition: channel.h:92
@ DISCORD_MESSAGE_GUILD_INVITE_REMINDER
Definition: channel.h:112
@ DISCORD_MESSAGE_GUILD_DISCOVERY_DISQUALIFIED
Definition: channel.h:104
@ DISCORD_MESSAGE_DEFAULT
Definition: channel.h:91
@ DISCORD_MESSAGE_USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3
Definition: channel.h:102
@ DISCORD_MESSAGE_CHANNEL_ICON_CHANGE
Definition: channel.h:96
@ DISCORD_MESSAGE_USER_PREMIUM_GUILD_SUBSCRIPTION
Definition: channel.h:99
@ DISCORD_MESSAGE_GUILD_MEMBER_JOIN
Definition: channel.h:98
@ DISCORD_MESSAGE_USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2
Definition: channel.h:101
@ DISCORD_MESSAGE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING
Definition: channel.h:106
@ DISCORD_MESSAGE_CHAT_INPUT_COMMAND
Definition: channel.h:110
@ DISCORD_MESSAGE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING
Definition: channel.h:107
@ DISCORD_MESSAGE_THREAD_CREATED
Definition: channel.h:108
@ DISCORD_MESSAGE_GUILD_DISCOVERY_REQUALIFIED
Definition: channel.h:105
@ DISCORD_MESSAGE_USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1
Definition: channel.h:100
@ DISCORD_MESSAGE_RECIPIENT_REMOVE
Definition: channel.h:93
@ DISCORD_MESSAGE_CONTEXT_MENU_COMMAND
Definition: channel.h:113
@ DISCORD_MESSAGE_CHANNEL_NAME_CHANGE
Definition: channel.h:95
@ DISCORD_MESSAGE_REPLY
Definition: channel.h:109
void discord_thread_response_body_cleanup(struct discord_thread_response_body *self)
size_t discord_channels_to_json(char buf[], size_t size, const struct discord_channels *self)
long discord_embed_field_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_field *self)
void discord_embed_init(struct discord_embed *self)
long discord_embed_provider_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_provider *self)
jsonbcode discord_embed_fields_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_fields *self)
jsonbcode discord_start_thread_without_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_start_thread_without_message *self)
void discord_followed_channel_cleanup(struct discord_followed_channel *self)
void discord_create_message_init(struct discord_create_message *self)
jsonbcode discord_embed_field_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed_field *self)
size_t discord_embed_video_to_json(char buf[], size_t size, const struct discord_embed_video *self)
long discord_list_active_threads_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_list_active_threads *self)
void discord_embed_image_init(struct discord_embed_image *self)
size_t discord_group_dm_add_recipient_from_json(const char buf[], size_t size, struct discord_group_dm_add_recipient *self)
size_t discord_messages_from_json(const char buf[], size_t size, struct discord_messages *self)
jsonbcode discord_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_channel *self)
jsonbcode discord_embed_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_embed *self)
size_t discord_thread_member_from_json(const char buf[], size_t size, struct discord_thread_member *self)
size_t discord_embed_fields_from_json(const char buf[], size_t size, struct discord_embed_fields *self)
void discord_messages_cleanup(struct discord_messages *self)
jsonbcode discord_edit_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_message *self)
long discord_embed_footer_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_footer *self)
long discord_embed_thumbnail_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embed_thumbnail *self)
long discord_embeds_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_embeds *self)
size_t discord_channel_from_json(const char buf[], size_t size, struct discord_channel *self)
jsonbcode discord_edit_channel_permissions_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_channel_permissions *self)
size_t discord_thread_members_from_json(const char buf[], size_t size, struct discord_thread_members *self)
size_t discord_list_active_threads_from_json(const char buf[], size_t size, struct discord_list_active_threads *self)
size_t discord_modify_channel_to_json(char buf[], size_t size, const struct discord_modify_channel *self)
void discord_thread_member_cleanup(struct discord_thread_member *self)
jsonbcode discord_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_message *self)
size_t discord_thread_member_to_json(char buf[], size_t size, const struct discord_thread_member *self)
jsonbcode discord_bulk_delete_messages_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_bulk_delete_messages *self)
void discord_channels_cleanup(struct discord_channels *self)
size_t discord_create_message_from_json(const char buf[], size_t size, struct discord_create_message *self)
void discord_create_channel_invite_init(struct discord_create_channel_invite *self)
jsonbcode discord_modify_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_channel *self)
long discord_start_thread_without_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_start_thread_without_message *self)
void discord_group_dm_add_recipient_cleanup(struct discord_group_dm_add_recipient *self)
long discord_thread_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_thread_member *self)
size_t discord_edit_message_from_json(const char buf[], size_t size, struct discord_edit_message *self)
size_t discord_embed_thumbnail_from_json(const char buf[], size_t size, struct discord_embed_thumbnail *self)
size_t discord_list_active_threads_to_json(char buf[], size_t size, const struct discord_list_active_threads *self)
size_t discord_embeds_from_json(const char buf[], size_t size, struct discord_embeds *self)
void discord_thread_response_body_init(struct discord_thread_response_body *self)
jsonbcode discord_messages_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_messages *self)
size_t discord_bulk_delete_messages_to_json(char buf[], size_t size, const struct discord_bulk_delete_messages *self)
jsonbcode discord_create_channel_invite_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_channel_invite *self)
void discord_embed_thumbnail_cleanup(struct discord_embed_thumbnail *self)
size_t discord_edit_message_to_json(char buf[], size_t size, const struct discord_edit_message *self)
void discord_channel_init(struct discord_channel *self)
size_t discord_start_thread_with_message_from_json(const char buf[], size_t size, struct discord_start_thread_with_message *self)
jsonbcode discord_follow_news_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_follow_news_channel *self)
size_t discord_start_thread_without_message_from_json(const char buf[], size_t size, struct discord_start_thread_without_message *self)
size_t discord_bulk_delete_messages_from_json(const char buf[], size_t size, struct discord_bulk_delete_messages *self)
size_t discord_followed_channel_from_json(const char buf[], size_t size, struct discord_followed_channel *self)
long discord_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_message *self)
jsonbcode discord_channels_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_channels *self)
void discord_embeds_cleanup(struct discord_embeds *self)
void discord_embed_footer_init(struct discord_embed_footer *self)
long discord_thread_response_body_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_thread_response_body *self)
size_t discord_channels_from_json(const char buf[], size_t size, struct discord_channels *self)
void discord_embed_image_cleanup(struct discord_embed_image *self)
size_t discord_messages_to_json(char buf[], size_t size, const struct discord_messages *self)
void discord_embed_field_init(struct discord_embed_field *self)
size_t discord_embed_fields_to_json(char buf[], size_t size, const struct discord_embed_fields *self)
void discord_embed_fields_cleanup(struct discord_embed_fields *self)
long discord_bulk_delete_messages_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_bulk_delete_messages *self)
void discord_bulk_delete_messages_cleanup(struct discord_bulk_delete_messages *self)
size_t discord_edit_channel_permissions_from_json(const char buf[], size_t size, struct discord_edit_channel_permissions *self)
void discord_start_thread_with_message_init(struct discord_start_thread_with_message *self)
size_t discord_embed_provider_from_json(const char buf[], size_t size, struct discord_embed_provider *self)
long discord_start_thread_with_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_start_thread_with_message *self)
jsonbcode discord_thread_response_body_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_thread_response_body *self)
size_t discord_embed_image_to_json(char buf[], size_t size, const struct discord_embed_image *self)
discord_invite_target_types
Definition: invite.h:22
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
uint64_t u64bitmask
Bitmask primitive.
Definition: types.h:35
uint64_t u64unix_ms
Unix time in milliseconds.
Definition: types.h:22
char json_char
Raw JSON string.
Definition: types.h:44
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: channel.h:561
struct snowflakes * users
Definition: channel.h:567
struct strings * parse
Definition: channel.h:563
struct snowflakes * roles
Definition: channel.h:565
bool replied_user
Definition: channel.h:570
Definition: application.h:35
Definition: channel.h:352
char * content
Definition: channel.h:354
char * url
Definition: channel.h:375
size_t size
Definition: channel.h:371
int width
Definition: channel.h:387
char * proxy_url
Definition: channel.h:379
char * content_type
Definition: channel.h:367
u64snowflake id
Definition: channel.h:356
bool ephemeral
Definition: channel.h:390
char * filename
Definition: channel.h:359
int height
Definition: channel.h:383
char * description
Definition: channel.h:363
Definition: channel.h:393
int size
Definition: channel.h:393
struct discord_attachment * array
Definition: channel.h:394
Definition: channel.h:755
char * reason
Definition: channel.h:757
struct snowflakes * messages
Definition: channel.h:759
Definition: channel.h:551
u64snowflake id
Definition: channel.h:553
u64snowflake guild_id
Definition: channel.h:555
enum discord_channel_types type
Definition: channel.h:557
char * name
Definition: channel.h:559
Definition: channel.h:122
struct discord_thread_member * member
Definition: channel.h:180
int default_auto_archive_duration
Definition: channel.h:184
int voice_quality_mode
Definition: channel.h:171
u64snowflake owner_id
Definition: channel.h:158
struct discord_overwrites * permission_overwrites
Definition: channel.h:135
int user_limit
Definition: channel.h:148
int bitrate
Definition: channel.h:146
char * icon
Definition: channel.h:156
struct discord_thread_metadata * thread_metadata
Definition: channel.h:177
u64snowflake application_id
Definition: channel.h:160
enum discord_channel_types type
Definition: channel.h:126
u64snowflake parent_id
Definition: channel.h:164
u64snowflake guild_id
Definition: channel.h:130
int member_count
Definition: channel.h:175
int position
Definition: channel.h:133
u64unix_ms last_pin_timestamp
Definition: channel.h:167
bool nsfw
Definition: channel.h:141
char * rtc_region
Definition: channel.h:169
char * name
Definition: channel.h:137
int rate_limit_per_user
Definition: channel.h:152
u64bitmask permissions
Definition: channel.h:188
u64snowflake last_message_id
Definition: channel.h:144
char * topic
Definition: channel.h:139
u64snowflake id
Definition: channel.h:124
struct discord_users * recipients
Definition: channel.h:154
int message_count
Definition: channel.h:173
Definition: channel.h:191
struct discord_channel * array
Definition: channel.h:192
int size
Definition: channel.h:191
Definition: message_components.h:101
Definition: channel.h:779
char * reason
Definition: channel.h:781
u64snowflake target_user_id
Definition: channel.h:807
int max_age
Definition: channel.h:785
bool temporary
Definition: channel.h:793
int max_uses
Definition: channel.h:789
bool unique
Definition: channel.h:798
enum discord_invite_target_types target_type
Definition: channel.h:802
u64snowflake target_application_id
Definition: channel.h:812
Definition: channel.h:683
struct discord_attachments * attachments
Definition: channel.h:708
struct discord_message_reference * message_reference
Definition: channel.h:696
struct discord_embeds * embeds
Definition: channel.h:689
u64bitmask flags
Definition: channel.h:713
char * content
Definition: channel.h:685
bool tts
Definition: channel.h:687
struct discord_allowed_mention * allowed_mentions
Definition: channel.h:692
struct discord_components * components
Definition: channel.h:700
struct snowflakes * sticker_ids
Definition: channel.h:704
Definition: channel.h:815
char * reason
Definition: channel.h:817
Definition: channel.h:660
char * reason
Definition: channel.h:662
Definition: channel.h:750
char * reason
Definition: channel.h:752
Definition: channel.h:762
u64bitmask deny
Definition: channel.h:773
char * reason
Definition: channel.h:764
int type
Definition: channel.h:776
u64bitmask allow
Definition: channel.h:768
Definition: channel.h:727
struct discord_components * components
Definition: channel.h:743
u64bitmask flags
Definition: channel.h:735
struct discord_embeds * embeds
Definition: channel.h:731
char * content
Definition: channel.h:729
struct discord_allowed_mention * allowed_mentions
Definition: channel.h:739
struct discord_attachments * attachments
Definition: channel.h:747
Definition: channel.h:509
char * url
Definition: channel.h:514
char * icon_url
Definition: channel.h:518
char * name
Definition: channel.h:511
char * proxy_icon_url
Definition: channel.h:522
Definition: channel.h:539
char * value
Definition: channel.h:543
char * name
Definition: channel.h:541
bool Inline
Definition: channel.h:545
Definition: channel.h:548
int size
Definition: channel.h:548
struct discord_embed_field * array
Definition: channel.h:549
Definition: channel.h:481
int height
Definition: channel.h:490
int width
Definition: channel.h:494
char * proxy_url
Definition: channel.h:486
char * url
Definition: channel.h:483
Definition: channel.h:498
char * url
Definition: channel.h:505
char * name
Definition: channel.h:501
Definition: channel.h:445
char * url
Definition: channel.h:447
int width
Definition: channel.h:458
char * proxy_url
Definition: channel.h:450
int height
Definition: channel.h:454
Definition: channel.h:462
int width
Definition: channel.h:477
int height
Definition: channel.h:473
char * proxy_url
Definition: channel.h:469
char * url
Definition: channel.h:465
Definition: channel.h:397
char * description
Definition: channel.h:403
struct discord_embed_footer * footer
Definition: channel.h:416
char * title
Definition: channel.h:399
int color
Definition: channel.h:412
u64unix_ms timestamp
Definition: channel.h:408
struct discord_embed_image * image
Definition: channel.h:420
struct discord_embed_provider * provider
Definition: channel.h:431
struct discord_embed_fields * fields
Definition: channel.h:437
struct discord_embed_video * video
Definition: channel.h:428
char * type
Definition: channel.h:401
struct discord_embed_author * author
Definition: channel.h:434
struct discord_embed_thumbnail * thumbnail
Definition: channel.h:424
char * url
Definition: channel.h:405
Definition: channel.h:441
int size
Definition: channel.h:441
struct discord_embed * array
Definition: channel.h:442
Definition: emoji.h:23
Definition: channel.h:820
u64snowflake webhook_channel_id
Definition: channel.h:823
Definition: channel.h:286
u64snowflake webhook_id
Definition: channel.h:290
u64snowflake channel_id
Definition: channel.h:288
Definition: channel.h:664
u64snowflake after
Definition: channel.h:675
u64snowflake around
Definition: channel.h:667
u64snowflake before
Definition: channel.h:671
int limit
Definition: channel.h:679
Definition: channel.h:716
u64snowflake after
Definition: channel.h:719
int limit
Definition: channel.h:723
Definition: channel.h:835
char * nick
Definition: channel.h:839
char * access_token
Definition: channel.h:837
Definition: guild.h:290
Definition: channel.h:881
bool has_more
Definition: channel.h:893
struct discord_thread_members * members
Definition: channel.h:889
struct discord_channels * threads
Definition: channel.h:884
Definition: channel.h:268
enum discord_message_activity_types type
Definition: channel.h:270
char * party_id
Definition: channel.h:272
Definition: interactions.h:112
Definition: channel.h:274
u64snowflake guild_id
Definition: channel.h:280
u64snowflake message_id
Definition: channel.h:276
bool fail_if_not_exists
Definition: channel.h:283
u64snowflake channel_id
Definition: channel.h:278
Definition: channel.h:195
struct discord_embeds * embeds
Definition: channel.h:228
enum discord_message_types type
Definition: channel.h:238
u64snowflake application_id
Definition: channel.h:245
struct discord_channel * thread
Definition: channel.h:257
struct discord_channels * mention_channels
Definition: channel.h:224
struct discord_application * application
Definition: channel.h:242
u64snowflake guild_id
Definition: channel.h:201
u64snowflake id
Definition: channel.h:197
u64bitmask flags
Definition: channel.h:250
struct discord_reactions * reactions
Definition: channel.h:230
u64unix_ms edited_timestamp
Definition: channel.h:212
struct discord_message_interaction * interaction
Definition: channel.h:254
struct discord_components * components
Definition: channel.h:260
struct discord_message_activity * activity
Definition: channel.h:240
struct discord_sticker_items * sticker_items
Definition: channel.h:262
struct discord_attachments * attachments
Definition: channel.h:226
bool mention_everyone
Definition: channel.h:217
u64snowflake webhook_id
Definition: channel.h:236
struct discord_message * referenced_message
Definition: channel.h:252
struct discord_users * mentions
Definition: channel.h:220
char * content
Definition: channel.h:207
struct discord_guild_member * member
Definition: channel.h:205
struct snowflakes * mention_roles
Definition: channel.h:222
struct discord_user * author
Definition: channel.h:203
bool tts
Definition: channel.h:215
u64snowflake channel_id
Definition: channel.h:199
struct discord_message_reference * message_reference
Definition: channel.h:248
bool pinned
Definition: channel.h:234
u64unix_ms timestamp
Definition: channel.h:209
json_char * nonce
Definition: channel.h:232
Definition: channel.h:265
int size
Definition: channel.h:265
struct discord_message * array
Definition: channel.h:266
Definition: channel.h:587
int rate_limit_per_user
Definition: channel.h:616
bool invitable
Definition: channel.h:658
struct discord_overwrites * permission_overwrites
Definition: channel.h:625
u64snowflake parent_id
Definition: channel.h:629
int auto_archive_duration
Definition: channel.h:651
int position
Definition: channel.h:602
int default_auto_archive_duration
Definition: channel.h:643
char * name
Definition: channel.h:591
char * reason
Definition: channel.h:589
bool nsfw
Definition: channel.h:610
bool archived
Definition: channel.h:647
char * rtc_region
Definition: channel.h:633
int user_limit
Definition: channel.h:621
char * topic
Definition: channel.h:606
int video_quality_mode
Definition: channel.h:637
enum discord_channel_types type
Definition: channel.h:598
bool locked
Definition: channel.h:655
Definition: channel.h:303
u64bitmask allow
Definition: channel.h:309
u64snowflake id
Definition: channel.h:305
u64bitmask deny
Definition: channel.h:311
int type
Definition: channel.h:307
Definition: channel.h:313
int size
Definition: channel.h:313
struct discord_overwrite * array
Definition: channel.h:314
Definition: channel.h:826
char * reason
Definition: channel.h:828
Definition: channel.h:292
bool me
Definition: channel.h:296
int count
Definition: channel.h:294
struct discord_emoji * emoji
Definition: channel.h:298
Definition: channel.h:300
int size
Definition: channel.h:300
struct discord_reaction * array
Definition: channel.h:301
Definition: channel.h:842
char * name
Definition: channel.h:846
char * reason
Definition: channel.h:844
int rate_limit_per_user
Definition: channel.h:855
int auto_archive_duration
Definition: channel.h:850
Definition: channel.h:859
enum discord_channel_types type
Definition: channel.h:870
char * name
Definition: channel.h:863
int auto_archive_duration
Definition: channel.h:867
char * reason
Definition: channel.h:861
int rate_limit_per_user
Definition: channel.h:877
bool invitable
Definition: channel.h:873
Definition: sticker.h:84
Definition: channel.h:336
u64snowflake guild_id
Definition: channel.h:346
u64bitmask flags
Definition: channel.h:344
u64unix_ms join_timestamp
Definition: channel.h:342
u64snowflake user_id
Definition: channel.h:340
u64snowflake id
Definition: channel.h:338
Definition: channel.h:349
int size
Definition: channel.h:349
struct discord_thread_member * array
Definition: channel.h:350
Definition: channel.h:316
u64unix_ms archive_timestamp
Definition: channel.h:324
int auto_archive_duration
Definition: channel.h:321
bool archived
Definition: channel.h:318
bool locked
Definition: channel.h:327
bool invitable
Definition: channel.h:330
u64unix_ms create_timestamp
Definition: channel.h:333
Definition: channel.h:573
struct discord_thread_members * members
Definition: channel.h:578
struct discord_channels * threads
Definition: channel.h:575
bool has_more
Definition: channel.h:581
Definition: channel.h:830
char * reason
Definition: channel.h:832
Definition: user.h:69
Definition: user.h:104
Handle for building a JSON string.
Definition: json-build.h:61
Definition: custom.h:28
Definition: custom.h:20