Skip to content

Why is this a valid discord:... URL? #950

Closed Answered by caronc
dgtlmoon asked this question in Q&A
Discussion options

You must be logged in to vote

Because all of the plugins support the url the provider suggests you use (for user friendliness)
Discord example: https://github.com/caronc/apprise/blob/1b2d1ca8247cc4c88e78d1080c0f12505b4ff236/apprise/plugins/NotifyDiscord.py#L652C3-L652C3

It works for Slack and MS Teams and a number of other services too. Apprise is built on URLs, it only made sense to try and reverse/support http:// and https:// provided ones too 🚀🙂.

Is this your question?

Edit: i think i see what your asking; the add() call can take more then one URL separated by spaces. In your example, the Discord: will fall to be parsed, and the second every entry will succeed.

If you did a len(apobj)on the next line (after add cal…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dgtlmoon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants