fix(APIApplicationCommand): dm_permission is not nullable and default_member_permissions is required (#454)

This commit is contained in:
Almeida
2022-05-27 11:36:34 +01:00
committed by GitHub
parent 4083a32340
commit 85802f1703
4 changed files with 8 additions and 8 deletions

View File

@@ -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
*

View File

@@ -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
*

View File

@@ -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
*

View File

@@ -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
*