From 9c96c41928f999c3c6163e4fcdcaa762fbf4b786 Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Date: Mon, 1 Jul 2019 15:39:01 +0200 Subject: Apply docstring and logging message suggestions Co-Authored-By: Mark --- bot/cogs/watchchannels/watchchannel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/watchchannels/watchchannel.py b/bot/cogs/watchchannels/watchchannel.py index 8f0bc765d..020eabe45 100644 --- a/bot/cogs/watchchannels/watchchannel.py +++ b/bot/cogs/watchchannels/watchchannel.py @@ -40,7 +40,7 @@ def proxy_user(user_id: str) -> Object: class WatchChannel(ABC): - """ABC that implements watch channel functionality to relay all messages of a user to a watch channel.""" + """ABC with functionality for relaying users' messages to a certain channel.""" @abstractmethod def __init__(self, bot: Bot, destination, webhook_id, api_endpoint, api_default_params, logger) -> None: @@ -100,7 +100,7 @@ class WatchChannel(ABC): else: break else: - self.log.error(f"Failed to retrieve the text channel with id `{self.destination}") + self.log.error(f"Failed to retrieve the text channel with id {self.destination}") # `get_webhook_info` has been renamed to `fetch_webhook` in newer versions of d.py try: -- cgit v1.2.3