diff --git a/src/builders/SelectMenu.ts b/src/builders/SelectMenu.ts index a31e4b5..7ca10ad 100644 --- a/src/builders/SelectMenu.ts +++ b/src/builders/SelectMenu.ts @@ -161,7 +161,7 @@ export class RoleSelectMenu extends SelectMenu { } } -export type MentionableDefaultElement = { id: string; type: keyof Omit }; +export type MentionableDefaultElement = { id: string; type: keyof typeof SelectMenuDefaultValueType }; /** * Represents a Select Menu for selecting mentionable entities. diff --git a/src/types/payloads/components.ts b/src/types/payloads/components.ts index 55024c8..325792d 100644 --- a/src/types/payloads/components.ts +++ b/src/types/payloads/components.ts @@ -260,7 +260,7 @@ export type APIRoleSelectComponent = APIBaseAutoPopulatedSelectMenuComponent< */ export type APIMentionableSelectComponent = APIBaseAutoPopulatedSelectMenuComponent< ComponentType.MentionableSelect, - SelectMenuDefaultValueType.Role | SelectMenuDefaultValueType.User + SelectMenuDefaultValueType >; /**