From a9a8da4d77e6c7dca7d067b34dc73719a5b40085 Mon Sep 17 00:00:00 2001 From: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com> Date: Sat, 30 Sep 2023 19:46:15 +0300 Subject: [PATCH] =?UTF-8?q?[Feature]=20App=20subscriptions=20=E2=84=962=20?= =?UTF-8?q?(#2784)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * what a big commit lel, add app sub enums * work * ah yup lol * `?` * events 1 * typo * `list` => `get` | remaining events * add `RespondWithPremiumRequiredAsync` to interaction module base * sharded client fixes for app premium subs --- src/Discord.Net.WebSocket/DiscordShardedClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Discord.Net.WebSocket/DiscordShardedClient.cs b/src/Discord.Net.WebSocket/DiscordShardedClient.cs index 8b859c0f..f88d9214 100644 --- a/src/Discord.Net.WebSocket/DiscordShardedClient.cs +++ b/src/Discord.Net.WebSocket/DiscordShardedClient.cs @@ -518,6 +518,10 @@ namespace Discord.WebSocket client.WebhooksUpdated += (arg1, arg2) => _webhooksUpdated.InvokeAsync(arg1, arg2); client.AuditLogCreated += (arg1, arg2) => _auditLogCreated.InvokeAsync(arg1, arg2); + + client.EntitlementCreated += (arg1) => _entitlementCreated.InvokeAsync(arg1); + client.EntitlementUpdated += (arg1, arg2) => _entitlementUpdated.InvokeAsync(arg1, arg2); + client.EntitlementDeleted += (arg1) => _entitlementDeleted.InvokeAsync(arg1); } public async Task CreateGlobalApplicationCommandAsync(ApplicationCommandProperties properties, RequestOptions options = null)