I use a few actions in the voting plugin. You might find a good reference here:
https://github.com/joebuhlig/discourse-feature-voting/blob/master/assets/javascripts/initializers/feature-voting.js.es6#L7