shorter lines

Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
byeoon 2024-06-07 16:02:24 -04:00 committed by GitHub
parent 9ee1b5ba6e
commit d7036c5886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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, {