From 29db462ca06609a4f4bfeea60e5ca64f9ad36721 Mon Sep 17 00:00:00 2001 From: Yaikava <83710104+Yaikava@users.noreply.github.com> Date: Thu, 19 Jan 2023 22:10:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20-=20fix:=20types=20-=20slashcomm?= =?UTF-8?q?ands=20-=20add=20nsfw=20prop=20(#2731)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/types/src/discordeno.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index 068116e09..678eb0254 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -4,7 +4,7 @@ import type { AutoModerationTriggerTypes, DiscordAttachment, DiscordAutoModerationRuleTriggerMetadataPresets, - DiscordEmbed, + DiscordEmbed } from './discord' import type { AllowedMentionsTypes, @@ -26,7 +26,7 @@ import type { SortOrderTypes, TargetTypes, TextStyles, - VideoQualityModes, + VideoQualityModes } from './shared' export interface CreateMessageOptions { @@ -427,6 +427,8 @@ export interface CreateSlashApplicationCommand { defaultMemberPermissions?: PermissionStrings[] /** Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. */ dmPermission?: boolean + /** Indicates whether the command is age-restricted, defaults to `false` */ + nsfw?: boolean; } /** https://discord.com/developers/docs/interactions/application-commands#endpoints-json-params */