MessageCommandOptionBuilder
class
MessageCommandOptionBuilder
sourceexport class MessageCommandOptionBuilder<T> extends MessageCommandOption export class MessageCommandOptionBuilder<T> extends MessageCommandOptionconstructor(data?: Partial<MessageCommandOption.Data<T>>) constructor(data?: Partial<MessageCommandOption.Data<T>>)| Param | Type | Required |
|---|---|---|
| | No |
setName(name: string): this setName(name: string): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this this.setDescription(...)
setDescription(description: string): this setDescription(description: string): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this this.setRequired(...)
setRequired(required: boolean): this setRequired(required: boolean): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this this.setValidate(...)
setValidate(validate: MessageCommandOption.Data<T>["validate"]): this setValidate(validate: MessageCommandOption.Data<T>["validate"]): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this this.setResolve(...)
setResolve(resolve: MessageCommandOption.Data<T>["resolve"]): this setResolve(resolve: MessageCommandOption.Data<T>["resolve"]): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this this