Skip to content

Commit

Permalink
Document silent close, allow silent to be passed like other options (#…
Browse files Browse the repository at this point in the history
…528)

!loglink accepts options prefixed with a dash, which often leads to
users using close the same way and it not working as expected.
  • Loading branch information
LostLuma authored Jan 7, 2021
1 parent e297039 commit ff5707c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/modules/close.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ff5707c

Please sign in to comment.