move request event emit into the apiRequest method to call event made by external plugins like the slashme plugin.