You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In terms of usability, a single command is better. I mean...
# Different commands
?issue-by-id codesupport/discord-bot 37
# Same command
?issues codesupport/discord-bot 37
If we were to make two different commands, we could name them IssueCommand and IssuesCommand, it would keep the command name short, although it could also make things more confusing.
# 3 recentmost issues
?issues codesupport/discord-bot
# Get issue 37, must supply an issue id
?issue codesupport/discord-bot 37
I prefer having a single command. I also would like to leave the suggestion of adding issue as an alias for IssuesCommand if we choose to keep it in a single command.
I think that splitting the embed generation in two private methods is nice for readability, and the syntax you proposed is nice too.
The code wouldn't be that hard to add an optional param to the Issues command.
Design Questions:
Example syntax would be ?issues codesupport/discord-bot 37
The text was updated successfully, but these errors were encountered: