mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
refactor: make public builder props getters (#7422)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
import { UnsafeSelectMenuComponent } from './UnsafeSelectMenu';
|
||||
|
||||
/**
|
||||
* Represents a select menu component
|
||||
* Represents a validated select menu component
|
||||
*/
|
||||
export class SelectMenuComponent extends UnsafeSelectMenuComponent {
|
||||
public override setPlaceholder(placeholder: string) {
|
||||
@@ -33,7 +33,7 @@ export class SelectMenuComponent extends UnsafeSelectMenuComponent {
|
||||
}
|
||||
|
||||
public override toJSON(): APISelectMenuComponent {
|
||||
validateRequiredSelectMenuParameters(this.options, this.custom_id);
|
||||
validateRequiredSelectMenuParameters(this.options, this.customId);
|
||||
return super.toJSON();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user