From 85802f1703c0a34a260b1800095dc272b40dfb49 Mon Sep 17 00:00:00 2001 From: Almeida Date: Fri, 27 May 2022 11:36:34 +0100 Subject: [PATCH] fix(APIApplicationCommand): `dm_permission` is not nullable and `default_member_permissions` is required (#454) --- deno/payloads/v10/_interactions/applicationCommands.ts | 4 ++-- deno/payloads/v9/_interactions/applicationCommands.ts | 4 ++-- payloads/v10/_interactions/applicationCommands.ts | 4 ++-- payloads/v9/_interactions/applicationCommands.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/_interactions/applicationCommands.ts b/deno/payloads/v10/_interactions/applicationCommands.ts index f64ba416..788cc0cc 100644 --- a/deno/payloads/v10/_interactions/applicationCommands.ts +++ b/deno/payloads/v10/_interactions/applicationCommands.ts @@ -73,11 +73,11 @@ export interface APIApplicationCommand { /** * Set of permissions represented as a bitset */ - default_member_permissions?: Permissions | null; + default_member_permissions: Permissions | null; /** * Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible */ - dm_permission?: boolean | null; + dm_permission?: boolean; /** * Whether the command is enabled by default when the app is added to a guild * diff --git a/deno/payloads/v9/_interactions/applicationCommands.ts b/deno/payloads/v9/_interactions/applicationCommands.ts index 7e47657c..5948caad 100644 --- a/deno/payloads/v9/_interactions/applicationCommands.ts +++ b/deno/payloads/v9/_interactions/applicationCommands.ts @@ -73,11 +73,11 @@ export interface APIApplicationCommand { /** * Set of permissions represented as a bitset */ - default_member_permissions?: Permissions | null; + default_member_permissions: Permissions | null; /** * Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible */ - dm_permission?: boolean | null; + dm_permission?: boolean; /** * Whether the command is enabled by default when the app is added to a guild * diff --git a/payloads/v10/_interactions/applicationCommands.ts b/payloads/v10/_interactions/applicationCommands.ts index 6fd938d9..d7cb3278 100644 --- a/payloads/v10/_interactions/applicationCommands.ts +++ b/payloads/v10/_interactions/applicationCommands.ts @@ -73,11 +73,11 @@ export interface APIApplicationCommand { /** * Set of permissions represented as a bitset */ - default_member_permissions?: Permissions | null; + default_member_permissions: Permissions | null; /** * Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible */ - dm_permission?: boolean | null; + dm_permission?: boolean; /** * Whether the command is enabled by default when the app is added to a guild * diff --git a/payloads/v9/_interactions/applicationCommands.ts b/payloads/v9/_interactions/applicationCommands.ts index 72dbebcb..9b100bbb 100644 --- a/payloads/v9/_interactions/applicationCommands.ts +++ b/payloads/v9/_interactions/applicationCommands.ts @@ -73,11 +73,11 @@ export interface APIApplicationCommand { /** * Set of permissions represented as a bitset */ - default_member_permissions?: Permissions | null; + default_member_permissions: Permissions | null; /** * Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible */ - dm_permission?: boolean | null; + dm_permission?: boolean; /** * Whether the command is enabled by default when the app is added to a guild *