main.js
function RemoveNotifier (notifier, silent = false) {
  let index = em.GetNotifiers().indexOf(notifier)
  log.info('Removing Notifier...')
  if (index > -1) {
    if (!silent) {
      em.GetNotifiers()[index].notify('Removing Notifier...')
    }
    em.GetNotifiers().splice(index, 1)
    return true
  } else {
    log.info(chalk.yellow(`Notifier ${notifier} not found, ignoring and returning false...`))
  }
  return false
}
function RemoveNotifier (notifier, silent = false) {
  let index = em.GetNotifiers().indexOf(notifier)
  log.info('Removing Notifier...')
  if (index > -1) {
    if (!silent) {
      em.GetNotifiers()[index].notify('Removing Notifier...')
    }
    em.GetNotifiers().splice(index, 1)
    return true
  } else {
    log.info(chalk.yellow(`Notifier ${notifier} not found, ignoring and returning false...`))
  }
  return false
}
function RemoveNotifier ( notifier , silent = false ) { let index = em . GetNotifiers ( ) . indexOf ( notifier ) log . info ( 'Removing Notifier...' ) if ( index > - 1 ) { if ( ! silent ) { em . GetNotifiers ( ) [ index ] . notify ( 'Removing Notifier...' ) } em . GetNotifiers ( ) . splice ( index , 1 ) return true } else { log . info ( chalk . yellow ( ` ${ notifier } ` ) ) } return false }
Removes an existing notifier from the context.
Does not fail if the notifier is not found.
@param {object} notifier is the notifier instance to remove.
@param {booleal} sileng states if = true the removal should not send a notification
@returns true if the notifier was found (and subsequently removed).
@public
Removes an existing notifier from the context . Does not fail if the notifier is not found .