Interface DiscordV2NodeParameters

Source
interface DiscordV2NodeParameters {
    after?: string;
    approvalOptions?: {
        values: {
            approvalType?: "single" | "double";
            approveLabel?: string;
            disapproveLabel?: string;
        };
    };
    authentication?: "oAuth2"
    | "webhook"
    | "botToken";
    channelId?: {
        mode: "id" | "list" | "url";
        value: string;
    };
    content?: string;
    defineForm?: "json"
    | "fields";
    embeds?: {
        values: {
            author?: string;
            color?: string;
            description?: string;
            image?: string;
            inputMethod?: "json" | "fields";
            json?: string;
            thumbnail?: string;
            timestamp?: string;
            title?: string;
            url?: string;
            video?: string;
        }[];
    };
    emoji?: string;
    files?: { values: { inputFieldName?: string }[] };
    formFields?: {
        values: {
            acceptFileTypes?: string;
            defaultValue?: string;
            elementName?: string;
            fieldLabel: string;
            fieldName: string;
            fieldOptions: { values: { option?: string }[] };
            fieldType:
                | "number"
                | "file"
                | "text"
                | "email"
                | "password"
                | "date"
                | "html"
                | "checkbox"
                | "dropdown"
                | "hiddenField"
                | "radio"
                | "textarea";
            fieldValue?: string;
            formatDate?: string;
            html?: string;
            limitSelection?: "exact"
            | "range"
            | "unlimited";
            maxSelections?: number;
            minSelections?: number;
            multipleFiles?: boolean;
            multiselect?: boolean;
            multiselectLegacyNotice?: string;
            numberOfSelections?: number;
            placeholder?: string;
            requiredField?: boolean;
        }[];
    };
    guildId?: {
        mode: "id"
        | "list"
        | "url";
        value: string;
    };
    jsonOutput?: string;
    limit?: number;
    message?: string;
    messageId?: string;
    name?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "send"
    | "deleteMessage"
    | "react"
    | "sendAndWait"
    | "deleteChannel"
    | "roleAdd"
    | "roleRemove"
    | "sendLegacy";
    options?: | { simplify?: boolean }
    | {
        flags?: (
            "SUPPRESS_EMBEDS"
            | "SUPPRESS_NOTIFICATIONS"
        )[];
        message_reference?: string;
        tts?: boolean;
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
        messageButtonLabel?: string;
        responseFormButtonLabel?: string;
        responseFormCustomCss?: string;
        responseFormDescription?: string;
        responseFormTitle?: string;
    }
    | {
        bitrate?: number;
        categoryId?: {
            mode: "id"
            | "list"
            | "url";
            value: string;
        };
        nsfw?: boolean;
        position?: number;
        rate_limit_per_user?: number;
        topic?: string;
        user_limit?: number;
    }
    | { filter?: (0 | 2 | 4)[] }
    | {
        avatar_url?: string;
        flags?: ("SUPPRESS_EMBEDS" | "SUPPRESS_NOTIFICATIONS")[];
        tts?: boolean;
        username?: string;
        wait?: boolean;
    };
    resource?: "message"
    | "member"
    | "channel";
    responseType?: "approval" | "freeText" | "customForm";
    returnAll?: boolean;
    role?: unknown[];
    sendTo?: "user" | "channel";
    type?: "2" | "4" | "0";
    userId?: { mode: "id" | "list"; value: string };
}

Properties§

§readonly after?: string

The ID of the user after which to return the members

§readonly approvalOptions?: { ... }

Default: {}

§readonly authentication?: "oAuth2" | "webhook" | "botToken"

Default: "botToken"

§readonly channelId?: { ... }

Select the channel by name, URL, or ID Default: {"mode":"list","value":""}

§readonly content?: string

The content of the message (up to 2000 characters) Type options: {"rows":2}

§readonly defineForm?: "json" | "fields"

Default: "fields"

§readonly embeds?: { ... }

Default: [] Type options: {"multipleValues":true}

§readonly emoji?: string

The emoji you want to react with

§readonly files?: { ... }

Default: [] Type options: {"multipleValues":true}

§readonly formFields?: { ... }

Default: {} Type options: {"multipleValues":true,"sortable":true,"fixedCollection":{"itemTitle":"={{ $collection.item.properties.find(p => p.name === "fieldType").options.find(o => o.value === $collection.item.value.fieldType).name }}"}}

§readonly guildId?: { ... }

Select the server (guild) that your bot is connected to Default: {"mode":"list","value":""}

§readonly jsonOutput?: string

Default: "[\n {\n "fieldLabel": "Name",\n "placeholder": "enter your name",\n "requiredField": true\n },\n {\n "fieldLabel": "Age",\n "fieldType": "number",\n "placeholder": "enter your age"\n },\n {\n "fieldLabel": "Email",\n "fieldType": "email",\n "requiredField": true\n },\n {\n "fieldLabel": "Textarea",\n "fieldType": "textarea"\n },\n {\n "fieldLabel": "Dropdown Options",\n "fieldType": "dropdown",\n "fieldOptions": {\n "values": [\n {\n "option": "option 1"\n },\n {\n "option": "option 2"\n }\n ]\n },\n "requiredField": true\n },\n {\n "fieldLabel": "Checkboxes",\n "fieldType": "checkbox",\n "fieldOptions": {\n "values": [\n {\n "option": "option 1"\n },\n {\n "option": "option 2"\n }\n ]\n }\n },\n {\n "fieldLabel": "Radio",\n "fieldType": "radio",\n "fieldOptions": {\n "values": [\n {\n "option": "option 1"\n },\n {\n "option": "option 2"\n }\n ]\n }\n },\n {\n "fieldLabel": "Email",\n "fieldType": "email",\n "placeholder": "me@mail.con"\n },\n {\n "fieldLabel": "File",\n "fieldType": "file",\n "multipleFiles": true,\n "acceptFileTypes": ".jpg, .png"\n },\n {\n "fieldLabel": "Number",\n "fieldType": "number"\n },\n {\n "fieldLabel": "Password",\n "fieldType": "password"\n }\n]\n" Type options: {"rows":5}

§readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1}

§readonly message?: string

Type options: {"rows":4}

§readonly messageId?: string

The ID of the message

§readonly name?: string

The name of the channel

§readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "send"
    | "deleteMessage"
    | "react"
    | "sendAndWait"
    | "deleteChannel"
    | "roleAdd"
    | "roleRemove"
    | "sendLegacy"

Default: "send"

§readonly options?:
    | { simplify?: boolean }
    | {
        flags?: (
            "SUPPRESS_EMBEDS"
            | "SUPPRESS_NOTIFICATIONS"
        )[];
        message_reference?: string;
        tts?: boolean;
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
        messageButtonLabel?: string;
        responseFormButtonLabel?: string;
        responseFormCustomCss?: string;
        responseFormDescription?: string;
        responseFormTitle?: string;
    }
    | {
        bitrate?: number;
        categoryId?: {
            mode: "id"
            | "list"
            | "url";
            value: string;
        };
        nsfw?: boolean;
        position?: number;
        rate_limit_per_user?: number;
        topic?: string;
        user_limit?: number;
    }
    | { filter?: (0 | 2 | 4)[] }
    | {
        avatar_url?: string;
        flags?: ("SUPPRESS_EMBEDS" | "SUPPRESS_NOTIFICATIONS")[];
        tts?: boolean;
        username?: string;
        wait?: boolean;
    }

Default: {}

§readonly resource?: "message" | "member" | "channel"

Default: "channel"

§readonly responseType?: "approval" | "freeText" | "customForm"

Default: "approval"

§readonly returnAll?: boolean

Whether to return all results or only up to a given limit

§readonly role?: unknown[]

Select the roles you want to add to the user Default: [] Type options: {"loadOptionsMethod":"getRoles","loadOptionsDependsOn":["userId.value","guildId.value","operation"]}

§readonly sendTo?: "user" | "channel"

Send message to a channel or DM to a user Default: "channel"

§readonly type?: "2" | "4" | "0"

The type of channel to create Default: "0"

§readonly userId?: { ... }

Select the user you want to assign a role to Default: {"mode":"list","value":""}