mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
remove empty lines
This commit is contained in:
parent
9edb4c01f2
commit
83fedd4df1
1 changed files with 0 additions and 1 deletions
|
@ -10,7 +10,6 @@ export function executeWebhook(_, url: string, body: object) {
|
|||
const { hostname, pathname } = new URL(url);
|
||||
|
||||
if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(hostname) || !pathname.startsWith("/api/webhooks/")) {
|
||||
|
||||
throw new Error("This URL is not a valid webhook.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue