krisppurg / dimscord

A Discord Bot & REST Library for Nim.
https://krisppurg.github.io/dimscord/
MIT License
222 stars 22 forks source link

Removing trailing slash from global commands endpoint #43

Closed ire4ever1190 closed 3 years ago

ire4ever1190 commented 3 years ago

A 404 error happens when registering a global slash command. This is because there is a trailing slash and so the url "https://discord.com/api/v8/applications/<my_application_id>/commands/" is called instead of `"https://discord.com/api/v8/applications//commands"

I have tested this and it registers the command without 404 error