Skip to content

Allow choice of discord API version #9

@Jodenee

Description

@Jodenee

It seems that the proxy limits users to v6 of the Discord API (at the time of writing), I think adding an option to use for example v10 of the API would make a great addition to the proxy.

example of new url:
https://webhook.lewisakura.moe/api/webhooks/123/tokengoeshere can be left using the default discord API version.
https://webhook.lewisakura.moe/api/v10/webhooks/123/tokengoeshere make the request of v10 of the discord API.

Why I think this feature should be added:

  1. v6 is deprecated and forcing users of the proxy to use it is bad.
  2. Discord docs only show info about v10 of the API (at the time of writing), so if any big changes happened from v6 and v10 it would result in unexpected behaviour, take for example the ratelimit header Retry-After being in milliseconds in v6 and being in seconds as of v8. Retry-After not documented discord/discord-api-docs#2360 (comment)
  3. As it currently stands, once v6 is no longer available and a new version is made the default will result in code either breaking or not working as intended, allowing users of the proxy to choose their version would allow the users of the proxy to switch API version on their own terms instead. Take for example a user using v9, when v9 gets deprecated they should then migrate their v9 code and make it work with v10 of the Discord API and finalise the switch.

lmk if anymore information or clarification about my issue is needed 👍

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