<commit_before>const AbstractHandler = require('./AbstractHandler');
const Constants = require('../../../../util/Constants');

class MessageDeleteHandler extends AbstractHandler {
  handle(packet) {
    const client = this.packetManager.client;
    const data = packet.d;
    const response = client.actions.MessageDelete.handle(data);
    if (response.message) client.emit(Constants.Events.MESSAGE_DELETE, response.message);
  }
}

module.exports = MessageDeleteHandler;
<commit_msg>actually fix that delete thing (#1507)<commit_after>const AbstractHandler = require('./AbstractHandler');

class MessageDeleteHandler extends AbstractHandler {
  handle(packet) {
    this.packetManager.client.actions.MessageDelete.handle(packet.d);
  }
}

module.exports = MessageDeleteHandler;

{'fraction_non_alphanumeric': 0.12323491655969192, 'fraction_numerical': 0.005134788189987163, 'mean_word_length': 5.141732283464567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6884962', 'n_tokens_mistral': 207, 'n_tokens_neox': 201, 'n_words': 42}