RadioGroupOption

Signature

export declare class RadioGroupOption

Properties

Methods

setLabel(label: string): this;

Sets the label for the option. label - The label for the option.

Returns

The current RadioGroupOption instance.

setValue(value: string): this;

Sets the value for the option. value - The value for the option.

Returns

The current RadioGroupOption instance.

setDescription(description: string): this;

Sets the description for the option. description - The description for the option.

Returns

The current RadioGroupOption instance.

setDefault(value?: boolean): this;

Sets whether the option is the default. [value=true] - Indicates whether the option is the default (true by discord side).

Returns

The current RadioGroupOption instance.