feat: new select menu (v2)

#9174 djs
This commit is contained in:
Elysia
2023-02-28 13:42:35 +07:00
parent ba22a5f550
commit 808adeb016
8 changed files with 392 additions and 81 deletions

4
typings/enums.d.ts vendored
View File

@@ -249,6 +249,8 @@ export const enum MessageButtonStyles {
export const enum MessageComponentTypes {
ACTION_ROW = 1,
BUTTON = 2,
/** @deprecated Use `STRING_SELECT` instead */
SELECT_MENU = 3,
STRING_SELECT = 3,
TEXT_INPUT = 4,
USER_SELECT = 5,
@@ -258,6 +260,8 @@ export const enum MessageComponentTypes {
}
export const enum SelectMenuComponentTypes {
/** @deprecated Use `STRING_SELECT` instead */
SELECT_MENU = 3,
STRING_SELECT = 3,
USER_SELECT = 5,
ROLE_SELECT = 6,