use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use crate::entities::Channel;
use crate::events::WebSocketEvent;
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct ChannelPinsUpdate {
pub guild_id: Option<String>,
pub channel_id: String,
pub last_pin_timestamp: Option<DateTime<Utc>>,
}
impl WebSocketEvent for ChannelPinsUpdate {}
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct ChannelCreate {
pub channel: Channel,
}
impl WebSocketEvent for ChannelCreate {}
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct ChannelUpdate {
pub channel: Channel,
}
impl WebSocketEvent for ChannelUpdate {}
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct ChannelDelete {
pub channel: Channel,
}
impl WebSocketEvent for ChannelDelete {}