From 4e06ed6b2c0f8d42c6dfa3398e36234c93c6b423 Mon Sep 17 00:00:00 2001 From: ITOH Date: Fri, 25 Feb 2022 16:07:48 +0100 Subject: [PATCH] fix(types): `SelectOption#default` is not required (#2066) * fix(types): is not required * ddcmp Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> --- transformers/component.ts | 2 +- types/messages/components/selectOption.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transformers/component.ts b/transformers/component.ts index 02c2dc59b..5fecbfe19 100644 --- a/transformers/component.ts +++ b/transformers/component.ts @@ -114,7 +114,7 @@ export interface DiscordenoComponent { animated?: boolean; }; /** Will render this option as already-selected by default. */ - default: boolean; + default?: boolean; }[]; /** A custom placeholder text if nothing is selected. Maximum 100 characters. */ placeholder?: string; diff --git a/types/messages/components/selectOption.ts b/types/messages/components/selectOption.ts index 474be51ce..a948a0a03 100644 --- a/types/messages/components/selectOption.ts +++ b/types/messages/components/selectOption.ts @@ -16,5 +16,5 @@ export interface SelectOption { animated?: boolean; }; /** Will render this option as already-selected by default. */ - default: boolean; + default?: boolean; }