functions/FUNC_userRoleRequest.js
// prepare output message and send it
prepare output message and send it
prepare output message and send it
function outputSuccessMessage(userName, message, nowAssigned, wasAssigned) {
  let body;
  if (nowAssigned) body = `Assigned \`${nowAssigned}\` to you. Have fun!`;
  if (wasAssigned) body = `I removed \`${wasAssigned}\` from you.`;
  if (wasAssigned && nowAssigned) body = `I removed \`${wasAssigned}\` and assigned \`${nowAssigned}\` to you. Have fun!`;
  messageSuccess(message, body, userName);
}
function outputSuccessMessage ( userName , message , nowAssigned , wasAssigned ) { let body ; if ( nowAssigned ) body = ` \` ${ nowAssigned } \` ` ; if ( wasAssigned ) body = ` \` ${ wasAssigned } \` ` ; if ( wasAssigned && nowAssigned ) body = ` \` ${ wasAssigned } \` \` ${ nowAssigned } \` ` ; messageSuccess ( message , body , userName ) ; }
prepare output message and send it
prepare output message and send it
// check case