TeamOctolings / Octobot

A general-purpose Discord bot for moderation written in C#

Home Page:https://teamoctolings.github.io/Octobot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsing errors are not shown to the end user

Octol1ttle opened this issue · comments

Description

If a slash command argument is passed incorrectly, the end user will only receive a red "The application did not respond." with no feedback regarding their mistake

Expected vs. Actual Behavior

The bot should notify the user telling them what arguments are passed wrong and in what way, but currently the bot doesn't reply at all

Reproduction Steps

Try to pass an invalid TimeSpan to /remind

Other Information

The code that handles preparation errors assumes that these errors can only be caused by a bug. However, malformed inputs can also throw an error. LogResult explicitly prohibits user errors from being logged, so neither the developers nor the user knows about the issue.