| @@ -12,7 +12,7 @@ namespace Discord.API | |||||
| public string Name { get; set; } | public string Name { get; set; } | ||||
| [JsonProperty("options")] | [JsonProperty("options")] | ||||
| public Optional<List<ApplicationCommandInteractionDataOption>> Options { get; set; } | |||||
| public Optional<ApplicationCommandInteractionDataOption[]> Options { get; set; } | |||||
| [JsonProperty("resolved")] | [JsonProperty("resolved")] | ||||
| public Optional<ApplicationCommandInteractionDataResolved> Resolved { get; set; } | public Optional<ApplicationCommandInteractionDataResolved> Resolved { get; set; } | ||||
| @@ -15,6 +15,6 @@ namespace Discord.API | |||||
| public Optional<object> Value { get; set; } | public Optional<object> Value { get; set; } | ||||
| [JsonProperty("options")] | [JsonProperty("options")] | ||||
| public List<ApplicationCommandInteractionDataOption> Options { get; set; } = new(); | |||||
| public Optional<ApplicationCommandInteractionDataOption[]> Options { get; set; } | |||||
| } | } | ||||
| } | } | ||||
| @@ -8,7 +8,7 @@ | |||||
| <TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net461;netstandard2.0;netstandard2.1</TargetFrameworks> | <TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net461;netstandard2.0;netstandard2.1</TargetFrameworks> | ||||
| <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0;netstandard2.1</TargetFrameworks> | <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0;netstandard2.1</TargetFrameworks> | ||||
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||||
| <Version>2.4.1</Version> | |||||
| <Version>2.4.2</Version> | |||||
| <RepositoryUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</RepositoryUrl> | <RepositoryUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</RepositoryUrl> | ||||
| <PackageProjectUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</PackageProjectUrl> | <PackageProjectUrl>https://github.com/Discord-Net-Labs/Discord.Net-Labs</PackageProjectUrl> | ||||
| <PackageIcon>Temporary.png</PackageIcon> | <PackageIcon>Temporary.png</PackageIcon> | ||||
| @@ -1250,7 +1250,7 @@ | |||||
| <para> | <para> | ||||
| With this option set to <see langword="false"/>, you will have to acknowledge the interaction with | With this option set to <see langword="false"/>, you will have to acknowledge the interaction with | ||||
| <see cref="!:SocketInteraction.RespondAsync(string, bool, Embed, InteractionResponseType, AllowedMentions, RequestOptions)"/>. | <see cref="!:SocketInteraction.RespondAsync(string, bool, Embed, InteractionResponseType, AllowedMentions, RequestOptions)"/>. | ||||
| Only after the interaction is acknowledged, the origional slash command message will be visible. | |||||
| Only after the interaction is acknowledged, the original slash command message will be visible. | |||||
| </para> | </para> | ||||
| <note> | <note> | ||||
| Please note that manually acknowledging the interaction with a message reply will not provide any return data. | Please note that manually acknowledging the interaction with a message reply will not provide any return data. | ||||
| @@ -60,8 +60,8 @@ namespace Discord.WebSocket | |||||
| this.Value = model.Value.Value; | this.Value = model.Value.Value; | ||||
| } | } | ||||
| this.Options = model.Options.Any() | |||||
| ? model.Options.Select(x => new SocketSlashCommandDataOption(data, x)).ToImmutableArray() | |||||
| this.Options = model.Options.IsSpecified | |||||
| ? model.Options.Value.Select(x => new SocketSlashCommandDataOption(data, x)).ToImmutableArray() | |||||
| : null; | : null; | ||||
| } | } | ||||
| @@ -2,7 +2,7 @@ | |||||
| <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||||
| <metadata> | <metadata> | ||||
| <id>Discord.Net.Labs</id> | <id>Discord.Net.Labs</id> | ||||
| <version>2.4.1$suffix$</version> | |||||
| <version>2.4.2$suffix$</version> | |||||
| <title>Discord.Net Labs</title> | <title>Discord.Net Labs</title> | ||||
| <authors>Discord.Net Contributors</authors> | <authors>Discord.Net Contributors</authors> | ||||
| <owners>quinchs</owners> | <owners>quinchs</owners> | ||||
| @@ -16,21 +16,21 @@ | |||||
| <group targetFramework="net461"> | <group targetFramework="net461"> | ||||
| <dependency id="Discord.Net.Labs.Core" version="2.4.1$suffix$" /> | <dependency id="Discord.Net.Labs.Core" version="2.4.1$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.Rest" version="2.4.0$suffix$" /> | <dependency id="Discord.Net.Labs.Rest" version="2.4.0$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.WebSocket" version="2.4.1$suffix$" /> | |||||
| <dependency id="Discord.Net.Labs.WebSocket" version="2.4.2$suffix$" /> | |||||
| <dependency id="Discord.Net.Labs.Commands" version="2.3.5$suffix$" /> | <dependency id="Discord.Net.Labs.Commands" version="2.3.5$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.Webhook" version="2.3.4$suffix$" /> | <dependency id="Discord.Net.Labs.Webhook" version="2.3.4$suffix$" /> | ||||
| </group> | </group> | ||||
| <group targetFramework="netstandard2.0"> | <group targetFramework="netstandard2.0"> | ||||
| <dependency id="Discord.Net.Labs.Core" version="2.4.1$suffix$" /> | <dependency id="Discord.Net.Labs.Core" version="2.4.1$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.Rest" version="2.4.0$suffix$" /> | <dependency id="Discord.Net.Labs.Rest" version="2.4.0$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.WebSocket" version="2.4.1$suffix$" /> | |||||
| <dependency id="Discord.Net.Labs.WebSocket" version="2.4.2$suffix$" /> | |||||
| <dependency id="Discord.Net.Labs.Commands" version="2.3.5$suffix$" /> | <dependency id="Discord.Net.Labs.Commands" version="2.3.5$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.Webhook" version="2.3.4$suffix$" /> | <dependency id="Discord.Net.Labs.Webhook" version="2.3.4$suffix$" /> | ||||
| </group> | </group> | ||||
| <group targetFramework="netstandard2.1"> | <group targetFramework="netstandard2.1"> | ||||
| <dependency id="Discord.Net.Labs.Core" version="2.4.1$suffix$" /> | <dependency id="Discord.Net.Labs.Core" version="2.4.1$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.Rest" version="2.4.0$suffix$" /> | <dependency id="Discord.Net.Labs.Rest" version="2.4.0$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.WebSocket" version="2.4.1$suffix$" /> | |||||
| <dependency id="Discord.Net.Labs.WebSocket" version="2.4.2$suffix$" /> | |||||
| <dependency id="Discord.Net.Labs.Commands" version="2.3.5$suffix$" /> | <dependency id="Discord.Net.Labs.Commands" version="2.3.5$suffix$" /> | ||||
| <dependency id="Discord.Net.Labs.Webhook" version="2.3.4$suffix$" /> | <dependency id="Discord.Net.Labs.Webhook" version="2.3.4$suffix$" /> | ||||
| </group> | </group> | ||||