mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
[style]fix missing line
This commit is contained in:
parent
2c20a85871
commit
0207b9fa12
1 changed files with 3 additions and 2 deletions
|
@ -73,7 +73,6 @@ export default definePlugin({
|
||||||
"# Webhook Creator Information: \n " +
|
"# Webhook Creator Information: \n " +
|
||||||
"Creator UserID: " + response.user.id + "\n" +
|
"Creator UserID: " + response.user.id + "\n" +
|
||||||
"Creator Profile: [Click Me](https://img.discord.dog/" + response.user.id + ") \n"
|
"Creator Profile: [Click Me](https://img.discord.dog/" + response.user.id + ") \n"
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -103,6 +102,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
execute: async (option, ctx) => {
|
execute: async (option, ctx) => {
|
||||||
|
// discord seems to have updated their webhook api, sending messages has changed, will work on soon
|
||||||
const request = new XMLHttpRequest();
|
const request = new XMLHttpRequest();
|
||||||
request.open("POST", "" + findOption(option, "url"));
|
request.open("POST", "" + findOption(option, "url"));
|
||||||
request.setRequestHeader('Content-type', 'application/json');
|
request.setRequestHeader('Content-type', 'application/json');
|
||||||
|
@ -114,6 +114,7 @@ export default definePlugin({
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
content: "" + findOption(option, "message"),
|
content: "" + findOption(option, "message"),
|
||||||
|
tts: "" + findOption(option, "tts")
|
||||||
};
|
};
|
||||||
|
|
||||||
request.send(JSON.stringify(params));
|
request.send(JSON.stringify(params));
|
||||||
|
@ -124,4 +125,4 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue