discordlist-gg / beta-issues

5 stars 1 forks source link

[bug] Importing Commands JSON fails #305

Closed Luna-devv closed 2 years ago

Luna-devv commented 2 years ago

Page

https://beta.discordlist.gg/bot/857230367350063104/commands

Description

Importing Array

I tried importing 18 commands using the discord JSON structure I copied from discord.com/api/applications/:id/commands (Link to JSON). While doing that, I got a success message that 18 commands were added, but at the same time I landed on the something went wrong page. From 18 total commands, only 10 really showed up in /manage/commands.

https://c.lunish.nl/HELm.png Console: https://c.lunish.nl/7FaV.png

Importing Object

While trying to add the missing commands via JSON, I got this error https://c.lunish.nl/2bdC.png

note that this has the same content as the conversation in #discussions

Notify on issue updates

Discord username

ルナ#8888

Le0Developer commented 2 years ago

There are 2 issues here:

  1. the backend is limiting the length of the syntax field to 64
  2. the frontend does not handle backend errors (backend gives the frontend a 400 and it just dies)
Luna-devv commented 2 years ago

Another thing is, how is the frontend supposed to display like 15 options some of my commands have

audn commented 2 years ago

Fixed 🎉

I will proceed to close the issue.

Thank you for contributing during beta!