diff --git a/plugins/permissions/src/components.ts b/plugins/permissions/src/components.ts index 69b683a2b..072c196ab 100644 --- a/plugins/permissions/src/components.ts +++ b/plugins/permissions/src/components.ts @@ -52,10 +52,10 @@ export function validateComponents(bot: Bot, components: MessageComponents) { if (subcomponent.type === MessageComponentTypes.SelectMenu) { if ( subcomponent.placeholder && - !bot.utils.validateLength(subcomponent.placeholder, { max: 100 }) + !bot.utils.validateLength(subcomponent.placeholder, { max: 150 }) ) { throw new Error( - "The component placeholder can not be longer than 100 characters.", + "The component placeholder can not be longer than 150 characters.", ); } diff --git a/transformers/component.ts b/transformers/component.ts index 30110dac2..c40bd4049 100644 --- a/transformers/component.ts +++ b/transformers/component.ts @@ -66,7 +66,7 @@ export interface Component { url?: string; /** The choices! Maximum of 25 items. */ options?: SelectOption[]; - /** A custom placeholder text if nothing is selected. Maximum 100 characters. */ + /** A custom placeholder text if nothing is selected. Maximum 150 characters. */ placeholder?: string; /** The minimum number of items that must be selected. Default 1. Between 1-25. */ minValues?: number; diff --git a/types/discord.ts b/types/discord.ts index afe5daa42..4ac365824 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -1150,7 +1150,7 @@ export interface DiscordSelectMenuComponent { type: MessageComponentTypes.SelectMenu; /** A custom identifier for this component. Maximum 100 characters. */ custom_id: string; - /** A custom placeholder text if nothing is selected. Maximum 100 characters. */ + /** A custom placeholder text if nothing is selected. Maximum 150 characters. */ placeholder?: string; /** The minimum number of items that must be selected. Default 1. Between 1-25. */ min_values?: number; @@ -1853,7 +1853,7 @@ export interface DiscordComponent { url?: string; /** The choices! Maximum of 25 items. */ options?: DiscordSelectOption[]; - /** A custom placeholder text if nothing is selected. Maximum 100 characters. */ + /** A custom placeholder text if nothing is selected. Maximum 150 characters. */ placeholder?: string; /** The minimum number of items that must be selected. Default 1. Between 1-25. */ min_values?: number; @@ -2090,7 +2090,7 @@ export interface DiscordGuildMemberUpdate { mute?: boolean; /** Whether the user has not yet passed the guild's Membership Screening requirements */ pending?: boolean; - /** when the user's [timeout](https://support.discord.com/hc/en-us/articles/4413305239191-Time-Out-FAQ) will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */ + /** when the user's [timeout](https://support.discord.com/hc/en-us/articles/4413305239191-Time-Out-FAQ) will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out. Will throw a 403 error if the user has the ADMINISTRATOR permission or is the owner of the guild */ communication_disabled_until?: string; } diff --git a/types/discordeno.ts b/types/discordeno.ts index 1c1297f26..f3cbbf602 100644 --- a/types/discordeno.ts +++ b/types/discordeno.ts @@ -20,7 +20,7 @@ export interface SelectMenuComponent { type: MessageComponentTypes.SelectMenu; /** A custom identifier for this component. Maximum 100 characters. */ customId: string; - /** A custom placeholder text if nothing is selected. Maximum 100 characters. */ + /** A custom placeholder text if nothing is selected. Maximum 150 characters. */ placeholder?: string; /** The minimum number of items that must be selected. Default 1. Between 1-25. */ minValues?: number;