From 10c37a905029c9782e90f96104ceb7e7c596bad5 Mon Sep 17 00:00:00 2001 From: Catboi <50190590+Catboi8@users.noreply.github.com> Date: Sun, 3 Oct 2021 00:53:12 -0500 Subject: [PATCH] Add ButtonStyles to Constants *glares at bsian* --- index.d.ts | 11 +++++++++-- lib/Constants.js | 8 ++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index ac1ccc90d..d4f98724a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1562,10 +1562,17 @@ declare namespace Eris { MESSAGE: 3; }; ComponentTypes: { - ACTION_ROW: 1; - BUTTON: 2; + ACTION_ROW: 1; + BUTTON: 2; SELECT_MENU: 3; }; + ButtonStyles: { + PRIMARY: 1; + SECONDARY: 2; + SUCCESS: 3; + DANGER: 4; + LINK: 5; + } } // Selfbot diff --git a/lib/Constants.js b/lib/Constants.js index a8b9cf90a..bde553a29 100644 --- a/lib/Constants.js +++ b/lib/Constants.js @@ -326,3 +326,11 @@ module.exports.ComponentTypes = { BUTTON: 2, SELECT_MENU: 3 }; + +module.exports.ButtonStyles = { + PRIMARY: 1, + SECONDARY: 2, + SUCCESS: 3, + DANGER: 4, + LINK: 5 +};