diff --git a/NetCord/Rest/RestClient.Webhook.cs b/NetCord/Rest/RestClient.Webhook.cs index 5c6d5afc..fcf56627 100644 --- a/NetCord/Rest/RestClient.Webhook.cs +++ b/NetCord/Rest/RestClient.Webhook.cs @@ -4,6 +4,7 @@ namespace NetCord.Rest; public partial class RestClient { + [GenerateAlias([typeof(GuildThread)], $"(ulong){nameof(TextGuildChannel.ParentId)}!", Modifiers = ["new"])] [GenerateAlias([typeof(ForumGuildChannel)], nameof(ForumGuildChannel.Id))] [GenerateAlias([typeof(TextGuildChannel)], nameof(TextGuildChannel.Id))] public async Task CreateWebhookAsync(ulong channelId, WebhookProperties webhookProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default) @@ -12,6 +13,7 @@ public async Task CreateWebhookAsync(ulong channelId, WebhookPr return new(await (await SendRequestAsync(HttpMethod.Post, content, $"/channels/{channelId}/webhooks", null, new(channelId), properties, cancellationToken: cancellationToken).ConfigureAwait(false)).ToObjectAsync(Serialization.Default.JsonWebhook).ConfigureAwait(false), this); } + [GenerateAlias([typeof(GuildThread)], $"(ulong){nameof(TextGuildChannel.ParentId)}!", Modifiers = ["new"])] [GenerateAlias([typeof(ForumGuildChannel)], nameof(ForumGuildChannel.Id))] [GenerateAlias([typeof(TextGuildChannel)], nameof(TextGuildChannel.Id))] public async Task> GetChannelWebhooksAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)