diff options
author | 2022-06-29 15:40:14 +0100 | |
---|---|---|
committer | 2022-06-29 15:40:14 +0100 | |
commit | b1d0d30b1bc9b101d8c1a19559c42308caf6a26a (patch) | |
tree | 76d6d03a6c4581b34b6f0697343b621cb9a19420 | |
parent | Merge pull request #2200 from python-discord/ignore-auto-mod-notificaitons (diff) |
Use the new Messageable.typing instead of the removed Messageable.trigger_typing
-rw-r--r-- | bot/converters.py | 2 | ||||
-rw-r--r-- | bot/exts/info/pep.py | 2 | ||||
-rw-r--r-- | 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" |