fix: discord::guild::create_channel() now checks for params->topic size
@@ -203,6 +203,10 @@ void run(client *client, const uint64_t guild_id, params *params, channel::dati
D_PUTS("Missing channel name (params.name)");
return;
}
+ if (!orka_str_below_threshold(params->topic, 1024)) {
+ D_PUTS("Missing channel name (params.name)");
+ return;
+ }
#if 0
void *A[10] = {0}; // pointer availability array.
A[0] = (void *)params->name;
