{"action":"created","issue":{"url":"https://api.github.com/repos/slackhq/node-slack-client/issues/92","labels_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/92/comments","events_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/92/events","html_url":"https://github.com/slackhq/node-slack-client/issues/92","id":122248480,"number":92,"title":"Takes over `this` context","user":{"login":"martindale","id":129761,"avatar_url":"https://avatars.githubusercontent.com/u/129761?v=3","gravatar_id":"","url":"https://api.github.com/users/martindale","html_url":"https://github.com/martindale","followers_url":"https://api.github.com/users/martindale/followers","following_url":"https://api.github.com/users/martindale/following{/other_user}","gists_url":"https://api.github.com/users/martindale/gists{/gist_id}","starred_url":"https://api.github.com/users/martindale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martindale/subscriptions","organizations_url":"https://api.github.com/users/martindale/orgs","repos_url":"https://api.github.com/users/martindale/repos","events_url":"https://api.github.com/users/martindale/events{/privacy}","received_events_url":"https://api.github.com/users/martindale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-15T11:10:00Z","updated_at":"2015-12-16T19:54:37Z","closed_at":null,"body":"It seems that when the client is used inside of another constructor, it takes over the `this` context.  Why, I'm not sure, nor how.  Extremely inconvenient."},"comment":{"url":"https://api.github.com/repos/slackhq/node-slack-client/issues/comments/165227781","html_url":"https://github.com/slackhq/node-slack-client/issues/92#issuecomment-165227781","issue_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/92","id":165227781,"user":{"login":"martindale","id":129761,"avatar_url":"https://avatars.githubusercontent.com/u/129761?v=3","gravatar_id":"","url":"https://api.github.com/users/martindale","html_url":"https://github.com/martindale","followers_url":"https://api.github.com/users/martindale/followers","following_url":"https://api.github.com/users/martindale/following{/other_user}","gists_url":"https://api.github.com/users/martindale/gists{/gist_id}","starred_url":"https://api.github.com/users/martindale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martindale/subscriptions","organizations_url":"https://api.github.com/users/martindale/orgs","repos_url":"https://api.github.com/users/martindale/repos","events_url":"https://api.github.com/users/martindale/events{/privacy}","received_events_url":"https://api.github.com/users/martindale/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T19:54:37Z","updated_at":"2015-12-16T19:54:37Z","body":"snarl uses inline triggers; `this example message asking for !help would trigger them`.  So they should be called from the context of a `Snarl` instance, but despite expectations, `this` inside of that function still points to the `Slack` instance."}}