diff options
| author | 2021-01-20 23:18:24 +0400 | |
|---|---|---|
| committer | 2021-01-20 23:18:24 +0400 | |
| commit | 73e89b8a7c8f12ae781aa0228e9b67c13232a34c (patch) | |
| tree | 0c6bf81d086e965c07d4dca4c7c8d410ad141646 | |
| parent | Duck Pond: Add `is_helper_viewable` check (diff) | |
Make type hints uniform across file
| -rw-r--r-- | bot/exts/fun/duck_pond.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/duck_pond.py b/bot/exts/fun/duck_pond.py index 43be0dd83..c97f4b0cc 100644 --- a/bot/exts/fun/duck_pond.py +++ b/bot/exts/fun/duck_pond.py @@ -118,7 +118,7 @@ class DuckPond(Cog): except discord.HTTPException: log.exception("Failed to send an attachment to the webhook") - async def locked_relay(self, message: discord.Message) -> bool: + async def locked_relay(self, message: Message) -> bool: """Relay a message after obtaining the relay lock.""" if self.relay_lock is None: # Lazily load the lock to ensure it's created within the @@ -216,7 +216,7 @@ class DuckPond(Cog): @command(name="duckify", aliases=("duckpond", "pondify")) @has_any_role(constants.Roles.admins) - async def duckify(self, ctx: Context, message: discord.Message) -> None: + async def duckify(self, ctx: Context, message: Message) -> None: """Relay a message to the duckpond, no ducks required!""" if await self.locked_relay(message): await ctx.message.add_reaction("🦆") |