Sven Fehler
Sven Fehler
`elapsedTime` has to be an epoch number, not a Date object. Try to replace `new Date()` with `Date.now()` or `new Date().getTime()`
Try listening for the `error` event like this: ```js const client = require('discord-rich-presence')('180984871685062656'); client.on('error', err => { console.log(`Error: ${err}`); }); ```
> > > Node v13 is currently not supported please use v12 with this module. Okay well I'm glad there's at least a temporary workaround to it. Although with the...
Hi, the joke already has the sexist flag set, which is currently the closest the API has for transphobic jokes. Also as you can see here, it shouldn't show up...
I can't recommend working on it at the moment as there's lots of changes in [v2.4.0](https://github.com/Sv443/JokeAPI/tree/version/2.4.0) (see #239) that would invalidate a big part of a TS rework.
Could you elaborate on what Rollup does for JokeAPI and how it would be worth implementing?
I'd definitely want JokeAPI to be converted to TypeScript eventually but if that day comes I'd probably even go as far as rewriting the entire API while I'm already at...
Gonna put this on hold for now. At this point I can't recommend anyone to refactor the code, especially when v2.4 is currently in the works.
Decided to reopen as rollup does sound like something I'd want to implement eventually, and move on to TS completely, but it's gonna need to be on v2.5.0 or something....
Thanks for submitting your project, I'll make sure to either include it in the [v2.3.2](https://github.com/Sv443/JokeAPI/pull/341) or [v2.4.0](https://github.com/Sv443/JokeAPI/pull/239) update.