@@ -1210,7 +1210,8 @@ async def logs(self, ctx, *, user: User = None):
12101210 `user` may be a user ID, mention, or name.
12111211 """
12121212
1213- await ctx .typing ()
1213+ async with safe_typing (ctx ):
1214+ pass
12141215
12151216 if not user :
12161217 thread = ctx .thread
@@ -1342,7 +1343,8 @@ async def logs_search(self, ctx, limit: Optional[int] = None, *, query):
13421343 Provide a `limit` to specify the maximum number of logs the bot should find.
13431344 """
13441345
1345- await ctx .typing ()
1346+ async with safe_typing (ctx ):
1347+ pass
13461348
13471349 entries = await self .bot .api .search_by_text (query , limit )
13481350
@@ -1371,7 +1373,7 @@ async def reply(self, ctx, *, msg: str = ""):
13711373
13721374 ctx .message .content = msg
13731375
1374- async with ctx . typing ( ):
1376+ async with safe_typing ( ctx ):
13751377 await ctx .thread .reply (ctx .message )
13761378
13771379 @commands .command (aliases = ["formatreply" ])
@@ -1393,7 +1395,7 @@ async def freply(self, ctx, *, msg: str = ""):
13931395 msg , channel = ctx .channel , recipient = ctx .thread .recipient , author = ctx .message .author
13941396 )
13951397 ctx .message .content = msg
1396- async with ctx . typing ( ):
1398+ async with safe_typing ( ctx ):
13971399 await ctx .thread .reply (ctx .message )
13981400
13991401 @commands .command (aliases = ["formatanonreply" ])
@@ -1415,7 +1417,7 @@ async def fareply(self, ctx, *, msg: str = ""):
14151417 msg , channel = ctx .channel , recipient = ctx .thread .recipient , author = ctx .message .author
14161418 )
14171419 ctx .message .content = msg
1418- async with ctx . typing ( ):
1420+ async with safe_typing ( ctx ):
14191421 await ctx .thread .reply (ctx .message , anonymous = True )
14201422
14211423 @commands .command (aliases = ["formatplainreply" ])
@@ -1437,7 +1439,7 @@ async def fpreply(self, ctx, *, msg: str = ""):
14371439 msg , channel = ctx .channel , recipient = ctx .thread .recipient , author = ctx .message .author
14381440 )
14391441 ctx .message .content = msg
1440- async with ctx . typing ( ):
1442+ async with safe_typing ( ctx ):
14411443 await ctx .thread .reply (ctx .message , plain = True )
14421444
14431445 @commands .command (aliases = ["formatplainanonreply" ])
@@ -1459,7 +1461,7 @@ async def fpareply(self, ctx, *, msg: str = ""):
14591461 msg , channel = ctx .channel , recipient = ctx .thread .recipient , author = ctx .message .author
14601462 )
14611463 ctx .message .content = msg
1462- async with ctx . typing ( ):
1464+ async with safe_typing ( ctx ):
14631465 await ctx .thread .reply (ctx .message , anonymous = True , plain = True )
14641466
14651467 @commands .command (aliases = ["anonreply" , "anonymousreply" ])
@@ -1476,7 +1478,7 @@ async def areply(self, ctx, *, msg: str = ""):
14761478 and `anon_tag` config variables to do so.
14771479 """
14781480 ctx .message .content = msg
1479- async with ctx . typing ( ):
1481+ async with safe_typing ( ctx ):
14801482 await ctx .thread .reply (ctx .message , anonymous = True )
14811483
14821484 @commands .command (aliases = ["plainreply" ])
@@ -1490,7 +1492,7 @@ async def preply(self, ctx, *, msg: str = ""):
14901492 automatically embedding image URLs.
14911493 """
14921494 ctx .message .content = msg
1493- async with ctx . typing ( ):
1495+ async with safe_typing ( ctx ):
14941496 await ctx .thread .reply (ctx .message , plain = True )
14951497
14961498 @commands .command (aliases = ["plainanonreply" , "plainanonymousreply" ])
@@ -1504,7 +1506,7 @@ async def pareply(self, ctx, *, msg: str = ""):
15041506 automatically embedding image URLs.
15051507 """
15061508 ctx .message .content = msg
1507- async with ctx . typing ( ):
1509+ async with safe_typing ( ctx ):
15081510 await ctx .thread .reply (ctx .message , anonymous = True , plain = True )
15091511
15101512 @commands .group (invoke_without_command = True )
@@ -1517,7 +1519,7 @@ async def note(self, ctx, *, msg: str = ""):
15171519 Useful for noting context.
15181520 """
15191521 ctx .message .content = msg
1520- async with ctx . typing ( ):
1522+ async with safe_typing ( ctx ):
15211523 msg = await ctx .thread .note (ctx .message )
15221524 await msg .pin ()
15231525
@@ -1529,7 +1531,7 @@ async def note_persistent(self, ctx, *, msg: str = ""):
15291531 Take a persistent note about the current user.
15301532 """
15311533 ctx .message .content = msg
1532- async with ctx . typing ( ):
1534+ async with safe_typing ( ctx ):
15331535 msg = await ctx .thread .note (ctx .message , persistent = True )
15341536 await msg .pin ()
15351537 await self .bot .api .create_note (recipient = ctx .thread .recipient , message = ctx .message , message_id = msg .id )
0 commit comments