Comments (16)
oh i see, that webhook is still using the discordapp domain (you forgot to blur it 😅), i'll PR a fix but in the meantime replace discordapp.com with discord.com from your url
from dhooks.
Have same issue
Read through this and you'll hopefully find a fix for your issue, The cause of this issue has been fixed but @kyb3r needs to push it to pypi
from dhooks.
Ah I thought I was.
Apparently, heroku was using cached dependencies of an older dhooks library even though locally I was using the latest one.
Bit of tinkering and I got it to clear cache and update. It works fine now, thanks.
from dhooks.
What is your dhooks version?
from dhooks.
1.1.4
from dhooks.
Update dhooks, latest fix will resolve the issue
from dhooks.
updated using pip and says that v1.1.4 is the latest
from dhooks.
Sorry my bad that's the latest version
from dhooks.
I've just tried with 2 webhooks (old and new) and both worked as expected, what discord client are you using? for ex: regular discord or canary etc
from dhooks.
actually, can you run this code and return the output?
import re
hook_url = "webhook url"
def hook_test1():
URL_REGEX = r'^(?:https?://)?((canary|ptb)\.)?discord\.com/api/webhooks/(?P<id>[0-9]+)/(?P<token>[A-Za-z0-9\.\-\_]+)/?$'
print(bool(re.match(URL_REGEX, hook_url)))
def hook_test2():
URL_REGEX = r'^(?:https?://)?((canary|ptb)\.)?discord(app)?\.com/api/webhooks/(?P<id>[0-9]+)/(?P<token>[A-Za-z0-9\.\-\_]+)/?$'
print(bool(re.match(URL_REGEX, hook_url)))
hook_test1()
hook_test2()
from dhooks.
Regular discord on my pc, I noticed that the new webhooks seem to have a different layout than the old ones
from dhooks.
Still getting the same error:
Traceback (most recent call last): File "c:/Users/samib/Documents/Python/Projects/newwebhooks.py", line 3, in <module> hook = Webhook('https://discordapp.com/api/webhooks/736933475734519898/R5_mA80O-Yrm0Xds_TBHjfpYrp5xIKc5M0369KoC3dNMqX-24OPkrKjltCqmiW6YuNIC') File "C:\Users\samib\AppData\Local\Programs\Python\Python38-32\lib\site-packages\dhooks\client.py", line 144, in __init__ self._parse_or_format_url() File "C:\Users\samib\AppData\Local\Programs\Python\Python38-32\lib\site-packages\dhooks\client.py", line 482, in _parse_or_format_url raise ValueError('Invalid webhook URL provided.') ValueError: Invalid webhook URL provided. PS C:\Users\samib\Documents\Python>
from dhooks.
Thanks, its alright this is on a test account and server
from dhooks.
I changed it to discord.com instead and it still didn't work
from dhooks.
are you using the latest version of dhooks (1.1.4)?
from dhooks.
Have same issue
from dhooks.
Related Issues (20)
- No module named dhooks HOT 5
- ImportError: cannot import name 'Coroutine' HOT 2
- SyntaxError: unexpected character after line continuation character HOT 4
- Now discord has changed discordapp.com to doscord.com HOT 1
- Webhook.delete() cant be awaited and raises an error when webhook is async HOT 1
- ModuleNotFoundError: No module named 'dhooks' HOT 2
- package installation failed HOT 2
- bad request error HOT 1
- suggestion: allow for multiple webhook urls HOT 1
- ImportError: cannot import name 'Webhook'
- Issue with the invite!
- suggestion: give timestamps the same functionality as in discord.py HOT 3
- [SUGGESTION] add a embed.set_description() function in the Embed object
- "ValueError: Invalid webhook URL provided." HOT 4
- URL Buttons HOT 2
- TypeError: function() argument 'code' must be code, not str HOT 1
- When two seperate scripts try and send an embed at around the same time, one of the two hits this error 'An existing connection was forcibly closed by the remote host' HOT 1
- base64 obfuscation preventing me from setting an image HOT 6
- Guild name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhooks.