use enums

This commit is contained in:
Skillz4Killz
2021-05-29 18:46:15 +00:00
committed by GitHub
parent c73b3a55e6
commit d817659941
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
import { DiscordMessageComponentTypes } from "./message_component_types.ts";
export interface SelectMenuData {
/** The type of component */
componentType: 3;
componentType: DiscordMessageComponentTypes.SelectMenu;
/** The custom id provided for this component. */
customId: string;
/** The values chosen by the user. */

View File

@@ -1,7 +1,8 @@
import { DiscordMessageComponentTypes } from "./message_component_types.ts";
import { SelectOption } from "./select_option.ts";
export interface SelectMenuComponent {
type: 3;
type: DiscordMessageComponentTypes.SelectMenu;
/** A custom identifier for this component. Maximum 100 characters. */
customId: string;
/** A custom placeholder text if nothing is selected. Maximum 100 characters. */