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;
elementName?: string;
fieldLabel: string;
fieldName?: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "password"
| "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§
Source§readonly approval Options?: {
values: {
approvalType?: "single" | "double";
approveLabel?: string;
disapproveLabel?: string;
};
}
readonly approval Options?: {
values: {
approvalType?: "single" | "double";
approveLabel?: string;
disapproveLabel?: string;
};
}
Default: {}
Source§readonly channel Id?: { mode: "id" | "list" | "url"; value: string }
readonly channel Id?: { mode: "id" | "list" | "url"; value: string }
Select the channel by name, URL, or ID Default: {"mode":"list","value":""}
Source§readonly content?: string
readonly content?: string
The content of the message (up to 2000 characters) Type options: {"rows":2}
Source§readonly 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;
}[];
}
readonly 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;
}[];
}
Default: [] Type options: {"multipleValues":true}
Source§readonly files?: { values: { inputFieldName?: string }[] }
readonly files?: { values: { inputFieldName?: string }[] }
Default: [] Type options: {"multipleValues":true}
Source§readonly form Fields?: {
values: {
acceptFileTypes?: string;
elementName?: string;
fieldLabel: string;
fieldName?: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "password"
| "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;
}[];
}
readonly form Fields?: {
values: {
acceptFileTypes?: string;
elementName?: string;
fieldLabel: string;
fieldName?: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "password"
| "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;
}[];
}
Default: {} Type options: {"multipleValues":true,"sortable":true}
Source§readonly guild Id?: { mode: "id" | "list" | "url"; value: string }
readonly guild Id?: { mode: "id" | "list" | "url"; value: string }
Select the server (guild) that your bot is connected to Default: {"mode":"list","value":""}
Source§readonly json Output?: string
readonly json Output?: string
Default: "[\n {\n "fieldLabel":"Name",\n "placeholder":"enter you 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]" Type options: {"rows":5}
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 100 Type options: {"minValue":1}
Source§readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "send"
| "deleteMessage"
| "react"
| "sendAndWait"
| "deleteChannel"
| "roleAdd"
| "roleRemove"
| "sendLegacy"
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "send"
| "deleteMessage"
| "react"
| "sendAndWait"
| "deleteChannel"
| "roleAdd"
| "roleRemove"
| "sendLegacy"
Default: "send"
Source§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;
}
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: {}
Source§readonly role?: unknown[]
readonly role?: unknown[]
Select the roles you want to add to the user Default: [] Type options: {"loadOptionsMethod":"getRoles","loadOptionsDependsOn":["userId.value","guildId.value","operation"]}
The ID of the user after which to return the members