Missing userstate in type definitions of ban and timeout events
samildeli opened this issue · 1 comments
samildeli commented
In @types/tmi.js (version 1.8.2), ban and timeout events are defined as follows:
ban(channel: string, username: string, reason: string): void;
timeout(channel: string, username: string, reason: string, duration: number): void;
They need to have a userstate parameter as the last parameter as can be seen in the docs and when tested (tmi.js version 1.8.5).
samildeli commented
Opened a pull request at DefinitelyTyped/DefinitelyTyped#64307