Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
b6ce6ca
1
Parent(s):
a600d17
- discord.ts +2 -2
discord.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { RESTPostAPIWebhookWithTokenJSONBody } from 'discord-api-types/v10';
|
2 |
|
3 |
export async function executeWebhook(webhookUrl: string, imageBlob: Blob, filename: string = 'image.jpg') {
|
4 |
const formData = new FormData();
|
@@ -13,7 +13,7 @@ export async function executeWebhook(webhookUrl: string, imageBlob: Blob, filena
|
|
13 |
filename,
|
14 |
},
|
15 |
],
|
16 |
-
flags:
|
17 |
};
|
18 |
|
19 |
formData.append('payload_json', JSON.stringify(payload));
|
|
|
1 |
+
import { MessageFlags, RESTPostAPIWebhookWithTokenJSONBody } from 'discord-api-types/v10';
|
2 |
|
3 |
export async function executeWebhook(webhookUrl: string, imageBlob: Blob, filename: string = 'image.jpg') {
|
4 |
const formData = new FormData();
|
|
|
13 |
filename,
|
14 |
},
|
15 |
],
|
16 |
+
flags: MessageFlags.SuppressNotifications,
|
17 |
};
|
18 |
|
19 |
formData.append('payload_json', JSON.stringify(payload));
|