n8n/packages/nodes-base/credentials/DiscordWebhookApi.credentials.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
491 B
TypeScript
Raw Normal View History

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,
},
},
];
}