galacticwarrior9 / IslamBot

A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
GNU General Public License v3.0
87 stars 36 forks source link

Add Slash Command Error Handling and Surah names #54

Closed itzmk21 closed 1 year ago

itzmk21 commented 1 year ago

Turns out, it was as simple as adding @slash_command.error to wherever it said @command.error A lot of commands didn't need it since BadArgument or MissingArgument is impossible with slash commands enforcing it natively.

Added the "Main" section again to the Help command choices because 25 is the max and apparently doing list() to something that already is a list solves the fact that there was always 1 topic missing from there.

Added the ability to specify Surah names - closes #5 Added the ability to give a dua/tafsir/translation name that could be misspelt to try to be recognised as something valid

itzmk21 commented 1 year ago

Please squash into 1 commit :sweat_smile: