ShareShortcuts

Discord WD

Discord Webhook Deleter

znugget
Fork “Discord WD”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so znugget gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
49K
Saved
3
Actions
26
Category
API
Version
1.0
Language
EN

Discord Webhook Deleter. Currently works with Discord, Fosscord, and Discord PTB

What's New

Version 1.0

First release

Version History
1.0 Jul 1, 2021

First release

What it does

26 actions
  1. Comment
    Created and tested by zNugget#9999.
  2. Ask for Input
    Webhook URL:
  3. Set Variable
    WEBHOOK
  4. Comment
    Webhook deletion under this comment.
  5. Get Contents of URL
    …
  6. Comment
    Deletion checking under this comment.
  7. Get Contents of URL
    …
  8. Text
  9. If
  10. Show Alert
  11. Choose from Menu
    Discord WD
  12. Choose from Menu
    Delete Another Webhook
  13. Run Shortcut
    Discord WD
  14. Choose from Menu
    Exit
  15. Stop This Shortcut
  16. If
  17. Get Contents of URL
    …
  18. Text
  19. If
  20. Show Alert
  21. Choose from Menu
    Discord WD
  22. Choose from Menu
    Delete Another Webhook
  23. Run Shortcut
    Discord WD
  24. Choose from Menu
    Exit
  25. Stop This Shortcut
  26. If

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color green
#define glyph recycle

// Created and tested by zNugget#9999.

prompt("Webhook URL:", "URL")
@WEBHOOK
// Webhook deletion under this comment.

fileRequest(@WEBHOOK, "DELETE")
// Deletion checking under this comment.

downloadURL(@WEBHOOK)
const Text = "{}"

if Text contains "404" {
	confirm("Webhook successfully deleted!")
	menu "Discord WD" {
	item "Delete Another Webhook":
		runSelf()
	item "Exit":
		stop()
	}
} else {
}
downloadURL(@WEBHOOK)
const Text1 = "{}"

if Text1 contains "200" {
	alert("Failed to delete Webhook. (Incorrect URL?)", "")
	menu "Discord WD" {
	item "Delete Another Webhook":
		runSelf()
	item "Exit":
		stop()
	}
} else {
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by znugget

See All

You Might Also Like

See All
Advertisement