PKlempe / SAM

SAM is a multi-functional Discord Bot specifically designed for the Server of the Faculty of Computer Science at the University of Vienna.
GNU General Public License v3.0
27 stars 5 forks source link

Modify modmail command to accept a keyword-only arguiment instead of parsing the message via code #230

Closed PKlempe closed 3 years ago

PKlempe commented 3 years ago

Right now, the modmail command doesn't explicitly have any arguments specified and a possible message will be parsed by slicing the Discord message which invoked the command. Instead of taking the message and removing the !modmail at the beginning of it, one can simply use a so called keyword-only argument instead. This way, the generated help message of said command, will specify the need of a string as an argument and it won't be possible to send modmails with no content to moderators.