original_docstring: Send a message, but if it's in #roles, delete it after 5 seconds.
docstring: Send a message, but if it's in #roles, delete it after 5 seconds.
docstring_tokens: Send a message but if it ' s in #roles delete it after 5 seconds .
code: async def _send_but_delete_in_roles(ctx: commands.Context, message: str) -> None:
          """Send a message, but if it's in #roles, delete it after 5 seconds."""
          if ctx.message.channel.id == Channels.roles:
              await ctx.send(message, delete_after=5.0)
              await asyncio.sleep(5.0)
              await ctx.message.delete()
          else:
              await ctx.send(message)
code_tokens: async def _send_but_delete_in_roles ( ctx : commands . Context , message : str ) -> None : if ctx . message . channel . id == Channels . roles : await ctx . send ( message , delete_after = 5.0 ) await asyncio . sleep ( 5.0 ) await ctx . message . delete ( ) else : await ctx . send ( message )
short_docstring: Send a message, but if it's in #roles, delete it after 5 seconds.
short_docstring_tokens: Send a message but if it ' s in #roles delete it after 5 seconds .
comment: """Send a message, but if it's in #roles, delete it after 5 seconds."""