{"action":"published","release":{"url":"https://api.github.com/repos/vim2meta/patron.js/releases/11011531","assets_url":"https://api.github.com/repos/vim2meta/patron.js/releases/11011531/assets","upload_url":"https://uploads.github.com/repos/vim2meta/patron.js/releases/11011531/assets{?name,label}","html_url":"https://github.com/vim2meta/patron.js/releases/tag/v3.0.0","id":11011531,"tag_name":"v3.0.0","target_commitish":"master","name":"3.0.0","draft":false,"author":{"login":"LJNeon","id":23249107,"avatar_url":"https://avatars0.githubusercontent.com/u/23249107?v=4","gravatar_id":"","url":"https://api.github.com/users/LJNeon","html_url":"https://github.com/LJNeon","followers_url":"https://api.github.com/users/LJNeon/followers","following_url":"https://api.github.com/users/LJNeon/following{/other_user}","gists_url":"https://api.github.com/users/LJNeon/gists{/gist_id}","starred_url":"https://api.github.com/users/LJNeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LJNeon/subscriptions","organizations_url":"https://api.github.com/users/LJNeon/orgs","repos_url":"https://api.github.com/users/LJNeon/repos","events_url":"https://api.github.com/users/LJNeon/events{/privacy}","received_events_url":"https://api.github.com/users/LJNeon/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2018-05-14T04:22:06Z","published_at":"2018-05-15T17:26:57Z","assets":[],"tarball_url":"https://api.github.com/repos/vim2meta/patron.js/tarball/v3.0.0","zipball_url":"https://api.github.com/repos/vim2meta/patron.js/zipball/v3.0.0","body":"## v3\r\n### New\r\n- **Support for Eris as well as discord.js!**\r\n- [`Context`](https://vim2meta.github.io/patron.js/global.html#Context), [`Library`](https://vim2meta.github.io/patron.js/global.html#Library), and [`TypeReaderCategory`](https://vim2meta.github.io/patron.js/global.html#TypeReaderCategory) enums.\r\n- [`RegistryOptions`](https://vim2meta.github.io/patron.js/global.html#RegistryOptions) and [`HandlerOptions`](https://vim2meta.github.io/patron.js/global.html#HandlerOptions).\r\n  - Required: [`RegistryOptions.library`](https://vim2meta.github.io/patron.js/global.html#RegistryOptions) and [`HandlerOptions.registry`](https://vim2meta.github.io/patron.js/global.html#HandlerOptions).\r\n- [`ArgumentResult`](https://vim2meta.github.io/patron.js/ArgumentResult.html) and [`InvalidContextResult`](https://vim2meta.github.io/patron.js/InvalidContextResult.html).\r\n- [`Argument.preconditionOptions`](https://vim2meta.github.io/patron.js/Argument.html), [`Command.preconditionOptions`](https://vim2meta.github.io/patron.js/Command.html), and [`Group.preconditionOptions`](https://vim2meta.github.io/patron.js/Group.html) will now be passed to all preconditions on the object via the new `options` parameter.\r\n- [`Registry.registerArgumentPreconditions()`](https://vim2meta.github.io/patron.js/Registry.html#registerArgumentPreconditions) and [`Registry.registerPreconditions()`](https://vim2meta.github.io/patron.js/Registry.html#registerPreconditions).\r\n- [`Registry.unregister{Class}s()`](https://vim2meta.github.io/patron.js/Registry.html#unregisterArgumentPreconditions).\r\n- [`Precondition.name`](https://vim2meta.github.io/patron.js/Precondition.html), [`Precondition.description`](https://vim2meta.github.io/patron.js/Precondition.html), and [`PreconditionOptions`](https://vim2meta.github.io/patron.js/global.html#PreconditionOptions) to set them.\r\n- [`TypeReader.description`](https://vim2meta.github.io/patron.js/TypeReader.html) and [`TypeReader.category`](https://vim2meta.github.io/patron.js/TypeReader.html).\r\n- [`ArgumentPrecondition.name`](https://vim2meta.github.io/patron.js/ArgumentPrecondition.html), [`ArgumentPrecondition.description`](https://vim2meta.github.io/patron.js/ArgumentPrecondition.html), and [`ArgumentPreconditionOptions`](https://vim2meta.github.io/patron.js/global.html#ArgumentPreconditionOptions) to set them.\r\n- `CategoryChannelTypeReader` and `ColorTypeReader` to the built-in TypeReaders.\r\n\r\n### Changed\r\n- **You can now add extra parameters onto the end of** [`Handler.run()`](https://vim2meta.github.io/patron.js/Handler.html#run) **and they will be added into the end of** [`Command.run()`](https://vim2meta.github.io/patron.js/Command.html#run)**,** [`Precondition.run()`](https://vim2meta.github.io/patron.js/Precondition.html#run)**, and** [`TypeReader.read()`](https://vim2meta.github.io/patron.js/TypeReader.html#read) **calls.**\r\n- Warnings are now emitted when certain TypeReaders are used in a way that makes them unreliable.\r\n- You can specify TypeReader, Precondition, and ArgumentPrecondition by name if they're registered.\r\n- Replaced `Command.guildOnly` and `Command.dmOnly` with [`Command.usableContexts`](https://vim2meta.github.io/patron.js/Command.html).\r\n- The `require-all` dependency has been replaced with [`RequireAll()`](https://vim2meta.github.io/patron.js/global.html#RequireAll).\r\n- Replaced the generic `Registry.registerDefaultTypeReaders()` with [`Registry.registerGlobalTypeReaders()`](https://vim2meta.github.io/patron.js/Registry.html#registerGlobalTypeReaders) and [`Registry.registerLibraryTypeReaders()`](https://vim2meta.github.io/patron.js/Registry.html#registerLibraryTypeReaders).\r\n- Modularized [`Handler.run()`](https://vim2meta.github.io/patron.js/Handler.html#run) into [`Handler.parseCommand()`](https://vim2meta.github.io/patron.js/Handler.html#parseCommand), [`Handler.validateCommand()`](https://vim2meta.github.io/patron.js/Handler.html#validateCommand), [`Handler.runCommandPreconditions()`](https://vim2meta.github.io/patron.js/Handler.html#runCommandPreconditions), [`Handler.checkCooldown()`](https://vim2meta.github.io/patron.js/Handler.html#checkCooldown), [`Handler.parseArguments()`](https://vim2meta.github.io/patron.js/Handler.html#parseArguments), and [`Handler.updateCooldown()`](https://vim2meta.github.io/patron.js/Handler.html#updateCooldown); but **didn't remove** [`Handler.run()`](https://vim2meta.github.io/patron.js/Handler.html#run).\r\n- [`Handler.run()`](https://vim2meta.github.io/patron.js/Handler.html#run) now takes a prefix length instead of the prefix string.\r\n\r\n### Removed\r\n- The built-in preconditions.\r\n- `Registry.register{Class}sIn()`.\r\n- The built-in Group DM TypeReader, we no longer officially support self-bots.\r\n"}}
{"actor":{"display_login":"LJNeon"}}