1
2
3
4
5
6
7
8
9
10
11
use std::borrow::Cow;

use valence_text::Text;

use crate::{packet_id, Decode, Encode, Packet};

#[derive(Clone, Debug, Encode, Decode, Packet)]
#[packet(id = packet_id::DISCONNECT_S2C)]
pub struct DisconnectS2c<'a> {
    pub reason: Cow<'a, Text>,
}