blob: 4ec291e38c1d06cf73e2e8b2e9dc0d7ab779ecf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { client, setBanned } from "../../client";
import { safeTags } from "../../encoding";
/**
* Handles the banned packet
* this one is sent when you try to reconnect but you're banned
* @param {Array} args ban reason
*/
export const handleBD = (args: string[]) => {
client.handleBans("Banned", safeTags(args[1]));
setBanned(true);
}
|