CodeGrind-Team / CodeGrind-Bot

Elevate your LeetCode experience with CodeGrind Bot: Compete on leaderboards, retrieve LeetCode problems, and track your progress! 🚀
https://top.gg/bot/1059122559066570885
Other
17 stars 9 forks source link

Add choices and descriptions to command parameters #90

Closed Kevin-Roman closed 5 months ago

Kevin-Roman commented 1 year ago

https://stackoverflow.com/questions/72043793/discord-py-how-to-create-choice-with-slash-command

Kevin-Roman commented 5 months ago

As part of https://github.com/CodeGrind-Team/CodeGrind-Bot/pull/138, choices are done through enums, and description and choice descriptions are written and docstring and discord.py automatically uses that for the discord descriptions.