From b1d0d30b1bc9b101d8c1a19559c42308caf6a26a Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 29 Jun 2022 15:40:14 +0100 Subject: Use the new Messageable.typing instead of the removed Messageable.trigger_typing --- bot/converters.py | 2 +- bot/exts/info/pep.py | 2 +- bot/exts/moderation/metabase.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/converters.py b/bot/converters.py index 8a140e0c2..5800ea044 100644 --- a/bot/converters.py +++ b/bot/converters.py @@ -216,7 +216,7 @@ class Inventory(Converter): @staticmethod async def convert(ctx: Context, url: str) -> t.Tuple[str, _inventory_parser.InventoryDict]: """Convert url to Intersphinx inventory URL.""" - await ctx.trigger_typing() + await ctx.typing() try: inventory = await _inventory_parser.fetch_inventory(url) except _inventory_parser.InvalidHeaderError: diff --git a/bot/exts/info/pep.py b/bot/exts/info/pep.py index d4df5d932..6c659379f 100644 --- a/bot/exts/info/pep.py +++ b/bot/exts/info/pep.py @@ -146,7 +146,7 @@ class PythonEnhancementProposals(Cog): async def pep_command(self, ctx: Context, pep_number: int) -> None: """Fetches information about a PEP and sends it to the channel.""" # Trigger typing in chat to show users that bot is responding - await ctx.trigger_typing() + await ctx.typing() # Handle PEP 0 directly because it's not in .rst or .txt so it can't be accessed like other PEPs. if pep_number == 0: diff --git a/bot/exts/moderation/metabase.py b/bot/exts/moderation/metabase.py index e70e60a20..c63019882 100644 --- a/bot/exts/moderation/metabase.py +++ b/bot/exts/moderation/metabase.py @@ -123,7 +123,7 @@ class Metabase(Cog): Valid extensions are: csv and json. """ - await ctx.trigger_typing() + await ctx.typing() url = f"{MetabaseConfig.base_url}/api/card/{question_id}/query/{extension}" @@ -158,7 +158,7 @@ class Metabase(Cog): @metabase_group.command(name="publish", aliases=("share",)) async def metabase_publish(self, ctx: Context, question_id: int) -> None: """Publically shares the given question and posts the link.""" - await ctx.trigger_typing() + await ctx.typing() url = f"{MetabaseConfig.base_url}/api/card/{question_id}/public_link" -- cgit v1.2.3