Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/Discord/v1/Interfaces.ts
Michael Kret 6a53c2a375 feat(Discord Node): Overhaul (#5351)
Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
Co-authored-by: Marcus <marcus@n8n.io>
2023-11-08 16:11:23 +02:00

32 lines
608 B
TypeScript

export interface DiscordWebhook {
content?: string;
username?: string;
avatar_url?: string;
tts?: boolean;
file?: Buffer;
embeds?: any[];
allowed_mentions?: {
parse: Array<'roles' | 'users' | 'everyone'>;
roles: string[];
users: string[];
replied_user: boolean;
};
flags?: number;
attachments?: DiscordAttachment[];
components?: any[];
payload_json?: any;
}
export interface DiscordAttachment {
id?: string;
filename?: string;
size?: number;
description?: string;
content_type?: string;
url?: string;
proxy_url?: string;
height?: number;
width?: number;
ephemeral?: boolean;
}