package com.github.twitch4j.common.events.user;

import com.github.twitch4j.common.enums.CommandPermission;
import com.github.twitch4j.common.events.TwitchEvent;
import com.github.twitch4j.common.events.domain.EventUser;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Value;

import java.util.Set;

/**
 * This event gets called when the bot gets a private message.
 */
@Value
@Getter
@EqualsAndHashCode(callSuper = false)
public class PrivateMessageEvent extends TwitchEvent {

	/**
	 * User
	 */
	private final EventUser user;

	/**
	 * Message
	 */
	private final String message;

	/**
	 * Permissions of the user
	 */
	private final Set<CommandPermission> permissions;

	/**
	 * Event Constructor
	 *
	 * @param user        The user who triggered the event.
	 * @param message     The plain text of the message.
	 * @param permissions The permissions of the triggering user.
	 */
	public PrivateMessageEvent(EventUser user, String message, Set<CommandPermission> permissions) {
		this.user = user;
		this.message = message;
		this.permissions = permissions;
	}

	public void sendResponse(String message) {
		// getClient().getMessageInterface().sendPrivateMessage(user.getName(), message);
	}
}

@@ -1085,137 +1085,6 @@
 %09%7D%0A%0A
-%09public void sendResponse(String message) %7B%0A%09%09// getClient().getMessageInterface().sendPrivateMessage(user.getName(), message);%0A%09%7D%0A
 %7D%0A

remove a empty method on the PrivatMessageEvent