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
parent
e2970394d0
commit
ff5707c40f
|
@ -28,6 +28,9 @@ Close the Modmail thread after a timer. Sending a message to the user or receivi
|
||||||
|
|
||||||
**Example:** `!close 15m`
|
**Example:** `!close 15m`
|
||||||
|
|
||||||
|
### `!close -s` / `!close -s <time>`
|
||||||
|
Close the Modmail thread without notifying the user that it was closed.
|
||||||
|
|
||||||
### `!close cancel`
|
### `!close cancel`
|
||||||
Cancel a timed close.
|
Cancel a timed close.
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ module.exports = ({ bot, knex, config, commands }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Silent close (= no close message)
|
// 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;
|
silentClose = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue