RadioGroup
Signature
export declare class RadioGroup extends BaseComponentBuilder<APIRadioGroupComponent>Properties
1Methods
7Properties
#private;Methods
constructorConstructorconstructor(data?: Partial<APIRadioGroupComponent>);setId(id: number): this;Sets the ID for the radio group.
Parameters
id- The ID for the radio group.
Returns
The current RadioGroup instance.
setCustomId(customId: string): this;Sets the custom ID for the radio group.
Parameters
customId- The custom ID for the radio group.
Returns
The current RadioGroup instance.
setOptions(...options: RestOrArray<RadioGroupOption>): this;addOptions(...options: RestOrArray<RadioGroupOption>): this;setRequired(required: boolean): this;Sets whether the radio group is required.
Parameters
required- Whether the radio group is required (true by discord side).
Returns
The current RadioGroup instance.
toJSON(): APIRadioGroupComponent;