fix: message::create::run() checks
@@ -365,6 +365,7 @@ run(client *client, const uint64_t channel_id, params *params, dati *p_message)
if (!params->file.name && !params->file.content)
{ // content-type is application/json
+ if (!params->embed) {
if (IS_EMPTY_STRING(params->content)) {
D_PUTS("Missing 'content'");
return;
@@ -374,6 +375,7 @@ run(client *client, const uint64_t channel_id, params *params, dati *p_message)
MAX_MESSAGE_LEN, strlen(params->content));
return;
}
+ }
void *A[6] = {0}; // pointer availability array
if (params->content)
