Changelog

Unreleased

Currently none

v1.3.0

  • Fix undefined guild-specific or global nicknames causing blocks to be rejected

    • For discord.Member objects, MemberAdapter now falls back to global_name if nick is undefined and further to name if global_name is also undefined

    • For discord.User objects, MemberAdapter now falls back to name if global_name is undefined

  • Fix an undefined channel topic causing blocks to be rejected

    • ChannelAdapter now falls back to an empty string

  • Move PythonBlock from blocks.conditional to blocks.strings

    • Never belonged in the conditional grouping

    • This should not affect any users since blocks are exported via ya_tagscript.blocks but if PythonBlock was imported from the full path, the following change is necessary:

      -from ya_tagscript.blocks.conditional import PythonBlock
      +from ya_tagscript.blocks.strings import PythonBlock
      

      or

      -from ya_tagscript.blocks.conditional.python_block import PythonBlock
      +from ya_tagscript.blocks.strings.python_block import PythonBlock
      

      but the recommended way remains

      -from ya_tagscript.blocks.conditional import PythonBlock
      +from ya_tagscript.blocks import PythonBlock
      
  • Fix duplicate spaces between emoji in ReactBlock being counted against the emoji limit

    • These spaces are now ignored and only the actual strings passed are counted

v1.2.1

  • Make loggers and TimedeltaBlock.humanize_fn private values/attributes

    • These are all internal details with no place in the user’s code

  • Replace datetime.timezone.utc with datetime.UTC

v1.2.0

  • Allow passing discord.User to MemberAdapter

    • Allows conveniently passing ctx.author to a seed variable MemberAdapter, for example

  • Add .. versionchanged directives to CycleBlock and ListBlock regarding the 1.1.0 changes

    • Also re-added both blocks to the “Referenced by” section of the zero-depth glossary entry

v1.1.0

  • CycleBlock and ListBlock no longer have a “zero-depth” restriction

v1.0.0

Full rearchitecture of interpreter released.