* Make Webhook ApplicationId nullable instead of optional * Fix IDiscordInteraction DeferAsync to account for ephemeral deferpull/1923/head
| @@ -4691,7 +4691,7 @@ | |||||
| <param name="options">The request options for this async request.</param> | <param name="options">The request options for this async request.</param> | ||||
| <returns>A <see cref="T:Discord.IUserMessage"/> that represents the initial response.</returns> | <returns>A <see cref="T:Discord.IUserMessage"/> that represents the initial response.</returns> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.IDiscordInteraction.DeferAsync(Discord.RequestOptions)"> | |||||
| <member name="M:Discord.IDiscordInteraction.DeferAsync(System.Boolean,Discord.RequestOptions)"> | |||||
| <summary> | <summary> | ||||
| Acknowledges this interaction. | Acknowledges this interaction. | ||||
| </summary> | </summary> | ||||
| @@ -92,6 +92,6 @@ namespace Discord | |||||
| /// <returns> | /// <returns> | ||||
| /// A task that represents the asynchronous operation of acknowledging the interaction. | /// A task that represents the asynchronous operation of acknowledging the interaction. | ||||
| /// </returns> | /// </returns> | ||||
| Task DeferAsync (RequestOptions options = null); | |||||
| Task DeferAsync (bool ephemeral = false, RequestOptions options = null); | |||||
| } | } | ||||
| } | } | ||||
| @@ -22,6 +22,6 @@ namespace Discord.API | |||||
| [JsonProperty("user")] | [JsonProperty("user")] | ||||
| public Optional<User> Creator { get; set; } | public Optional<User> Creator { get; set; } | ||||
| [JsonProperty("application_id")] | [JsonProperty("application_id")] | ||||
| public Optional<ulong> ApplicationId { get; set; } | |||||
| public ulong? ApplicationId { get; set; } | |||||
| } | } | ||||
| } | } | ||||
| @@ -68,8 +68,8 @@ namespace Discord.Rest | |||||
| GuildId = model.GuildId.Value; | GuildId = model.GuildId.Value; | ||||
| if (model.Name.IsSpecified) | if (model.Name.IsSpecified) | ||||
| Name = model.Name.Value; | Name = model.Name.Value; | ||||
| if (model.ApplicationId.IsSpecified) | |||||
| ApplicationId = model.ApplicationId.Value; | |||||
| ApplicationId = model.ApplicationId; | |||||
| } | } | ||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| @@ -45,8 +45,8 @@ namespace Discord.Webhook | |||||
| GuildId = model.GuildId.Value; | GuildId = model.GuildId.Value; | ||||
| if (model.Name.IsSpecified) | if (model.Name.IsSpecified) | ||||
| Name = model.Name.Value; | Name = model.Name.Value; | ||||
| if (model.ApplicationId.IsSpecified) | |||||
| ApplicationId = model.ApplicationId.Value; | |||||
| ApplicationId = model.ApplicationId; | |||||
| } | } | ||||
| public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128) | public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128) | ||||