def codeblock(text: str, *, lang: str = '') -> str:
  """
  Formats a codeblock.
  Parameters
  ----------
  text
    The text to be inside of the codeblock.
  lang
    The language to use.
  Returns
  -------
  str
    The formatted message.
  """
  return f'```{lang}\n{text}\n```'