diff options
| author | 2021-03-02 20:45:20 +0200 | |
|---|---|---|
| committer | 2021-03-02 20:45:20 +0200 | |
| commit | ca3389eb2e2a796c5f757b37e5e2fa6f308c4dbf (patch) | |
| tree | 45263687fec7b0781c98f3e397d8c61e8c89b14c | |
| parent | Retain 'd' alias for threshold command (diff) | |
Improved docstring for threshold command.
| -rw-r--r-- | bot/exts/moderation/defcon.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bot/exts/moderation/defcon.py b/bot/exts/moderation/defcon.py index 86dece518..02302612f 100644 --- a/bot/exts/moderation/defcon.py +++ b/bot/exts/moderation/defcon.py @@ -161,7 +161,14 @@ class Defcon(Cog): async def threshold( self, ctx: Context, threshold: Union[DurationDelta, int], expiry: Optional[Expiry] = None ) -> None: - """Set how old an account must be to join the server.""" + """ + Set how old an account must be to join the server. + + The threshold is the minimum required account age. Can accept either a duration string or a number of days. + Set it to 0 to have no threshold. + The expiry allows to automatically remove the threshold after a designated time. If no expiry is specified, + the cog will remind to remove the threshold hourly. + """ if isinstance(threshold, int): threshold = relativedelta(days=threshold) await self._update_threshold(ctx.author, threshold=threshold, expiry=expiry) |