Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discord has changed the default endpoint url to discordapp.com and broken dhooks parsing #57

Open
idkthrowaway123 opened this issue Dec 18, 2024 · 1 comment

Comments

@idkthrowaway123
Copy link

idkthrowaway123 commented Dec 18, 2024

discord seems to now be using discordapp.com instead of discord.com in their webhook urls (discord.com still works for now, so you can just remove 'app' from the url) and dhooks doesn't detect the discordapp.com variants as valid webhooks. idk if this module is still supported but if not then maybe it will help someone else running into the same issue

ENDPOINT = 'https://discord.com/api/webhooks/{id}/{token}'

self.url = self.ENDPOINT.format(id=self.id, token=self.token)

these seem to be the pertinent lines

EDIT: i looked into some older issues and it seems like I somehow managed to get an outdated version of the module through pip install without the most recent commits which addressed this. it also sounds like discordapp.com is the old endpoint but discord still gave me that url through the built-in "copy webhook" button today.

@TheLovinator1
Copy link
Contributor

TheLovinator1 commented Dec 18, 2024

You should probably look at lovvskillz/python-discord-webhook instead of using kyb3r/dhooks.

But it looks like lovvskillz/python-discord-webhook also has problems lovvskillz/python-discord-webhook#159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants