mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
revert error change
This commit is contained in:
parent
46e4fc664a
commit
d29d5e9476
1 changed files with 0 additions and 6 deletions
|
@ -35,12 +35,6 @@ export default definePlugin({
|
|||
await fetch("" + findOption(option, "url"), { method: "DELETE" }).then(() => sendBotMessage(ctx.channel.id, { content: "The webhook has deleted successfully." }));
|
||||
}
|
||||
catch (error) {
|
||||
if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(findOption(option, "url")) || !findOption(option, "url").startsWith("/api/webhooks/")) {
|
||||
sendBotMessage(ctx.channel.id, {
|
||||
content: "Please input a valid webhook URL to delete."
|
||||
});
|
||||
}
|
||||
|
||||
sendBotMessage(ctx.channel.id, {
|
||||
content: "There was an error deleting the webhook. Did you input a valid webhook URL? Error: " + error
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue