Constructors
Properties
Protected Readonlyapplication
Protected Staticname
name: string
Methods
boot
- boot(): Awaitable<void>
Returns Awaitable<void>
buildModal
- buildModal(customId, surveyConfig): ModalBuilder
Parameters
- customId: string
- surveyConfig: {
description?: string;
end_message?: string;
log_channel?: string;
name: string;
questions: [{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph" | "short";
}, ...{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph" | "short";
}[]];
required_channels: string[];
required_permissions: string[];
required_roles: string[];
required_users: string[];
}Optionaldescription?: string
Optionalend_message?: string
Optionallog_channel?: string
name: string
questions: [{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph" | "short";
}, ...{
default_value?: string;
maxLength?: number;
minLength?: number;
placeholder?: string;
question: string;
required: boolean;
type: "paragraph" | "short";
}[]]
required_channels: string[]
required_permissions: string[]
required_roles: string[]
required_users: string[]
Returns ModalBuilder
onInteractionCreate
- onInteractionCreate(interaction): Promise<void>
Returns Promise<void>
onModalSubmit
- onModalSubmit(interaction): Promise<void>
Parameters
- interaction: ModalSubmitInteraction<CacheType>
Returns Promise<void>
onSurveyShowRequest
- onSurveyShowRequest(interaction): Promise<void>
Parameters
- interaction: ChatInputCommandInteraction<CacheType> | ButtonInteraction<CacheType>
Returns Promise<void>
StaticgetName
- getName(): string
Returns string
Returns the name of the function. Function names are read-only and can not be changed.