mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
oopsie
This commit is contained in:
parent
e9cb2eccec
commit
46e4fc664a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export default definePlugin({
|
||||||
await fetch("" + findOption(option, "url"), { method: "DELETE" }).then(() => sendBotMessage(ctx.channel.id, { content: "The webhook has deleted successfully." }));
|
await fetch("" + findOption(option, "url"), { method: "DELETE" }).then(() => sendBotMessage(ctx.channel.id, { content: "The webhook has deleted successfully." }));
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(findOption(option, "url")) || !pathname.startsWith("/api/webhooks/")) {
|
if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(findOption(option, "url")) || !findOption(option, "url").startsWith("/api/webhooks/")) {
|
||||||
sendBotMessage(ctx.channel.id, {
|
sendBotMessage(ctx.channel.id, {
|
||||||
content: "Please input a valid webhook URL to delete."
|
content: "Please input a valid webhook URL to delete."
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue