Document silent close, allow silent to be passed like other options (#528)

!loglink accepts options prefixed with a dash, which often leads to
users using close the same way and it not working as expected.
cshd
Lilly Rose Berner 2021-01-07 19:24:26 +01:00 committed by GitHub
parent e2970394d0
commit ff5707c40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,9 @@ Close the Modmail thread after a timer. Sending a message to the user or receivi
**Example:** `!close 15m`
### `!close -s` / `!close -s <time>`
Close the Modmail thread without notifying the user that it was closed.
### `!close cancel`
Cancel a timed close.

View File

@ -104,7 +104,7 @@ module.exports = ({ bot, knex, config, commands }) => {
}
// Silent close (= no close message)
if (args.opts.includes("silent") || args.opts.includes("s")) {
if (args.opts.includes("silent") || args.opts.includes("s") || args.opts.includes("-s")) {
silentClose = true;
}