Concord - C Discord API library
A Discord API wrapper library written in C
guild.h
Go to the documentation of this file.
1
6#ifndef API_GUILD_H
7#define API_GUILD_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 * Guild Datatypes
21 * **************************************************************************/
26#define DISCORD_SYSTEM_SUPPRESS_JOIN_NOTIFICATIONS 1 << 0
28#define DISCORD_SYSTEM_SUPPRESS_PREMIUM_NOTIFICATIONS 1 << 1
30#define DISCORD_SYSTEM_SUPPRESS_GUILD_REMINDER_NOTIFICATIONS 1 << 2
32#define DISCORD_SYSTEM_SUPPRESS_JOIN_NOTIFICATION_REPLIES 1 << 3
40};
48};
54};
66};
72};
82};
86};
93 char * name;
95 char * icon;
98 char * icon_hash;
99
101 char * splash;
105 bool owner;
111
148
150 bool large;
158
162
166
171
176
181
185
191 char * banner;
205
209
213
218
224
228
232
235};
237struct discord_guilds { int size;
238 struct discord_guild *array; int realsize; };
245 char * name;
247 char * icon;
249 char * splash;
264};
268 char * reason;
273};
279 char * name;
288};
294
297 char * nick;
298
301 char * avatar;
302
310
312 bool deaf;
314 bool muted;
322
329};
332 struct discord_guild_member *array; int realsize; };
339 char * name;
341 char * type;
370};
372 struct discord_integration *array; int realsize; };
376 char * id;
378 char * name;
379};
384 char * name;
386 char * icon;
390 char * summary;
394
395};
399 char * reason;
402};
404struct discord_bans { int size;
405 struct discord_ban *array; int realsize; };
414
415};
426};
428 struct discord_welcome_screen_channel *array; int realsize; };
433};
434/*****************************************************************************
435 * Guild REST parameters
436 * **************************************************************************/
440 char * reason;
442 char * name;
445 char * region;
446
450 char * icon;
451
461
465
469
477};
481 char * reason;
483 char * name;
496 char * icon;
501 char * splash;
507 char * banner;
528};
532 char * reason;
534 char * name;
538 char * topic;
542
546
558
560 bool nsfw;
561};
568
575
576};
588};
591 int limit;
594};
597 char * query;
599 int limit;
600};
607 char * nick;
611 bool mute;
613 bool deaf;
614};
618 char * reason;
621 char * nick;
622
626
630 bool mute;
631
635 bool deaf;
636
640
652
653};
657 char * reason;
660 char * nick;
661
662};
666 char * reason;
669 char * nick;
670
671};
674 char * reason;
675};
678 char * reason;
679};
682 char * reason;
683};
687 char * reason;
691
692};
695 char * reason;
696};
700 char * reason;
702 char * name;
706 int color;
708 bool hoist;
710 char * icon;
716};
723
724};
733 char * reason;
735 char * name;
739 int color;
741 bool hoist;
743 char * icon;
749};
752 char * reason;
753};
757 int days;
758
761};
765 char * reason;
768 int days;
769
774};
777 char * reason;
780 int days;
781
784};
789 char * style;
790
791};
795 char * reason;
803
804};
811 /* TODO: should be able to write `null` */
815
816};
823};
824#include <stddef.h>
825#include <stdbool.h>
826#define JSMN_STRICT
827#define JSMN_HEADER
828#include "jsmn.h"
829#include "jsmn-find.h"
830#define JSONB_HEADER
831#include "json-build.h"
832#include <inttypes.h>
833#include "carray.h"
834#include "cog-utils.h"
835#include "types.h"
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
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
964
965
967
968
969
970
971
972
973
974
975
976
977
978
980
981
982
983
985
986
987
988
989
990
991
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1017
1018
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054void discord_ban_init(struct discord_ban *self); void discord_ban_cleanup(struct discord_ban *self);
1055
1056
1057
1059
1060
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1077
1078
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
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
1152
1153
1154
1156
1157
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1171
1172
1173
1174
1175
1176
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1199
1200
1201
1202
1203
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1220
1221
1222
1223
1224
1225
1226
1227
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1245
1246
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1287
1288
1289
1290
1291
1292
1293
1295
1296
1297
1298
1299
1300
1302
1303
1304
1305
1306
1307
1308
1309long discord_guild_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild *self); size_t discord_guild_from_json(const char buf[], size_t size, struct discord_guild *self);
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
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396long discord_guilds_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guilds *self); size_t discord_guilds_from_json(const char buf[], size_t size, struct discord_guilds *self);
1397
1398
1399long discord_guild_preview_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_preview *self); size_t discord_guild_preview_from_json(const char buf[], size_t size, struct discord_guild_preview *self);
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412long discord_guild_widget_settings_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_widget_settings *self); size_t discord_guild_widget_settings_from_json(const char buf[], size_t size, struct discord_guild_widget_settings *self);
1413
1414
1415
1416long discord_guild_widget_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_widget *self); size_t discord_guild_widget_from_json(const char buf[], size_t size, struct discord_guild_widget *self);
1417
1418
1419
1420
1421
1422
1423
1424long discord_guild_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_member *self); size_t discord_guild_member_from_json(const char buf[], size_t size, struct discord_guild_member *self);
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448long discord_guild_members_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_members *self); size_t discord_guild_members_from_json(const char buf[], size_t size, struct discord_guild_members *self);
1449
1450
1451long discord_integration_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_integration *self); size_t discord_integration_from_json(const char buf[], size_t size, struct discord_integration *self);
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469long discord_integrations_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_integrations *self); size_t discord_integrations_from_json(const char buf[], size_t size, struct discord_integrations *self);
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486long discord_ban_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_ban *self); size_t discord_ban_from_json(const char buf[], size_t size, struct discord_ban *self);
1487
1488
1489
1490long discord_bans_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_bans *self); size_t discord_bans_from_json(const char buf[], size_t size, struct discord_bans *self);
1491
1492
1493long discord_welcome_screen_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_welcome_screen *self); size_t discord_welcome_screen_from_json(const char buf[], size_t size, struct discord_welcome_screen *self);
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508long discord_prune_count_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_prune_count *self); size_t discord_prune_count_from_json(const char buf[], size_t size, struct discord_prune_count *self);
1509
1510
1511long discord_create_guild_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild *self); size_t discord_create_guild_from_json(const char buf[], size_t size, struct discord_create_guild *self);
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535long discord_modify_guild_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild *self); size_t discord_modify_guild_from_json(const char buf[], size_t size, struct discord_modify_guild *self);
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556long discord_create_guild_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_channel *self); size_t discord_create_guild_channel_from_json(const char buf[], size_t size, struct discord_create_guild_channel *self);
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1585
1586
1587long discord_list_active_guild_threads_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_list_active_guild_threads *self); size_t discord_list_active_guild_threads_from_json(const char buf[], size_t size, struct discord_list_active_guild_threads *self);
1588
1589
1590
1591long discord_add_guild_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_add_guild_member *self); size_t discord_add_guild_member_from_json(const char buf[], size_t size, struct discord_add_guild_member *self);
1592
1593
1594
1595
1596
1597
1598long discord_modify_guild_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_member *self); size_t discord_modify_guild_member_from_json(const char buf[], size_t size, struct discord_modify_guild_member *self);
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618long discord_modify_current_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_current_member *self); size_t discord_modify_current_member_from_json(const char buf[], size_t size, struct discord_modify_current_member *self);
1619
1620
1621
1622
1623long discord_modify_current_user_nick_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_current_user_nick *self); size_t discord_modify_current_user_nick_from_json(const char buf[], size_t size, struct discord_modify_current_user_nick *self);
1624
1625
1626
1627
1628long discord_create_guild_ban_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_ban *self); size_t discord_create_guild_ban_from_json(const char buf[], size_t size, struct discord_create_guild_ban *self);
1629
1630
1631
1632
1633long discord_create_guild_role_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_role *self); size_t discord_create_guild_role_from_json(const char buf[], size_t size, struct discord_create_guild_role *self);
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1649
1650
1651long discord_modify_guild_role_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_role *self); size_t discord_modify_guild_role_from_json(const char buf[], size_t size, struct discord_modify_guild_role *self);
1652
1653
1654
1655
1656
1657
1658
1659
1660long discord_begin_guild_prune_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_begin_guild_prune *self); size_t discord_begin_guild_prune_from_json(const char buf[], size_t size, struct discord_begin_guild_prune *self);
1661
1662
1663
1664
1665
1666
1668
1669
1670
1671
1672
1673
1675
1676
1677
1678
1679
1680
1681long discord_modify_user_voice_state_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_user_voice_state *self); size_t discord_modify_user_voice_state_from_json(const char buf[], size_t size, struct discord_modify_user_voice_state *self);
1682
1683
1684
1685
1686
1687
1688
1689jsonbcode discord_guild_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild *self); size_t discord_guild_to_json(char buf[], size_t size, const struct discord_guild *self);
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
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
1773
1774
1775
1776jsonbcode discord_guilds_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guilds *self); size_t discord_guilds_to_json(char buf[], size_t size, const struct discord_guilds *self);
1777
1778
1779jsonbcode discord_guild_preview_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_preview *self); size_t discord_guild_preview_to_json(char buf[], size_t size, const struct discord_guild_preview *self);
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792jsonbcode discord_guild_widget_settings_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_widget_settings *self); size_t discord_guild_widget_settings_to_json(char buf[], size_t size, const struct discord_guild_widget_settings *self);
1793
1794
1795
1796jsonbcode discord_guild_widget_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_widget *self); size_t discord_guild_widget_to_json(char buf[], size_t size, const struct discord_guild_widget *self);
1797
1798
1799
1800
1801
1802
1803
1804jsonbcode discord_guild_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_member *self); size_t discord_guild_member_to_json(char buf[], size_t size, const struct discord_guild_member *self);
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828jsonbcode discord_guild_members_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_members *self); size_t discord_guild_members_to_json(char buf[], size_t size, const struct discord_guild_members *self);
1829
1830
1831jsonbcode discord_integration_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_integration *self); size_t discord_integration_to_json(char buf[], size_t size, const struct discord_integration *self);
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849jsonbcode discord_integrations_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_integrations *self); size_t discord_integrations_to_json(char buf[], size_t size, const struct discord_integrations *self);
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866jsonbcode discord_ban_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_ban *self); size_t discord_ban_to_json(char buf[], size_t size, const struct discord_ban *self);
1867
1868
1869
1870jsonbcode discord_bans_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_bans *self); size_t discord_bans_to_json(char buf[], size_t size, const struct discord_bans *self);
1871
1872
1873jsonbcode discord_welcome_screen_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_welcome_screen *self); size_t discord_welcome_screen_to_json(char buf[], size_t size, const struct discord_welcome_screen *self);
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888jsonbcode discord_prune_count_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_prune_count *self); size_t discord_prune_count_to_json(char buf[], size_t size, const struct discord_prune_count *self);
1889
1890
1891jsonbcode discord_create_guild_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild *self); size_t discord_create_guild_to_json(char buf[], size_t size, const struct discord_create_guild *self);
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915jsonbcode discord_modify_guild_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild *self); size_t discord_modify_guild_to_json(char buf[], size_t size, const struct discord_modify_guild *self);
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936jsonbcode discord_create_guild_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_channel *self); size_t discord_create_guild_channel_to_json(char buf[], size_t size, const struct discord_create_guild_channel *self);
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1965
1966
1968
1969
1970
1971jsonbcode discord_add_guild_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_add_guild_member *self); size_t discord_add_guild_member_to_json(char buf[], size_t size, const struct discord_add_guild_member *self);
1972
1973
1974
1975
1976
1977
1978jsonbcode discord_modify_guild_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_member *self); size_t discord_modify_guild_member_to_json(char buf[], size_t size, const struct discord_modify_guild_member *self);
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998jsonbcode discord_modify_current_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_current_member *self); size_t discord_modify_current_member_to_json(char buf[], size_t size, const struct discord_modify_current_member *self);
1999
2000
2001
2002
2004
2005
2006
2007
2008jsonbcode discord_create_guild_ban_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_ban *self); size_t discord_create_guild_ban_to_json(char buf[], size_t size, const struct discord_create_guild_ban *self);
2009
2010
2011
2012
2013jsonbcode discord_create_guild_role_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_role *self); size_t discord_create_guild_role_to_json(char buf[], size_t size, const struct discord_create_guild_role *self);
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2029
2030
2031jsonbcode discord_modify_guild_role_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_role *self); size_t discord_modify_guild_role_to_json(char buf[], size_t size, const struct discord_modify_guild_role *self);
2032
2033
2034
2035
2036
2037
2038
2039
2040jsonbcode discord_begin_guild_prune_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_begin_guild_prune *self); size_t discord_begin_guild_prune_to_json(char buf[], size_t size, const struct discord_begin_guild_prune *self);
2041
2042
2043
2044
2045
2046
2048
2049
2050
2051
2052
2053
2055
2056
2057
2058
2059
2060
2061jsonbcode discord_modify_user_voice_state_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_user_voice_state *self); size_t discord_modify_user_voice_state_to_json(char buf[], size_t size, const struct discord_modify_user_voice_state *self);
2062
2063
2064
2065#endif /* API_GUILD_H */
discord_channel_types
Definition: channel.h:48
size_t discord_guild_to_json(char buf[], size_t size, const struct discord_guild *self)
discord_premium_tier
Definition: guild.h:73
@ DISCORD_PREMIUM_TIER_NONE
Definition: guild.h:75
@ DISCORD_PREMIUM_TIER_1
Definition: guild.h:77
@ DISCORD_PREMIUM_TIER_2
Definition: guild.h:79
@ DISCORD_PREMIUM_TIER_3
Definition: guild.h:81
void discord_modify_guild_welcome_screen_cleanup(struct discord_modify_guild_welcome_screen *self)
void discord_ban_cleanup(struct discord_ban *self)
void discord_prune_count_cleanup(struct discord_prune_count *self)
size_t discord_modify_guild_member_to_json(char buf[], size_t size, const struct discord_modify_guild_member *self)
void discord_guilds_cleanup(struct discord_guilds *self)
long discord_bans_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_bans *self)
void discord_modify_guild_welcome_screen_init(struct discord_modify_guild_welcome_screen *self)
jsonbcode discord_guild_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_member *self)
size_t discord_guild_widget_to_json(char buf[], size_t size, const struct discord_guild_widget *self)
long discord_guild_widget_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_widget *self)
long discord_create_guild_ban_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_ban *self)
jsonbcode discord_modify_current_user_voice_state_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_current_user_voice_state *self)
discord_message_notification_level
Definition: guild.h:34
@ DISCORD_MESSAGE_NOTIFICATION_ONLY_MESSAGES
Definition: guild.h:39
@ DISCORD_MESSAGE_NOTIFICATION_ALL_MESSAGES
Definition: guild.h:36
jsonbcode discord_integrations_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_integrations *self)
long discord_modify_guild_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild *self)
jsonbcode discord_welcome_screen_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_welcome_screen *self)
void discord_guild_init(struct discord_guild *self)
size_t discord_welcome_screen_from_json(const char buf[], size_t size, struct discord_welcome_screen *self)
jsonbcode discord_modify_guild_role_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_role *self)
long discord_modify_guild_channel_positions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_channel_positions *self)
void discord_list_active_guild_threads_init(struct discord_list_active_guild_threads *self)
size_t discord_modify_current_user_voice_state_from_json(const char buf[], size_t size, struct discord_modify_current_user_voice_state *self)
jsonbcode discord_create_guild_ban_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_ban *self)
size_t discord_create_guild_channel_to_json(char buf[], size_t size, const struct discord_create_guild_channel *self)
jsonbcode discord_modify_guild_role_positions_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_role_positions *self)
void discord_modify_guild_member_cleanup(struct discord_modify_guild_member *self)
void discord_create_guild_channel_init(struct discord_create_guild_channel *self)
jsonbcode discord_modify_guild_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_member *self)
size_t discord_welcome_screen_to_json(char buf[], size_t size, const struct discord_welcome_screen *self)
long discord_modify_current_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_current_member *self)
void discord_create_guild_ban_cleanup(struct discord_create_guild_ban *self)
jsonbcode discord_create_guild_channel_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_channel *self)
jsonbcode discord_add_guild_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_add_guild_member *self)
void discord_modify_current_member_cleanup(struct discord_modify_current_member *self)
long discord_guilds_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guilds *self)
size_t discord_modify_guild_role_to_json(char buf[], size_t size, const struct discord_modify_guild_role *self)
size_t discord_guild_widget_settings_to_json(char buf[], size_t size, const struct discord_guild_widget_settings *self)
long discord_modify_current_user_voice_state_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_current_user_voice_state *self)
size_t discord_create_guild_role_from_json(const char buf[], size_t size, struct discord_create_guild_role *self)
jsonbcode discord_guilds_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guilds *self)
size_t discord_modify_guild_welcome_screen_from_json(const char buf[], size_t size, struct discord_modify_guild_welcome_screen *self)
long discord_welcome_screen_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_welcome_screen *self)
void discord_create_guild_ban_init(struct discord_create_guild_ban *self)
discord_verification_level
Definition: guild.h:55
@ DISCORD_VERIFICATION_LOW
Definition: guild.h:59
@ DISCORD_VERIFICATION_VERY_HIGH
Definition: guild.h:65
@ DISCORD_VERIFICATION_NONE
Definition: guild.h:57
@ DISCORD_VERIFICATION_HIGH
Definition: guild.h:63
@ DISCORD_VERIFICATION_MEDIUM
Definition: guild.h:61
size_t discord_integrations_from_json(const char buf[], size_t size, struct discord_integrations *self)
void discord_welcome_screen_init(struct discord_welcome_screen *self)
size_t discord_guild_widget_settings_from_json(const char buf[], size_t size, struct discord_guild_widget_settings *self)
size_t discord_modify_current_user_voice_state_to_json(char buf[], size_t size, const struct discord_modify_current_user_voice_state *self)
size_t discord_guild_member_to_json(char buf[], size_t size, const struct discord_guild_member *self)
long discord_prune_count_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_prune_count *self)
long discord_integrations_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_integrations *self)
void discord_prune_count_init(struct discord_prune_count *self)
jsonbcode discord_modify_current_member_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_current_member *self)
size_t discord_list_active_guild_threads_from_json(const char buf[], size_t size, struct discord_list_active_guild_threads *self)
size_t discord_modify_current_user_nick_to_json(char buf[], size_t size, const struct discord_modify_current_user_nick *self)
void discord_guild_cleanup(struct discord_guild *self)
long discord_begin_guild_prune_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_begin_guild_prune *self)
long discord_create_guild_role_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_role *self)
void discord_create_guild_channel_cleanup(struct discord_create_guild_channel *self)
jsonbcode discord_modify_user_voice_state_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_user_voice_state *self)
long discord_create_guild_channel_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_channel *self)
void discord_modify_user_voice_state_init(struct discord_modify_user_voice_state *self)
void discord_ban_init(struct discord_ban *self)
size_t discord_create_guild_role_to_json(char buf[], size_t size, const struct discord_create_guild_role *self)
size_t discord_integration_to_json(char buf[], size_t size, const struct discord_integration *self)
size_t discord_guilds_from_json(const char buf[], size_t size, struct discord_guilds *self)
size_t discord_create_guild_ban_to_json(char buf[], size_t size, const struct discord_create_guild_ban *self)
jsonbcode discord_list_active_guild_threads_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_list_active_guild_threads *self)
long discord_guild_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_member *self)
void discord_guild_widget_cleanup(struct discord_guild_widget *self)
void discord_guild_members_cleanup(struct discord_guild_members *self)
discord_mfa_level
Definition: guild.h:49
@ DISCORD_MFA_NONE
Definition: guild.h:51
@ DISCORD_MFA_ELEVATED
Definition: guild.h:53
size_t discord_guild_preview_to_json(char buf[], size_t size, const struct discord_guild_preview *self)
size_t discord_create_guild_to_json(char buf[], size_t size, const struct discord_create_guild *self)
size_t discord_modify_current_user_nick_from_json(const char buf[], size_t size, struct discord_modify_current_user_nick *self)
size_t discord_guild_member_from_json(const char buf[], size_t size, struct discord_guild_member *self)
long discord_guild_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild *self)
size_t discord_ban_from_json(const char buf[], size_t size, struct discord_ban *self)
void discord_modify_guild_init(struct discord_modify_guild *self)
jsonbcode discord_create_guild_role_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_role *self)
size_t discord_modify_guild_channel_positions_to_json(char buf[], size_t size, const struct discord_modify_guild_channel_positions *self)
void discord_modify_guild_member_init(struct discord_modify_guild_member *self)
void discord_create_guild_role_cleanup(struct discord_create_guild_role *self)
discord_explicit_content_filter_level
Definition: guild.h:41
@ DISCORD_EXPLICIT_CONTENT_DISABLED
Definition: guild.h:43
@ DISCORD_EXPLICIT_CONTENT_MEMBERS_WITHOUT_ROLES
Definition: guild.h:45
@ DISCORD_MESSAGE_NOTIFICATION_ALL_MEMBERS
Definition: guild.h:47
jsonbcode discord_modify_guild_channel_positions_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_channel_positions *self)
size_t discord_guild_from_json(const char buf[], size_t size, struct discord_guild *self)
size_t discord_create_guild_ban_from_json(const char buf[], size_t size, struct discord_create_guild_ban *self)
void discord_integration_cleanup(struct discord_integration *self)
size_t discord_modify_guild_to_json(char buf[], size_t size, const struct discord_modify_guild *self)
size_t discord_modify_guild_welcome_screen_to_json(char buf[], size_t size, const struct discord_modify_guild_welcome_screen *self)
size_t discord_modify_guild_member_from_json(const char buf[], size_t size, struct discord_modify_guild_member *self)
size_t discord_ban_to_json(char buf[], size_t size, const struct discord_ban *self)
long discord_add_guild_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_add_guild_member *self)
long discord_modify_guild_welcome_screen_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_welcome_screen *self)
void discord_welcome_screen_cleanup(struct discord_welcome_screen *self)
size_t discord_prune_count_to_json(char buf[], size_t size, const struct discord_prune_count *self)
void discord_add_guild_member_init(struct discord_add_guild_member *self)
size_t discord_guilds_to_json(char buf[], size_t size, const struct discord_guilds *self)
size_t discord_prune_count_from_json(const char buf[], size_t size, struct discord_prune_count *self)
long discord_guild_preview_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_preview *self)
size_t discord_guild_widget_from_json(const char buf[], size_t size, struct discord_guild_widget *self)
void discord_create_guild_cleanup(struct discord_create_guild *self)
jsonbcode discord_create_guild_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild *self)
void discord_modify_current_user_voice_state_cleanup(struct discord_modify_current_user_voice_state *self)
size_t discord_modify_user_voice_state_to_json(char buf[], size_t size, const struct discord_modify_user_voice_state *self)
void discord_list_active_guild_threads_cleanup(struct discord_list_active_guild_threads *self)
size_t discord_modify_current_member_from_json(const char buf[], size_t size, struct discord_modify_current_member *self)
long discord_ban_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_ban *self)
long discord_create_guild_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild *self)
void discord_begin_guild_prune_cleanup(struct discord_begin_guild_prune *self)
void discord_create_guild_init(struct discord_create_guild *self)
void discord_modify_guild_role_init(struct discord_modify_guild_role *self)
jsonbcode discord_guild_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild *self)
void discord_guild_member_init(struct discord_guild_member *self)
long discord_modify_guild_role_positions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_role_positions *self)
size_t discord_begin_guild_prune_from_json(const char buf[], size_t size, struct discord_begin_guild_prune *self)
size_t discord_list_active_guild_threads_to_json(char buf[], size_t size, const struct discord_list_active_guild_threads *self)
size_t discord_modify_user_voice_state_from_json(const char buf[], size_t size, struct discord_modify_user_voice_state *self)
discord_guild_nsfw_level
Definition: guild.h:67
@ DISCORD_GUILD_NSFW_DEFAULT
Definition: guild.h:68
@ DISCORD_GUILD_NSFW_EXPLICIT
Definition: guild.h:69
@ DISCORD_GUILD_NSFW_SAFE
Definition: guild.h:70
@ DISCORD_GUILD_NSFW_AGE_RESTRICTED
Definition: guild.h:71
jsonbcode discord_integration_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_integration *self)
jsonbcode discord_ban_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_ban *self)
long discord_modify_user_voice_state_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_user_voice_state *self)
jsonbcode discord_guild_widget_settings_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_widget_settings *self)
size_t discord_modify_guild_from_json(const char buf[], size_t size, struct discord_modify_guild *self)
size_t discord_guild_members_to_json(char buf[], size_t size, const struct discord_guild_members *self)
void discord_modify_guild_cleanup(struct discord_modify_guild *self)
void discord_modify_guild_role_cleanup(struct discord_modify_guild_role *self)
jsonbcode discord_modify_guild_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild *self)
long discord_integration_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_integration *self)
size_t discord_integration_from_json(const char buf[], size_t size, struct discord_integration *self)
void discord_guild_preview_init(struct discord_guild_preview *self)
size_t discord_bans_to_json(char buf[], size_t size, const struct discord_bans *self)
jsonbcode discord_modify_current_user_nick_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_current_user_nick *self)
void discord_modify_guild_role_positions_cleanup(struct discord_modify_guild_role_positions *self)
jsonbcode discord_modify_guild_welcome_screen_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_guild_welcome_screen *self)
jsonbcode discord_prune_count_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_prune_count *self)
void discord_create_guild_role_init(struct discord_create_guild_role *self)
void discord_modify_current_member_init(struct discord_modify_current_member *self)
void discord_modify_current_user_nick_cleanup(struct discord_modify_current_user_nick *self)
long discord_list_active_guild_threads_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_list_active_guild_threads *self)
size_t discord_guild_members_from_json(const char buf[], size_t size, struct discord_guild_members *self)
jsonbcode discord_bans_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_bans *self)
void discord_bans_cleanup(struct discord_bans *self)
size_t discord_create_guild_channel_from_json(const char buf[], size_t size, struct discord_create_guild_channel *self)
long discord_modify_current_user_nick_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_current_user_nick *self)
void discord_guild_member_cleanup(struct discord_guild_member *self)
void discord_integrations_cleanup(struct discord_integrations *self)
void discord_modify_current_user_voice_state_init(struct discord_modify_current_user_voice_state *self)
void discord_modify_user_voice_state_cleanup(struct discord_modify_user_voice_state *self)
void discord_guild_widget_init(struct discord_guild_widget *self)
size_t discord_add_guild_member_to_json(char buf[], size_t size, const struct discord_add_guild_member *self)
void discord_modify_guild_channel_positions_cleanup(struct discord_modify_guild_channel_positions *self)
size_t discord_modify_guild_channel_positions_from_json(const char buf[], size_t size, struct discord_modify_guild_channel_positions *self)
long discord_guild_members_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_members *self)
void discord_guild_widget_settings_cleanup(struct discord_guild_widget_settings *self)
size_t discord_modify_guild_role_positions_to_json(char buf[], size_t size, const struct discord_modify_guild_role_positions *self)
size_t discord_add_guild_member_from_json(const char buf[], size_t size, struct discord_add_guild_member *self)
void discord_add_guild_member_cleanup(struct discord_add_guild_member *self)
long discord_modify_guild_role_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_role *self)
jsonbcode discord_guild_preview_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_preview *self)
void discord_begin_guild_prune_init(struct discord_begin_guild_prune *self)
void discord_modify_current_user_nick_init(struct discord_modify_current_user_nick *self)
size_t discord_guild_preview_from_json(const char buf[], size_t size, struct discord_guild_preview *self)
jsonbcode discord_guild_members_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_members *self)
void discord_integration_init(struct discord_integration *self)
size_t discord_begin_guild_prune_to_json(char buf[], size_t size, const struct discord_begin_guild_prune *self)
size_t discord_modify_guild_role_from_json(const char buf[], size_t size, struct discord_modify_guild_role *self)
size_t discord_modify_current_member_to_json(char buf[], size_t size, const struct discord_modify_current_member *self)
size_t discord_modify_guild_role_positions_from_json(const char buf[], size_t size, struct discord_modify_guild_role_positions *self)
size_t discord_create_guild_from_json(const char buf[], size_t size, struct discord_create_guild *self)
size_t discord_integrations_to_json(char buf[], size_t size, const struct discord_integrations *self)
long discord_modify_guild_member_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_guild_member *self)
size_t discord_bans_from_json(const char buf[], size_t size, struct discord_bans *self)
void discord_guild_preview_cleanup(struct discord_guild_preview *self)
jsonbcode discord_guild_widget_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_widget *self)
jsonbcode discord_begin_guild_prune_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_begin_guild_prune *self)
void discord_guild_widget_settings_init(struct discord_guild_widget_settings *self)
discord_integration_expire_behaviors
Definition: guild.h:83
@ DISCORD_INTEGRATION_REMOVE_ROLE
Definition: guild.h:84
@ DISCORD_INTEGRATION_KICK
Definition: guild.h:85
long discord_guild_widget_settings_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_widget_settings *self)
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
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: guild.h:672
char * reason
Definition: guild.h:674
Definition: guild.h:602
char * nick
Definition: guild.h:607
char * access_token
Definition: guild.h:605
bool mute
Definition: guild.h:611
bool deaf
Definition: guild.h:613
struct snowflakes * roles
Definition: guild.h:609
Definition: guild.h:397
struct discord_user * user
Definition: guild.h:401
char * reason
Definition: guild.h:399
Definition: guild.h:404
int size
Definition: guild.h:404
struct discord_ban * array
Definition: guild.h:405
Definition: guild.h:763
int days
Definition: guild.h:768
bool compute_prune_count
Definition: guild.h:771
char * reason
Definition: guild.h:765
struct snowflakes * include_roles
Definition: guild.h:773
Definition: channel.h:191
Definition: guild.h:685
char * reason
Definition: guild.h:687
int delete_message_days
Definition: guild.h:690
Definition: guild.h:530
enum discord_channel_types type
Definition: guild.h:536
int rate_limit_per_user
Definition: guild.h:550
char * topic
Definition: guild.h:538
int user_limit
Definition: guild.h:545
char * reason
Definition: guild.h:532
u64snowflake parent_id
Definition: guild.h:557
int position
Definition: guild.h:552
bool nsfw
Definition: guild.h:560
int bitrate
Definition: guild.h:541
char * name
Definition: guild.h:534
struct discord_overwrites * permission_overwrites
Definition: guild.h:554
Definition: guild.h:698
bool mentionable
Definition: guild.h:715
char * name
Definition: guild.h:702
int color
Definition: guild.h:706
u64bitmask permissions
Definition: guild.h:704
char * reason
Definition: guild.h:700
char * icon
Definition: guild.h:710
char * unicode_emoji
Definition: guild.h:713
bool hoist
Definition: guild.h:708
Definition: guild.h:438
struct discord_channels * channels
Definition: guild.h:464
char * icon
Definition: guild.h:450
enum discord_verification_level verification_level
Definition: guild.h:453
enum discord_message_notification_level default_message_notifications
Definition: guild.h:455
struct discord_roles * roles
Definition: guild.h:460
u64snowflake afk_channel_id
Definition: guild.h:468
u64bitmask system_channel_flags
Definition: guild.h:476
char * region
Definition: guild.h:445
char * name
Definition: guild.h:442
int afk_timeout
Definition: guild.h:471
enum discord_explicit_content_filter_level explicit_content_filter
Definition: guild.h:457
char * reason
Definition: guild.h:440
u64snowflake system_channel_id
Definition: guild.h:474
Definition: guild.h:775
struct snowflakes * include_roles
Definition: guild.h:783
int days
Definition: guild.h:780
char * reason
Definition: guild.h:777
Definition: guild.h:750
char * reason
Definition: guild.h:752
Definition: emoji.h:47
Definition: guild.h:754
int days
Definition: guild.h:757
struct snowflakes * include_roles
Definition: guild.h:760
Definition: guild.h:785
char * style
Definition: guild.h:789
Definition: guild.h:290
struct discord_user * user
Definition: guild.h:293
struct snowflakes * roles
Definition: guild.h:304
u64unix_ms joined_at
Definition: guild.h:306
bool deaf
Definition: guild.h:312
bool muted
Definition: guild.h:314
char * nick
Definition: guild.h:297
char * avatar
Definition: guild.h:301
u64snowflake guild_id
Definition: guild.h:328
u64unix_ms communication_disabled_until
Definition: guild.h:326
u64unix_ms premium_since
Definition: guild.h:309
u64bitmask permissions
Definition: guild.h:321
bool pending
Definition: guild.h:317
Definition: guild.h:331
struct discord_guild_member * array
Definition: guild.h:332
int size
Definition: guild.h:331
Definition: guild.h:241
struct discord_stickers * stickers
Definition: guild.h:263
char * icon
Definition: guild.h:247
int approximate_presence_count
Definition: guild.h:259
char * name
Definition: guild.h:245
struct discord_emojis * emojis
Definition: guild.h:253
char * splash
Definition: guild.h:249
int approximate_member_count
Definition: guild.h:257
struct strings * features
Definition: guild.h:255
u64snowflake id
Definition: guild.h:243
char * description
Definition: guild.h:261
char * discovery_splash
Definition: guild.h:251
Definition: guild_scheduled_event.h:91
Definition: guild.h:266
bool enabled
Definition: guild.h:270
char * reason
Definition: guild.h:268
u64snowflake channel_id
Definition: guild.h:272
Definition: guild.h:275
char * instant_invite
Definition: guild.h:281
u64snowflake id
Definition: guild.h:277
struct discord_users * members
Definition: guild.h:285
struct discord_channels * channels
Definition: guild.h:283
char * name
Definition: guild.h:279
int presence_count
Definition: guild.h:287
Definition: guild.h:88
struct discord_guild_scheduled_events * guild_scheduled_events
Definition: guild.h:231
u64bitmask permissions
Definition: guild.h:110
enum discord_message_notification_level default_message_notifications
Definition: guild.h:124
enum discord_verification_level verification_level
Definition: guild.h:122
int premium_subscription_count
Definition: guild.h:195
struct discord_channels * channels
Definition: guild.h:165
u64snowflake rules_channel_id
Definition: guild.h:144
int approximate_presence_count
Definition: guild.h:212
struct discord_stage_instances * stage_instances
Definition: guild.h:223
bool large
Definition: guild.h:150
struct strings * features
Definition: guild.h:132
char * name
Definition: guild.h:93
char * icon_hash
Definition: guild.h:98
u64bitmask system_channel_flags
Definition: guild.h:141
char * banner
Definition: guild.h:191
u64snowflake afk_channel_id
Definition: guild.h:113
int max_members
Definition: guild.h:184
struct discord_presence_updates * presences
Definition: guild.h:175
u64unix_ms joined_at
Definition: guild.h:147
enum discord_premium_tier premium_tier
Definition: guild.h:193
int max_video_channel_users
Definition: guild.h:204
char * discovery_splash
Definition: guild.h:103
bool widget_enabled
Definition: guild.h:117
char * preferred_locale
Definition: guild.h:198
struct discord_guild_members * members
Definition: guild.h:161
struct discord_voice_states * voice_states
Definition: guild.h:157
char * vanity_url_code
Definition: guild.h:187
char * icon
Definition: guild.h:95
int max_presences
Definition: guild.h:180
bool unavailable
Definition: guild.h:152
u64snowflake widget_channel_id
Definition: guild.h:120
enum discord_mfa_level mfa_level
Definition: guild.h:134
u64snowflake public_updates_channel_id
Definition: guild.h:201
char * splash
Definition: guild.h:101
u64snowflake application_id
Definition: guild.h:136
bool owner
Definition: guild.h:105
u64snowflake system_channel_id
Definition: guild.h:139
char * description
Definition: guild.h:189
u64snowflake owner_id
Definition: guild.h:107
u64snowflake id
Definition: guild.h:90
struct discord_emojis * emojis
Definition: guild.h:130
struct discord_stickers * stickers
Definition: guild.h:227
struct discord_welcome_screen * welcome_screen
Definition: guild.h:217
struct discord_channels * threads
Definition: guild.h:170
enum discord_guild_nsfw_level nsfw_level
Definition: guild.h:220
struct discord_roles * roles
Definition: guild.h:128
enum discord_explicit_content_filter_level explicit_content_filter
Definition: guild.h:126
int member_count
Definition: guild.h:154
int afk_timeout
Definition: guild.h:115
bool premium_progress_bar_enabled
Definition: guild.h:234
int approximate_member_count
Definition: guild.h:208
Definition: guild.h:237
struct discord_guild * array
Definition: guild.h:238
int size
Definition: guild.h:237
Definition: guild.h:374
char * id
Definition: guild.h:376
char * name
Definition: guild.h:378
Definition: guild.h:380
struct discord_user * bot
Definition: guild.h:393
char * description
Definition: guild.h:388
u64snowflake id
Definition: guild.h:382
char * name
Definition: guild.h:384
char * summary
Definition: guild.h:390
char * icon
Definition: guild.h:386
Definition: guild.h:335
enum discord_integration_expire_behaviors expire_behavior
Definition: guild.h:352
int subscriber_count
Definition: guild.h:362
struct discord_integration_application * application
Definition: guild.h:366
bool enabled
Definition: guild.h:343
bool revoked
Definition: guild.h:364
u64snowflake guild_id
Definition: guild.h:369
bool enable_emoticons
Definition: guild.h:350
char * type
Definition: guild.h:341
int expire_grace_period
Definition: guild.h:354
u64snowflake id
Definition: guild.h:337
struct discord_user * user
Definition: guild.h:356
struct discord_integration_account * account
Definition: guild.h:358
char * name
Definition: guild.h:339
bool syncing
Definition: guild.h:345
u64snowflake role_id
Definition: guild.h:347
u64unix_ms synced_at
Definition: guild.h:360
Definition: guild.h:371
struct discord_integration * array
Definition: guild.h:372
int size
Definition: guild.h:371
Definition: guild.h:582
struct discord_channels * threads
Definition: guild.h:584
struct discord_thread_members * members
Definition: guild.h:587
Definition: guild.h:589
int limit
Definition: guild.h:591
u64snowflake after
Definition: guild.h:593
Definition: guild.h:655
char * nick
Definition: guild.h:660
char * reason
Definition: guild.h:657
Definition: guild.h:664
char * reason
Definition: guild.h:666
char * nick
Definition: guild.h:669
u64snowflake channel_id
Definition: guild.h:808
bool suppress
Definition: guild.h:810
u64unix_ms request_to_speak_timestamp
Definition: guild.h:814
int position
Definition: guild.h:567
u64snowflake id
Definition: guild.h:564
u64snowflake parent_id
Definition: guild.h:574
bool lock_category
Definition: guild.h:571
int size
Definition: guild.h:578
struct discord_modify_guild_channel_position * array
Definition: guild.h:579
Definition: guild.h:616
u64unix_ms communication_disabled_until
Definition: guild.h:651
char * reason
Definition: guild.h:618
u64snowflake channel_id
Definition: guild.h:639
char * nick
Definition: guild.h:621
bool deaf
Definition: guild.h:635
struct snowflakes * roles
Definition: guild.h:625
bool mute
Definition: guild.h:630
Definition: guild.h:717
int position
Definition: guild.h:722
u64snowflake id
Definition: guild.h:719
int size
Definition: guild.h:727
struct discord_modify_guild_role_position * array
Definition: guild.h:728
Definition: guild.h:731
char * icon
Definition: guild.h:743
char * name
Definition: guild.h:735
char * reason
Definition: guild.h:733
int color
Definition: guild.h:739
bool hoist
Definition: guild.h:741
char * unicode_emoji
Definition: guild.h:746
u64bitmask permissions
Definition: guild.h:737
bool mentionable
Definition: guild.h:748
char * description
Definition: guild.h:802
bool enabled
Definition: guild.h:797
struct discord_welcome_screen_channels * welcome_channels
Definition: guild.h:799
char * reason
Definition: guild.h:795
Definition: guild.h:479
u64snowflake afk_channel_id
Definition: guild.h:491
char * description
Definition: guild.h:525
char * preferred_locale
Definition: guild.h:521
char * reason
Definition: guild.h:481
u64snowflake owner_id
Definition: guild.h:498
u64snowflake public_updates_channel_id
Definition: guild.h:518
char * icon
Definition: guild.h:496
char * name
Definition: guild.h:483
char * banner
Definition: guild.h:507
enum discord_explicit_content_filter_level explicit_content_filter
Definition: guild.h:489
enum discord_verification_level verification_level
Definition: guild.h:485
char * discovery_splash
Definition: guild.h:504
char * splash
Definition: guild.h:501
u64snowflake system_channel_id
Definition: guild.h:510
struct strings * features
Definition: guild.h:523
u64bitmask system_channel_flags
Definition: guild.h:512
u64snowflake rules_channel_id
Definition: guild.h:515
int afk_timeout
Definition: guild.h:493
bool premium_progress_bar_enabled
Definition: guild.h:527
enum discord_message_notification_level default_message_notifications
Definition: guild.h:487
Definition: guild.h:818
bool suppress
Definition: guild.h:822
u64snowflake channel_id
Definition: guild.h:820
Definition: channel.h:313
Definition: gateway.h:254
Definition: guild.h:431
int pruned
Definition: guild.h:432
Definition: guild.h:693
char * reason
Definition: guild.h:695
Definition: guild.h:676
char * reason
Definition: guild.h:678
Definition: guild.h:680
char * reason
Definition: guild.h:682
Definition: permissions.h:149
Definition: guild.h:595
int limit
Definition: guild.h:599
char * query
Definition: guild.h:597
Definition: stage_instance.h:45
Definition: sticker.h:71
Definition: channel.h:349
Definition: user.h:69
Definition: user.h:104
Definition: voice.h:55
Definition: guild.h:416
char * description
Definition: guild.h:420
u64snowflake channel_id
Definition: guild.h:418
u64snowflake emoji_id
Definition: guild.h:422
char * emoji_name
Definition: guild.h:425
Definition: guild.h:427
struct discord_welcome_screen_channel * array
Definition: guild.h:428
int size
Definition: guild.h:427
Definition: guild.h:408
char * description
Definition: guild.h:410
struct discord_welcome_screen_channels * welcome_channels
Definition: guild.h:413
Handle for building a JSON string.
Definition: json-build.h:61
Definition: custom.h:28
Definition: custom.h:20