mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
shorter lines
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
9ee1b5ba6e
commit
d7036c5886
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,12 @@ export default definePlugin({
|
|||
],
|
||||
execute: async (option, ctx) => {
|
||||
try {
|
||||
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"
|
||||
});
|
||||
sendBotMessage(ctx.channel.id, {
|
||||
content: "The webhook has deleted successfully."
|
||||
});
|
||||
}
|
||||
catch (error) {
|
||||
sendBotMessage(ctx.channel.id, {
|
||||
|
|
Loading…
Reference in a new issue