Definitely an issue with the switch() statement in /routes/endpoints/slash/welcome/welcome.js
If a user types /welcome test #channel name @username, the bot should send one message to the channel, and one message as a DM to the user. Instead, two messages are sent to the channel, and two to the user. Not clear on why this is happening, or what the correct syntax is for sending two (but not 4) messages out. This doesn't happen unless both parameters are supplied.
Definitely an issue with the switch() statement in /routes/endpoints/slash/welcome/welcome.js
If a user types
/welcome test #channel name @username
, the bot should send one message to the channel, and one message as a DM to the user. Instead, two messages are sent to the channel, and two to the user. Not clear on why this is happening, or what the correct syntax is for sending two (but not 4) messages out. This doesn't happen unless both parameters are supplied.