diff options
| author | 2021-07-23 14:57:08 +0100 | |
|---|---|---|
| committer | 2021-07-23 14:57:08 +0100 | |
| commit | 17234954f2ca61c543225d110edbc22edcb55f9b (patch) | |
| tree | ce528d15430a48bfb860ec38cc2c85c1b8ddc444 | |
| parent | Remove trailing whitespace (diff) | |
Add return type-hint and docstring
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index 8faff926c..a768d6af7 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -470,5 +470,6 @@ class DocCog(Cog): asyncio.create_task(self.item_fetcher.clear(), name="DocCog.item_fetcher unload clear") -def predicate_emoji_reaction(ctx: Context, error_message: Message, reaction: Reaction, user: User): +def predicate_emoji_reaction(ctx: Context, error_message: Message, reaction: Reaction, user: User) -> bool: + """Return whether command author added the `:x:` emote to the `error_message`.""" return reaction.message == error_message and user == ctx.author and str(reaction) == DELETE_ERROR_MESSAGE_REACTION |