diff options
| author | 2020-03-20 12:04:41 -0500 | |
|---|---|---|
| committer | 2020-03-20 12:04:41 -0500 | |
| commit | f39b2ebbb09d31a4dad0f5436c7bf450685f8d59 (patch) | |
| tree | 50e7e72d44cffdf94d242c002d44d391d2c44bae | |
| parent | Nesting reduced, logging cleaned up and made clearer (diff) | |
Updated doc strings to be more descriptive
Co-Authored-By: Mark <[email protected]>
| -rw-r--r-- | bot/cogs/watchchannels/bigbrother.py | 14 | 
1 files changed, 12 insertions, 2 deletions
diff --git a/bot/cogs/watchchannels/bigbrother.py b/bot/cogs/watchchannels/bigbrother.py index caae793bb..fbc779bcc 100644 --- a/bot/cogs/watchchannels/bigbrother.py +++ b/bot/cogs/watchchannels/bigbrother.py @@ -61,7 +61,12 @@ class BigBrother(WatchChannel, Cog, name="Big Brother"):          await self.apply_unwatch(ctx, user, reason)      async def apply_watch(self, ctx: Context, user: FetchedMember, reason: str) -> None: -        """Handles adding a user to the watch list.""" +        """ +        Add `user` to watched users and apply a watch infraction with `reason`. + +        A message indicating the result of the operation is sent to `ctx`. +        The message will include `user`'s previous watch infraction history, if it exists. +        """          if user.bot:              await ctx.send(f":x: I'm sorry {ctx.author}, I'm afraid I can't do that. I only watch humans.")              return @@ -101,7 +106,12 @@ class BigBrother(WatchChannel, Cog, name="Big Brother"):          await ctx.send(msg)      async def apply_unwatch(self, ctx: Context, user: FetchedMember, reason: str, banned: bool = False) -> None: -        """Handles the actual user removal from the watch list.""" +        """ +        Remove `user` from watched users and mark their infraction as inactive with `reason`. + +        If `send_message` is True, a message indicating the result of the operation is sent to +        `ctx`. +        """          active_watches = await self.bot.api_client.get(              self.api_endpoint,              params=ChainMap(  |