|
|
@@ -199,7 +199,7 @@ namespace Discord.WebSocket |
|
|
|
AllowedMentions = args.AllowedMentions.IsSpecified ? args.AllowedMentions.Value?.ToModel() : Optional<API.AllowedMentions>.Unspecified, |
|
|
|
Embeds = apiEmbeds?.ToArray() ?? Optional<API.Embed[]>.Unspecified, |
|
|
|
Components = args.Components.IsSpecified |
|
|
|
? args.Components.Value?.Components.Select(x => new API.ActionRowComponent(x)).ToArray() |
|
|
|
? args.Components.Value?.Components.Select(x => new API.ActionRowComponent(x)).ToArray() ?? new API.ActionRowComponent[0] |
|
|
|
: Optional<API.ActionRowComponent[]>.Unspecified, |
|
|
|
Flags = args.Flags.IsSpecified ? args.Flags.Value ?? Optional<MessageFlags>.Unspecified : Optional<MessageFlags>.Unspecified |
|
|
|
} |
|
|
|