aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-06-29 22:20:56 +0100
committerGravatar GitHub <[email protected]>2022-06-29 22:20:56 +0100
commitb5ab79aea21ae38fad942cc98e36c2bfe2b24e30 (patch)
tree76d6d03a6c4581b34b6f0697343b621cb9a19420
parentMerge pull request #2200 from python-discord/ignore-auto-mod-notificaitons (diff)
parentUse the new Messageable.typing instead of the removed Messageable.trigger_typing (diff)
Merge pull request #2203 from python-discord/fix-trigger_typing
-rw-r--r--bot/converters.py2
-rw-r--r--bot/exts/info/pep.py2
-rw-r--r--bot/exts/moderation/metabase.py4
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"