Skip to content

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

@idkthrowaway123

Description

@idkthrowaway123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions