mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
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>
This commit is contained in:
31
packages/nodes-base/nodes/Discord/v1/Interfaces.ts
Normal file
31
packages/nodes-base/nodes/Discord/v1/Interfaces.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user