v2.3.1a1
·
651 commits
to master
since this release
2.3.1a1 - 2022-01-27
Added
SlashContext.boolean,SlashContext.float,SlashContext.integer,SlashContext.snowflakeandSlashContext.stringmethods as short hands for asserting the option type and ensuring type safety.- A
MessageParserstandard abc. Client.set_metadata,Component.set_metadataandExecutableCommand.set_metadatafluent methods to allow for chaining metadata setting.- Complementary
Client.load_modules_asyncandClient.reload_modules_asyncmethods which execute blocking file access operations in asyncio's threadpool executor. - The module load, unload and reload methods now raise
FailedModuleLoadandFailedModuleUnloadto relay errors raised by the target module or its (un)loaders. max_valueandmin_valueoptions for message command option parser options and arguments.
Changed
SlashContext.valuenow returnshikari.Snowflakefor object IDs.reload_moduleswill 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_channelno longer raises an assertion error if the cache returnsNone.- 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.