Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Error "sChannel.send is not a function" when using suggest command #63

Closed
acollierr17 opened this issue Feb 22, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@acollierr17
Copy link
Member

If a suggestions channel isn't set, the suggest command will sometimes throw an error saying sChannel.send is not a function. What I likely need to do here is add in some further validation of the suggestions channel before the sChannel variable is ran or use nullish coalescing.
https://github.com/suggestionsbot/suggestions-bot/blob/5b0421ad0a3ff99b708964196be2e26bc29eb265/src/commands/Suggestions/suggest.js#L90

@acollierr17 acollierr17 added the bug Something isn't working label Feb 22, 2022
@acollierr17 acollierr17 self-assigned this Feb 22, 2022
@acollierr17
Copy link
Member Author

This issue was fixed by only allowing text channels to be set or used as a suggestions channel.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant