Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bot/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion bot/exts/info/pep.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def get_pep_embed(self, pep_nr: int) -> Tuple[Embed, bool]:
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:
Expand Down
4 changes: 2 additions & 2 deletions bot/exts/moderation/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def metabase_extract(

Valid extensions are: csv and json.
"""
await ctx.trigger_typing()
await ctx.typing()

url = f"{MetabaseConfig.base_url}/api/card/{question_id}/query/{extension}"

Expand Down Expand Up @@ -158,7 +158,7 @@ async def metabase_extract(
@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"

Expand Down