async checkSilentClean(channel, commandText) {
    await this.sleep(5000);

    channel.send('!ping');
    let receivedMessage = await this.getReply(channel);
    this.assertNotNull(receivedMessage);
    this.assertEquals(receivedMessage.content, 'pong!');

    channel.send(commandText);
    receivedMessage = await this.getReply(channel);
    const timeLimitMillis = new Date().getTime() - 5000;
    this.assertNull(receivedMessage);

    const messages = await channel.messages.fetch({ limit: 3 });
    this.assertNotNull(messages);
    const messagesArray = Array.from(messages.values());
    this.assertGreaterThan(messagesArray.length, 0);

    const recentMessages = [];
    for (const message of messagesArray) {
      if (message.createdTimestamp > timeLimitMillis) {
        recentMessages.push(message);
      }
    }

    let pingFound = false;
    let pongFound = false;
    let replyFound = false;

    for (const message of recentMessages) {
      if (message.content === '!ping') {
        pingFound = true;
      }
      if (message.content === 'pong!') {
        pongFound = true;
      }
      if (message.content.startsWith('cleaned')) {
        replyFound = true;
      }
    }
    this.assertTrue(!pingFound);
    this.assertTrue(!pongFound);
    this.assertTrue(!replyFound);
  }
/**
   * Checks if the "clean" can silently clean a given channel
   * @param  {Channel}  channel     the channel where the command needs to be executed
   * @param  {string}   commandText the text of the command
   * @return {Promise}              nothing
   */
Checks if the "clean" can silently clean a given channel
@param  {Channel}  channel     the channel where the command needs to be executed
@param  {string}   commandText the text of the command
@return {Promise}              nothing
Checks if the " clean " can silently clean a given channel @param { Channel } channel the channel where the command needs to be executed @param { string } commandText the text of the command @return { Promise } nothing
async checkSilentClean(channel, commandText) {
    await this.sleep(5000);
    channel.send('!ping');
    let receivedMessage = await this.getReply(channel);
    this.assertNotNull(receivedMessage);
    this.assertEquals(receivedMessage.content, 'pong!');
    channel.send(commandText);
    receivedMessage = await this.getReply(channel);
    const timeLimitMillis = new Date().getTime() - 5000;
    this.assertNull(receivedMessage);
    const messages = await channel.messages.fetch({ limit: 3 });
    this.assertNotNull(messages);
    const messagesArray = Array.from(messages.values());
    this.assertGreaterThan(messagesArray.length, 0);
    const recentMessages = [];
    for (const message of messagesArray) {
      if (message.createdTimestamp > timeLimitMillis) {
        recentMessages.push(message);
      }
    }
    let pingFound = false;
    let pongFound = false;
    let replyFound = false;
    for (const message of recentMessages) {
      if (message.content === '!ping') {
        pingFound = true;
      }
      if (message.content === 'pong!') {
        pongFound = true;
      }
      if (message.content.startsWith('cleaned')) {
        replyFound = true;
      }
    }
    this.assertTrue(!pingFound);
    this.assertTrue(!pongFound);
    this.assertTrue(!replyFound);
  }
async checkSilentClean ( channel , commandText ) { await this . sleep ( 5000 ) ; channel . send ( '!ping' ) ; let receivedMessage = await this . getReply ( channel ) ; this . assertNotNull ( receivedMessage ) ; this . assertEquals ( receivedMessage . content , 'pong!' ) ; channel . send ( commandText ) ; receivedMessage = await this . getReply ( channel ) ; const timeLimitMillis = new Date ( ) . getTime ( ) - 5000 ; this . assertNull ( receivedMessage ) ; const messages = await channel . messages . fetch ( { limit : 3 } ) ; this . assertNotNull ( messages ) ; const messagesArray = Array . from ( messages . values ( ) ) ; this . assertGreaterThan ( messagesArray . length , 0 ) ; const recentMessages = [ ] ; for ( const message of messagesArray ) { if ( message . createdTimestamp > timeLimitMillis ) { recentMessages . push ( message ) ; } } let pingFound = false ; let pongFound = false ; let replyFound = false ; for ( const message of recentMessages ) { if ( message . content === '!ping' ) { pingFound = true ; } if ( message . content === 'pong!' ) { pongFound = true ; } if ( message . content . startsWith ( 'cleaned' ) ) { replyFound = true ; } } this . assertTrue ( ! pingFound ) ; this . assertTrue ( ! pongFound ) ; this . assertTrue ( ! replyFound ) ; }
Checks if the "clean" can silently clean a given channel
 @param  {Channel}  channel     the channel where the command needs to be executed
 @param  {string}   commandText the text of the command
 @return {Promise}              nothing
Checks if the " clean " can silently clean a given channel @param { Channel } channel the channel where the command needs to be executed @param { string } commandText the text of the command @return { Promise } nothing