diff options
author | 2019-10-28 12:37:24 +0800 | |
---|---|---|
committer | 2019-10-28 12:37:24 +0800 | |
commit | bab7fc2e4600bd89a62ad07dd8177de0ff943343 (patch) | |
tree | 5a39aa913476d4e6524bc4c8658edb70f82661b9 | |
parent | Add delete emoji to pagination (diff) |
Apply suggestions from code review
Fix incorrect docstring and comment
Co-Authored-By: Mark <[email protected]>
-rw-r--r-- | bot/pagination.py | 2 | ||||
-rw-r--r-- | bot/utils/messages.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/pagination.py b/bot/pagination.py index 11f7c77fe..8e3329c4b 100644 --- a/bot/pagination.py +++ b/bot/pagination.py @@ -397,7 +397,7 @@ class ImagePaginator(Paginator): # Clear reaction press - [:x:] if reaction.emoji == CLEAR_EMOJI: - log.debug("Got delete reaction") + log.debug("Got clear reaction") break # Delete reaction press - [:trashcan:] diff --git a/bot/utils/messages.py b/bot/utils/messages.py index 654d71797..7ab35257c 100644 --- a/bot/utils/messages.py +++ b/bot/utils/messages.py @@ -39,7 +39,7 @@ async def wait_for_deletion( await message.add_reaction(emoji) def check(reaction: Reaction, user: Member) -> bool: - """Check that the deletion emoji is reacted by the approprite user.""" + """Check that the deletion emoji is reacted by the appropriate user.""" return ( reaction.message.id == message.id and str(reaction.emoji) in deletion_emojis |