Issue #, if available:
Currently, if a connection is not active. ChatJS does not reject promise instead return null. We want to have consistent return value returned i.e. Promise which will either get resolved or rejected.
Description of changes:
reject send callbacks instead of returning null
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: Currently, if a connection is not active. ChatJS does not reject promise instead return null. We want to have consistent return value returned i.e. Promise which will either get resolved or rejected.
Description of changes: reject send callbacks instead of returning null
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.