n8n-nodes-discord-dnd 0.1.58 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,125 @@
1
+ import { User, Attachment, MessageReference, Poll, MessageCall } from "discord.js";
2
+ export interface ITriggerParameters {
3
+ triggerType: string;
4
+ event: string;
5
+ }
6
+ export interface n8nMessage {
7
+ id: string;
8
+ content: string;
9
+ channelId: string;
10
+ guildId: string | null;
11
+ createdTimestamp: number;
12
+ type: number;
13
+ system: boolean;
14
+ isDirectMessage: boolean;
15
+ author: User;
16
+ pinned: boolean;
17
+ tts: boolean;
18
+ nonce: string | number | null;
19
+ embeds: Array<{
20
+ title?: string;
21
+ description?: string;
22
+ url?: string;
23
+ timestamp?: string;
24
+ color?: number;
25
+ fields?: Array<{
26
+ name: string;
27
+ value: string;
28
+ inline?: boolean;
29
+ }>;
30
+ author?: {
31
+ name?: string;
32
+ url?: string;
33
+ iconURL?: string;
34
+ } | null;
35
+ footer?: {
36
+ text: string;
37
+ iconURL?: string;
38
+ } | null;
39
+ image?: {
40
+ url: string;
41
+ } | null;
42
+ thumbnail?: {
43
+ url: string;
44
+ } | null;
45
+ video?: {
46
+ url: string;
47
+ } | null;
48
+ }>;
49
+ components?: Array<{
50
+ type: number;
51
+ components: Array<{
52
+ type: number;
53
+ customId?: string;
54
+ label?: string;
55
+ style?: number;
56
+ url?: string;
57
+ disabled?: boolean;
58
+ }>;
59
+ }>;
60
+ attachments?: Array<Partial<Attachment>>;
61
+ stickers?: any[];
62
+ position?: number | null;
63
+ roleSubscriptionData?: any;
64
+ editedTimestamp: number | null;
65
+ mentions: {
66
+ everyone: boolean;
67
+ users: Array<{
68
+ id: string;
69
+ username: string;
70
+ discriminator: string;
71
+ globalName: string | null;
72
+ avatar: string | null;
73
+ }>;
74
+ roles: Array<{
75
+ id: string;
76
+ name: string;
77
+ color: number;
78
+ }>;
79
+ crosspostedChannels: Array<{
80
+ id: string;
81
+ guildId: string;
82
+ type: number;
83
+ }>;
84
+ repliedUser: {
85
+ id: string;
86
+ username: string;
87
+ discriminator: string;
88
+ globalName: string | null;
89
+ avatar: string | null;
90
+ } | null;
91
+ repliedMessage: {
92
+ id: string;
93
+ channelId: string;
94
+ guildId?: string;
95
+ content: string | null;
96
+ } | null;
97
+ members: Array<{
98
+ id: string;
99
+ nickname: string | null;
100
+ }>;
101
+ channels: Array<{
102
+ id: string;
103
+ name: string;
104
+ type: number;
105
+ }>;
106
+ };
107
+ webhookId?: string | null;
108
+ applicationId?: string | null;
109
+ activity?: any;
110
+ flags?: string[];
111
+ reference?: MessageReference | null;
112
+ interaction?: {
113
+ id: string;
114
+ type: number;
115
+ userId?: string;
116
+ } | null;
117
+ poll?: Poll | null;
118
+ messageSnapshots?: Array<{
119
+ message: {
120
+ id: string;
121
+ content: string;
122
+ };
123
+ }>;
124
+ call?: MessageCall | null;
125
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/nodes/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Interfaces/types.ts"],"names":[],"mappings":""}
@@ -1,8 +1,9 @@
1
1
  import { Message } from "discord.js";
2
+ import { n8nMessage } from "../Interfaces/types";
2
3
  /**
3
4
  * Fetches the referenced message and returns its content
4
5
  * @param message The message that contains a reference to another message
5
6
  * @returns The referenced message content or null if no reference exists
6
7
  */
7
8
  export declare function fetchReferencedMessage(message: Message): Promise<string | null>;
8
- export declare function messageToJson(message: Message): any;
9
+ export declare function messageToJson(message: Message): n8nMessage;
@@ -13,7 +13,7 @@ async function fetchReferencedMessage(message) {
13
13
  return referencedMessage.content;
14
14
  }
15
15
  catch (error) {
16
- console.error('Error fetching referenced message:', error);
16
+ console.error("Error fetching referenced message:", error);
17
17
  return null;
18
18
  }
19
19
  }
@@ -21,184 +21,156 @@ async function fetchReferencedMessage(message) {
21
21
  }
22
22
  exports.fetchReferencedMessage = fetchReferencedMessage;
23
23
  function messageToJson(message) {
24
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
25
24
  const n8nMessage = {
26
- id: message.id,
27
- content: message.content,
28
- channelId: message.channelId,
29
- guildId: message.guildId,
30
- createdTimestamp: message.createdTimestamp,
31
- type: message.type,
32
- system: message.system,
33
- isDirectMessage: !message.guild,
34
- author: {
35
- id: (_a = message.author) === null || _a === void 0 ? void 0 : _a.id,
36
- username: (_b = message.author) === null || _b === void 0 ? void 0 : _b.username,
37
- discriminator: (_c = message.author) === null || _c === void 0 ? void 0 : _c.discriminator,
38
- globalName: (_d = message.author) === null || _d === void 0 ? void 0 : _d.globalName,
39
- avatar: (_e = message.author) === null || _e === void 0 ? void 0 : _e.avatar,
40
- bot: (_f = message.author) === null || _f === void 0 ? void 0 : _f.bot,
41
- system: (_g = message.author) === null || _g === void 0 ? void 0 : _g.system,
42
- flags: (_j = (_h = message.author) === null || _h === void 0 ? void 0 : _h.flags) === null || _j === void 0 ? void 0 : _j.toArray(),
43
- banner: (_k = message.author) === null || _k === void 0 ? void 0 : _k.banner,
44
- accentColor: (_l = message.author) === null || _l === void 0 ? void 0 : _l.accentColor,
45
- avatarDecoration: (_m = message.author) === null || _m === void 0 ? void 0 : _m.avatarDecoration,
46
- },
47
- pinned: message.pinned,
48
- tts: message.tts,
49
- nonce: message.nonce,
50
- embeds: (_o = message.embeds) === null || _o === void 0 ? void 0 : _o.map((embed) => {
51
- var _a;
52
- return ({
53
- title: embed.title,
54
- description: embed.description,
55
- url: embed.url,
56
- timestamp: embed.timestamp,
57
- color: embed.color,
58
- fields: (_a = embed.fields) === null || _a === void 0 ? void 0 : _a.map((field) => ({
59
- name: field.name,
60
- value: field.value,
61
- inline: field.inline,
62
- })),
63
- author: embed.author
64
- ? {
65
- name: embed.author.name,
66
- url: embed.author.url,
67
- iconURL: embed.author.iconURL,
68
- }
69
- : null,
70
- footer: embed.footer
71
- ? {
72
- text: embed.footer.text,
73
- iconURL: embed.footer.iconURL,
74
- }
75
- : null,
76
- image: embed.image ? { url: embed.image.url } : null,
77
- thumbnail: embed.thumbnail ? { url: embed.thumbnail.url } : null,
78
- video: embed.video ? { url: embed.video.url } : null,
79
- });
80
- }),
81
- components: (_p = message.components) === null || _p === void 0 ? void 0 : _p.map((component) => {
82
- var _a;
83
- return ({
84
- type: component.type,
85
- components: (_a = component.components) === null || _a === void 0 ? void 0 : _a.map((comp) => ({
86
- type: comp.type,
87
- customId: comp.customId,
88
- label: comp.label,
89
- style: comp.style,
90
- url: comp.url,
91
- disabled: comp.disabled,
92
- })),
93
- });
94
- }),
95
- attachments: (_q = message.attachments) === null || _q === void 0 ? void 0 : _q.map((attachment) => ({
96
- id: attachment.id,
97
- url: attachment.url,
98
- filename: attachment.filename,
99
- size: attachment.size,
100
- contentType: attachment.contentType,
101
- width: attachment.width,
102
- height: attachment.height,
103
- })),
104
- stickers: (_r = message.stickers) === null || _r === void 0 ? void 0 : _r.map((sticker) => ({
105
- id: sticker.id,
106
- name: sticker.name,
107
- formatType: sticker.formatType,
108
- })),
109
- position: message.position,
110
- roleSubscriptionData: message.roleSubscriptionData,
111
- editedTimestamp: message.editedTimestamp,
112
- mentions: {
113
- everyone: (_s = message.mentions) === null || _s === void 0 ? void 0 : _s.everyone,
114
- users: ((_u = (_t = message.mentions) === null || _t === void 0 ? void 0 : _t.users) === null || _u === void 0 ? void 0 : _u.map((user) => ({
115
- id: user.id,
116
- username: user.username,
117
- discriminator: user.discriminator,
118
- globalName: user.globalName,
119
- avatar: user.avatar,
120
- }))) || [],
121
- roles: ((_w = (_v = message.mentions) === null || _v === void 0 ? void 0 : _v.roles) === null || _w === void 0 ? void 0 : _w.map((role) => ({
122
- id: role.id,
123
- name: role.name,
124
- color: role.color,
125
- }))) || [],
126
- crosspostedChannels: ((_y = (_x = message.mentions) === null || _x === void 0 ? void 0 : _x.crosspostedChannels) === null || _y === void 0 ? void 0 : _y.map((channel) => ({
127
- id: channel.id,
128
- guildId: channel.guildId,
129
- type: channel.type,
130
- }))) || [],
131
- repliedUser: ((_z = message.mentions) === null || _z === void 0 ? void 0 : _z.repliedUser)
132
- ? {
133
- id: message.mentions.repliedUser.id,
134
- username: message.mentions.repliedUser.username,
135
- discriminator: message.mentions.repliedUser.discriminator,
136
- globalName: message.mentions.repliedUser.globalName,
137
- avatar: message.mentions.repliedUser.avatar,
138
- }
139
- : null,
140
- repliedMessage: message.reference && message.reference.messageId
141
- ? {
142
- id: message.reference.messageId,
143
- channelId: message.reference.channelId,
144
- guildId: message.reference.guildId,
145
- content: null, // Will be populated if fetchReferencedMessage is called
146
- }
147
- : null,
148
- members: ((_1 = (_0 = message.mentions) === null || _0 === void 0 ? void 0 : _0.members) === null || _1 === void 0 ? void 0 : _1.map((member) => ({
149
- id: member.id,
150
- nickname: member.nickname,
151
- }))) || [],
152
- channels: ((_3 = (_2 = message.mentions) === null || _2 === void 0 ? void 0 : _2.channels) === null || _3 === void 0 ? void 0 : _3.map((channel) => ({
153
- id: channel.id,
154
- name: channel.name,
155
- type: channel.type,
156
- }))) || [],
157
- },
158
- webhookId: message.webhookId,
159
- applicationId: message.applicationId,
160
- activity: message.activity,
161
- flags: (_4 = message.flags) === null || _4 === void 0 ? void 0 : _4.toArray(),
162
- reference: message.reference
163
- ? {
164
- channelId: message.reference.channelId,
165
- guildId: message.reference.guildId,
166
- messageId: message.reference.messageId,
167
- }
168
- : null,
169
- interaction: message.interactionMetadata
170
- ? {
171
- id: message.interactionMetadata.id,
172
- type: message.interactionMetadata.type,
173
- userId: (_5 = message.interactionMetadata.user) === null || _5 === void 0 ? void 0 : _5.id,
174
- }
175
- : null,
176
- poll: message.poll
177
- ? {
178
- question: (_6 = message.poll.question) === null || _6 === void 0 ? void 0 : _6.text,
179
- answers: (_7 = message.poll.answers) === null || _7 === void 0 ? void 0 : _7.map((answer) => ({
180
- answerId: answer.answerId,
181
- text: answer.text,
182
- voteCount: answer.voteCount,
183
- })),
184
- expiresTimestamp: message.poll.expiresTimestamp,
185
- allowMultiselect: message.poll.allowMultiselect,
186
- layoutType: message.poll.layoutType,
187
- resultsFinalized: message.poll.resultsFinalized,
188
- }
189
- : null,
190
- messageSnapshots: (_8 = message.messageSnapshots) === null || _8 === void 0 ? void 0 : _8.map((snapshot) => ({
191
- message: {
192
- id: snapshot.message.id,
193
- content: snapshot.message.content,
194
- },
195
- })),
196
- call: message.call
197
- ? {
198
- endedTimestamp: message.call.endedTimestamp,
199
- participants: (_9 = message.call.participants) === null || _9 === void 0 ? void 0 : _9.map((user) => user.id),
200
- }
201
- : null,
25
+ ...message,
26
+ // id: message.id,
27
+ // content: message.content,
28
+ // channelId: message.channelId,
29
+ // guildId: message.guildId,
30
+ // createdTimestamp: message.createdTimestamp,
31
+ // type: message.type,
32
+ // system: message.system,
33
+ // isDirectMessage: !message.guild,
34
+ // author: message.author,
35
+ // pinned: message.pinned,
36
+ // tts: message.tts,
37
+ // nonce: message.nonce,
38
+ // embeds: message.embeds?.map((embed: any) => ({
39
+ // title: embed.title,
40
+ // description: embed.description,
41
+ // url: embed.url,
42
+ // timestamp: embed.timestamp,
43
+ // color: embed.color,
44
+ // fields: embed.fields?.map((field: any) => ({
45
+ // name: field.name,
46
+ // value: field.value,
47
+ // inline: field.inline,
48
+ // })),
49
+ // author: embed.author
50
+ // ? {
51
+ // name: embed.author.name,
52
+ // url: embed.author.url,
53
+ // iconURL: embed.author.iconURL,
54
+ // }
55
+ // : null,
56
+ // footer: embed.footer
57
+ // ? {
58
+ // text: embed.footer.text,
59
+ // iconURL: embed.footer.iconURL,
60
+ // }
61
+ // : null,
62
+ // image: embed.image ? { url: embed.image.url } : null,
63
+ // thumbnail: embed.thumbnail ? { url: embed.thumbnail.url } : null,
64
+ // video: embed.video ? { url: embed.video.url } : null,
65
+ // })),
66
+ // components: message.components?.map((component: any) => ({
67
+ // type: component.type,
68
+ // components: component.components?.map((comp: any) => ({
69
+ // type: comp.type,
70
+ // customId: comp.customId,
71
+ // label: comp.label,
72
+ // style: comp.style,
73
+ // url: comp.url,
74
+ // disabled: comp.disabled,
75
+ // })),
76
+ // })),
77
+ // attachments: message.attachments?.map((attachment: any) => ({
78
+ // contentType: attachment.contentType,
79
+ // description: attachment.description,
80
+ // duration: attachment.duration,
81
+ // ephemeral: attachment.ephemeral,
82
+ // flags: attachment.flags?.toArray(),
83
+ // height: attachment.height,
84
+ // id: attachment.id,
85
+ // name: attachment.name,
86
+ // proxyURL: attachment.proxyURL,
87
+ // size: attachment.size,
88
+ // spoiler: attachment.spoiler,
89
+ // title: attachment.title,
90
+ // url: attachment.url,
91
+ // waveform: attachment.waveform,
92
+ // width: attachment.width,
93
+ // })),
94
+ // stickers: message.stickers?.map((sticker: any) => ({
95
+ // id: sticker.id,
96
+ // name: sticker.name,
97
+ // formatType: sticker.formatType,
98
+ // })),
99
+ // position: message.position,
100
+ // roleSubscriptionData: message.roleSubscriptionData,
101
+ // editedTimestamp: message.editedTimestamp,
102
+ // mentions: {
103
+ // everyone: message.mentions?.everyone,
104
+ // users:
105
+ // message.mentions?.users?.map((user: any) => ({
106
+ // id: user.id,
107
+ // username: user.username,
108
+ // discriminator: user.discriminator,
109
+ // globalName: user.globalName,
110
+ // avatar: user.avatar,
111
+ // })) || [],
112
+ // roles:
113
+ // message.mentions?.roles?.map((role: any) => ({
114
+ // id: role.id,
115
+ // name: role.name,
116
+ // color: role.color,
117
+ // })) || [],
118
+ // crosspostedChannels:
119
+ // message.mentions?.crosspostedChannels?.map((channel: any) => ({
120
+ // id: channel.id,
121
+ // guildId: channel.guildId,
122
+ // type: channel.type,
123
+ // })) || [],
124
+ // repliedUser: message.mentions?.repliedUser
125
+ // ? {
126
+ // id: message.mentions.repliedUser.id,
127
+ // username: message.mentions.repliedUser.username,
128
+ // discriminator: message.mentions.repliedUser.discriminator,
129
+ // globalName: message.mentions.repliedUser.globalName,
130
+ // avatar: message.mentions.repliedUser.avatar,
131
+ // }
132
+ // : null,
133
+ // repliedMessage:
134
+ // message.reference && message.reference.messageId
135
+ // ? {
136
+ // id: message.reference.messageId,
137
+ // channelId: message.reference.channelId,
138
+ // guildId: message.reference.guildId,
139
+ // content: null, // Will be populated if fetchReferencedMessage is called
140
+ // }
141
+ // : null,
142
+ // members:
143
+ // message.mentions?.members?.map((member: any) => ({
144
+ // id: member.id,
145
+ // nickname: member.nickname,
146
+ // })) || [],
147
+ // channels:
148
+ // message.mentions?.channels?.map((channel: any) => ({
149
+ // id: channel.id,
150
+ // name: channel.name,
151
+ // type: channel.type,
152
+ // })) || [],
153
+ // },
154
+ // webhookId: message.webhookId,
155
+ // applicationId: message.applicationId,
156
+ // activity: message.activity,
157
+ // flags: message.flags?.toArray(),
158
+ // reference: message.reference,
159
+ // interaction: message.interactionMetadata
160
+ // ? {
161
+ // id: message.interactionMetadata.id,
162
+ // type: message.interactionMetadata.type,
163
+ // userId: message.interactionMetadata.user?.id,
164
+ // }
165
+ // : null,
166
+ // poll: message.poll,
167
+ // messageSnapshots: message.messageSnapshots?.map((snapshot: any) => ({
168
+ // message: {
169
+ // id: snapshot.message.id,
170
+ // content: snapshot.message.content,
171
+ // },
172
+ // })),
173
+ // call: message.call,
202
174
  };
203
175
  return n8nMessage;
204
176
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MessageTransformer.js","sourceRoot":"","sources":["../../src/transformers/MessageTransformer.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACI,KAAK,UAAU,sBAAsB,CAAC,OAAgB;IAC3D,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE;QACpD,IAAI;YACF,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC;YACzD,OAAO,iBAAiB,CAAC,OAAO,CAAC;SAClC;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KA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AC,CAAC;YAClE,OAAO,EAAE;gBACP,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACvB,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO;aAClC;SACF,CAAC,CAAC;QACH,IAAI,EAAE,OAAO,CAAC,IAAI;YAChB,CAAC,CAAC;gBACE,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,cAAc;gBAC3C,YAAY,EAAE,MAAA,OAAO,CAAC,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;aACrE;YACH,CAAC,CAAC,IAAI;KACT,CAAC;IACF,OAAO,UAAU,CAAC;AACpB,CAAC;AAnLD,sCAmLC"}
1
+ {"version":3,"file":"MessageTransformer.js","sourceRoot":"","sources":["../../src/transformers/MessageTransformer.ts"],"names":[],"mappings":";;;AAaA;;;;GAIG;AACI,KAAK,UAAU,sBAAsB,CAC1C,OAAgB;IAEhB,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE;QACpD,IAAI;YACF,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC;YACzD,OAAO,iBAAiB,CAAC,OAAO,CAAC;SAClC;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC;YAC3D,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAbD,wDAaC;AAED,SAAgB,aAAa,CAAC,OAAgB;IAC5C,MAAM,UAAU,GAAQ;QACtB,GAAG,OAAO;QACV,kBAAkB;QAClB,4BAA4B;QAC5B,gCAAgC;QAChC,4BAA4B;QAC5B,8CAA8C;QAC9C,sBAAsB;QACtB,0BAA0B;QAC1B,mCAAmC;QACnC,0BAA0B;QAC1B,0BAA0B;QAC1B,oBAAoB;QACpB,wBAAwB;QACxB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AU;QACV,+CAA+C;QAC/C,2DAA2D;QAC3D,qEAAqE;QACrE,+DAA+D;QAC/D,uDAAuD;QACvD,UAAU;QACV,cAAc;QACd,oBAAoB;QACpB,uDAAuD;QACvD,YAAY;QACZ,6CAA6C;QAC7C,oDAAoD;QACpD,gDAAgD;QAChD,oFAAoF;QACpF,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,yDAAyD;QACzD,uBAAuB;QACvB,mCAAmC;QACnC,iBAAiB;QACjB,cAAc;QACd,2DAA2D;QAC3D,wBAAwB;QACxB,4BAA4B;QAC5B,4BAA4B;QAC5B,iBAAiB;QACjB,KAAK;QACL,gCAAgC;QAChC,wCAAwC;QACxC,8BAA8B;QAC9B,mCAAmC;QACnC,gCAAgC;QAChC,2CAA2C;QAC3C,QAAQ;QACR,4CAA4C;QAC5C,gDAAgD;QAChD,sDAAsD;QACtD,QAAQ;QACR,YAAY;QACZ,sBAAsB;QAEtB,wEAAwE;QACxE,eAAe;QACf,+BAA+B;QAC/B,yCAAyC;QACzC,OAAO;QACP,OAAO;QACP,sBAAsB;KACvB,CAAC;IACF,OAAO,UAAU,CAAC;AACpB,CAAC;AA1JD,sCA0JC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-discord-dnd",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "n8n node to create triggers for Discord events",
5
5
  "keywords": [
6
6
  "n8n",
@@ -1,4 +0,0 @@
1
- export interface ITriggerParameters {
2
- triggerType: string;
3
- event: string;
4
- }
File without changes