mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
32 lines
608 B
TypeScript
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;
|
||
|
}
|