Open eritbh opened 3 years ago
This code actually was converted to Typescript in #215 but it doesn't address this issue because using _client
bullshit at all is dumb and the client should be passed directly but I didn't want to break the API of the function in that PR. so this will still require its own fix
https://github.com/r-anime/discord-mod-bot/blob/master/bot/util/discord.js#L63 if
guild
is undefined theguild._client
will break. Client should be passed to this function explicitly sinceguild
is optionalthis would be a case typescript would catch ._. time to convert everything to typescript