galnir / Master-Bot

A Discord music bot and dashboard with slash commands, playlist support, Spotify, music quiz, saved playlists, lyrics, gifs and more
MIT License
464 stars 373 forks source link

Top and Controversial not working in Reddit command #789

Closed Natemo2625 closed 1 year ago

Natemo2625 commented 1 year ago

IMPORTANT : DO NOT SKIP THIS STEPS AND DO NOT DELETE THEM. WE CAN NOT HELP YOU IF YOU DO NOT PROVIDE INFORMATION AND STEPS TO REPRODUCE

Do not open an issue if you simply "copied" code over to your bot/another bot. This is absolutely not recommended and will cause bugs. Also do not open an issue if you modified code and added features and now it's not working right. This is because I can't figure it out and don't have the time to read your code and find out what you did wrong.

Describe the bug A clear and concise description of what the bug is. Every time I try to sort posts with top or controversial, it continuously says that it is thinking, while console says error: Command Chat Input DiscordAPIError[50035]: Invalid Form Body [1] components[0].components[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (5, 8, 4, 7, 3, 2, 6). To Reproduce Steps to reproduce the behavior:

  1. Use 'reddit' command
  2. provide 'top' or 'controversial' argument for sort
  3. Get error and never get response

Expected behavior A clear and concise description of what you expected to happen. It should have sent response with top or controversial sort Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here. The other 'sort' options work just fine

Bacon-Fixation commented 1 year ago

Howdy @Natemo6348,

Thank you for reporting the bug, I have posted Pr #790 which should resolve this issue my friend

Much Love -Bacon

Natemo2625 commented 1 year ago

Thanks @Bacon-Fixation for the fix, I was gonna attempt to fix it myself, but I just couldn't make sense of it lol