{"action":"opened","issue":{"url":"https://api.github.com/repos/discordjs/Commando/issues/217","repository_url":"https://api.github.com/repos/discordjs/Commando","labels_url":"https://api.github.com/repos/discordjs/Commando/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/discordjs/Commando/issues/217/comments","events_url":"https://api.github.com/repos/discordjs/Commando/issues/217/events","html_url":"https://github.com/discordjs/Commando/issues/217","id":374842746,"node_id":"MDU6SXNzdWUzNzQ4NDI3NDY=","number":217,"title":"Export CommandRegistry","user":{"login":"aaronmallen","id":931094,"node_id":"MDQ6VXNlcjkzMTA5NA==","avatar_url":"https://avatars2.githubusercontent.com/u/931094?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronmallen","html_url":"https://github.com/aaronmallen","followers_url":"https://api.github.com/users/aaronmallen/followers","following_url":"https://api.github.com/users/aaronmallen/following{/other_user}","gists_url":"https://api.github.com/users/aaronmallen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronmallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronmallen/subscriptions","organizations_url":"https://api.github.com/users/aaronmallen/orgs","repos_url":"https://api.github.com/users/aaronmallen/repos","events_url":"https://api.github.com/users/aaronmallen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronmallen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-29T03:17:27Z","updated_at":"2018-10-29T03:17:27Z","closed_at":null,"author_association":"NONE","body":"Hello I am building a bot on top of `discord.js-commando` and I would like to override some of the commands in `CommandoRegistry`. Currently this can only be done by creating a wrapper function inside of the client:\r\n\r\n```javascript\r\nclass MyClient extends Command.Client {\r\n  constructor(opts = {}) {\r\n    super(opts)\r\n    // my custom logic\r\n  }\r\n  \r\n  registerDefaults () {\r\n    this.registry.registerDefaults()\r\n    // my custom overrides \r\n  }\r\n}\r\n```\r\nplease export `CommandoRegistry` in `src/index.js` :D"}}
{"actor":{"display_login":"aaronmallen"}}