From c08230edc091a2589470536b622434a33db481e4 Mon Sep 17 00:00:00 2001 From: Jaw0r3k Date: Sat, 12 Aug 2023 14:37:16 +0200 Subject: [PATCH] types(BaseButtonComponentData): Narrow component type (#9735) Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --- typings/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index 6cb46a7420f2..ac06046d7ae0 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -5810,6 +5810,7 @@ export interface MessageActivity { } export interface BaseButtonOptions extends BaseMessageComponentOptions { + type: 'BUTTON' | MessageComponentTypes.BUTTON; disabled?: boolean; emoji?: EmojiIdentifierResolvable; label?: string;