Why does `from_bot/user_token` return a Result?
jD91mZM2 opened this issue · comments
jD91mZM2 commented
Why does from_bot/user_token
return a Result?
I mean, it always returns Ok() either way...
SpaceManiac commented
Future-proofing, in the case that these methods should ever need to change to validate their tokens or any such similar thing.
jD91mZM2 commented
I don't think they should. Not validating is much faster, plus the websocket already returns an error on invalid token, PLUS you can already validate by querying the current user.