| @@ -23,7 +23,7 @@ namespace Discord | |||||
| /// <summary> Gets the guild owning this webhook. </summary> | /// <summary> Gets the guild owning this webhook. </summary> | ||||
| IGuild Guild { get; } | IGuild Guild { get; } | ||||
| /// <summary> Gets the id of the guild owning this webhook. </summary> | /// <summary> Gets the id of the guild owning this webhook. </summary> | ||||
| ulong GuildId { get; } | |||||
| ulong? GuildId { get; } | |||||
| /// <summary> Gets the user that created this webhook. </summary> | /// <summary> Gets the user that created this webhook. </summary> | ||||
| IUser Creator { get; } | IUser Creator { get; } | ||||
| @@ -23,5 +23,19 @@ | |||||
| /// The default avatar of the webhook. | /// The default avatar of the webhook. | ||||
| /// </summary> | /// </summary> | ||||
| public Optional<Image?> Image { get; set; } | public Optional<Image?> Image { get; set; } | ||||
| /// <summary> | |||||
| /// The channel for this webhook. | |||||
| /// </summary> | |||||
| /// <remarks> | |||||
| /// This field is not used when authenticated with <see cref="TokenType.Webhook"/>. | |||||
| /// </remarks> | |||||
| public Optional<ITextChannel> Channel { get; set; } | |||||
| /// <summary> | |||||
| /// The channel id for this webhook. | |||||
| /// </summary> | |||||
| /// <remarks> | |||||
| /// This field is not used when authenticated with <see cref="TokenType.Webhook"/>. | |||||
| /// </remarks> | |||||
| public Optional<ulong> ChannelId { get; set; } | |||||
| } | } | ||||
| } | } | ||||
| @@ -35,6 +35,6 @@ namespace Discord | |||||
| Task<IReadOnlyCollection<IVoiceRegion>> GetVoiceRegionsAsync(RequestOptions options = null); | Task<IReadOnlyCollection<IVoiceRegion>> GetVoiceRegionsAsync(RequestOptions options = null); | ||||
| Task<IVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null); | Task<IVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null); | ||||
| Task<IWebhook> GetWebhookAsync(ulong id, string webhookToken = null, RequestOptions options = null); | |||||
| Task<IWebhook> GetWebhookAsync(ulong id, RequestOptions options = null); | |||||
| } | } | ||||
| } | } | ||||