mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
24 lines
491 B
TypeScript
24 lines
491 B
TypeScript
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||
|
|
||
|
export class DiscordWebhookApi implements ICredentialType {
|
||
|
name = 'discordWebhookApi';
|
||
|
|
||
|
displayName = 'Discord Webhook';
|
||
|
|
||
|
documentationUrl = 'discord';
|
||
|
|
||
|
properties: INodeProperties[] = [
|
||
|
{
|
||
|
displayName: 'Webhook URL',
|
||
|
name: 'webhookUri',
|
||
|
type: 'string',
|
||
|
required: true,
|
||
|
default: '',
|
||
|
placeholder: 'https://discord.com/api/webhooks/ID/TOKEN',
|
||
|
typeOptions: {
|
||
|
password: true,
|
||
|
},
|
||
|
},
|
||
|
];
|
||
|
}
|