You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constwebhookURL='https://discord.com/api/webhooks/1059998584889688134/eUqXbInp90bcFdL1A3ly141TAtn9jiPjbYwCzSfjPV2-4kx2UIX3M-soCJxWTrvSNbLP';// Replace with your Discord webhook URL
63
+
64
+
constdata={
65
+
embeds: [
66
+
{
67
+
title: "New stemformulas.com formula suggestion",
68
+
fields: [
69
+
{
70
+
name: "Title",
71
+
value: title,
72
+
inline: true,
73
+
},
74
+
{
75
+
name: "Description",
76
+
value: description,
77
+
inline: true,
78
+
},
79
+
{
80
+
name: "Tags",
81
+
value: tags,
82
+
inline: true,
83
+
},
84
+
{
85
+
name: "LaTeX",
86
+
value: `\`\`\`latex\n${latex}\n\`\`\``,
87
+
inline: false,
88
+
},
89
+
{
90
+
name: "Body",
91
+
value: `\`\`\`markdown\n${body}\n\`\`\``,
92
+
inline: false,
93
+
},
94
+
],
95
+
color: 0x00ff00,// Green color for the embed
96
+
},
97
+
],
98
+
};
99
+
100
+
fetch(webhookURL,{
101
+
method: 'POST',
102
+
headers: {
103
+
'Content-Type': 'application/json',
104
+
},
105
+
body: JSON.stringify(data),
106
+
})
107
+
.then((response)=>{
108
+
if(response.ok){
109
+
alert('Submission sent successfully. Thank you!');
110
+
}else{
111
+
alert('Failed to send submission. Please try again.');
constwebhookURL='https://discord.com/api/webhooks/1059998584889688134/eUqXbInp90bcFdL1A3ly141TAtn9jiPjbYwCzSfjPV2-4kx2UIX3M-soCJxWTrvSNbLP';// Replace with your Discord webhook URL
194
-
195
-
constdata={
196
-
embeds: [
197
-
{
198
-
title: "New stemformulas.com formula suggestion",
199
-
fields: [
200
-
{
201
-
name: "Title",
202
-
value: title,
203
-
inline: true,
204
-
},
205
-
{
206
-
name: "Description",
207
-
value: description,
208
-
inline: true,
209
-
},
210
-
{
211
-
name: "Tags",
212
-
value: tags,
213
-
inline: true,
214
-
},
215
-
{
216
-
name: "LaTeX",
217
-
value: `\`\`\`latex\n${latex}\n\`\`\``,
218
-
inline: false,
219
-
},
220
-
{
221
-
name: "Body",
222
-
value: `\`\`\`markdown\n${body}\n\`\`\``,
223
-
inline: false,
224
-
},
225
-
],
226
-
color: 0x00ff00,// Green color for the embed
227
-
},
228
-
],
229
-
};
230
-
231
-
fetch(webhookURL,{
232
-
method: 'POST',
233
-
headers: {
234
-
'Content-Type': 'application/json',
235
-
},
236
-
body: JSON.stringify(data),
237
-
})
238
-
.then((response)=>{
239
-
if(response.ok){
240
-
alert('Submission sent successfully. Thank you!');
241
-
}else{
242
-
alert('Failed to send submission. Please try again.');
0 commit comments