Skip to content

v2.3.1a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 27 Jan 09:08
· 651 commits to master since this release
b42fd51

2.3.1a1 - 2022-01-27

Added

  • SlashContext.boolean, SlashContext.float, SlashContext.integer, SlashContext.snowflake and SlashContext.string methods as short hands for asserting the option type and ensuring type safety.
  • A MessageParser standard abc.
  • Client.set_metadata, Component.set_metadata and ExecutableCommand.set_metadata fluent methods to allow for chaining metadata setting.
  • Complementary Client.load_modules_async and Client.reload_modules_async methods which execute blocking file access operations in asyncio's threadpool executor.
  • The module load, unload and reload methods now raise FailedModuleLoad and FailedModuleUnload to relay errors raised by the target module or its (un)loaders.
  • max_value and min_value options for message command option parser options and arguments.

Changed

  • SlashContext.value now returns hikari.Snowflake for object IDs.
  • reload_modules will now try to rollback a module if it failed to load before raising and avoid trying to reload a module all together if no loaders or unloaders are found.

Fixed

  • Context.get_channel no longer raises an assertion error if the cache returns None.
  • Schedules are now stopped if they are removed from a component while active.
  • Schedules will no-longer raise a RuntimeError while closing a component if they were stopped before before hand.