aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendEE.ts
blob: 7c5bfe310f1b298f283a6058349b3009695c3ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { client } from "../../client";
import { escapeChat } from "../../encoding";


/**
 * Sends edit evidence command.
 * @param {number} evidence id
 * @param {string} evidence name
 * @param {string} evidence description
 * @param {string} evidence image filename
 */
export const sendEE = (id: number, name: string, desc: string, img: string) => {
    client.sender.sendServer(
        `EE#${id}#${escapeChat(name)}#${escapeChat(desc)}#${escapeChat(img)}#%`
    );
}