mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
hope this adds attachment support, if not i may need help
This commit is contained in:
parent
736fef879e
commit
610c48fe92
1 changed files with 3 additions and 1 deletions
|
@ -141,6 +141,7 @@ export default definePlugin({
|
||||||
|
|
||||||
const webhookUrl = findOption(option, "url");
|
const webhookUrl = findOption(option, "url");
|
||||||
const webhookMessage = findOption(option, "message");
|
const webhookMessage = findOption(option, "message");
|
||||||
|
const webhookAttachment = findOption(option, "attachment");
|
||||||
let webhookUsername = findOption(option, "username");
|
let webhookUsername = findOption(option, "username");
|
||||||
if (findOption(option, "raw")) {
|
if (findOption(option, "raw")) {
|
||||||
Native.executeWebhook("" + webhookUrl, {
|
Native.executeWebhook("" + webhookUrl, {
|
||||||
|
@ -154,7 +155,8 @@ export default definePlugin({
|
||||||
content: webhookMessage,
|
content: webhookMessage,
|
||||||
username: webhookUsername,
|
username: webhookUsername,
|
||||||
avatar_url: "",
|
avatar_url: "",
|
||||||
tts: findOption(option, "tts")
|
tts: findOption(option, "tts"),
|
||||||
|
attachments: webhookAttachment
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue