when type is command, the user may change!
Grab toastr from require.