build method
Returns built response for api
Implementation
@override
RawApiMap build(INyxx client) {
allowedMentions ??= client._options.allowedMentions;
return <String, dynamic>{
if (content.isNotEmpty) "content": content.toString(),
if (embeds.isNotEmpty) "embeds": [for (final e in embeds) e.build()],
if (allowedMentions != null) "allowed_mentions": allowedMentions!.build(),
if (replyBuilder != null) "message_reference": replyBuilder!.build(),
if (tts != null) "tts": tts,
if (nonce != null) "nonce": nonce
};
}