feat: return guilds in READY event, dispatch MESSAGE_CREATE event

This commit is contained in:
sam 2024-02-26 17:05:48 +01:00
parent f7494034d5
commit 809af7e637
4 changed files with 44 additions and 19 deletions

View file

@ -1,12 +1,11 @@
use serde::{Serialize, Deserialize};
use super::{channel::PartialChannel, user::PartialUser};
use super::channel::PartialChannel;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Guild {
pub id: String,
pub name: String,
pub owner: PartialUser,
pub default_channel: PartialChannel,
pub owner_ids: Vec<String>,
pub channels: Option<Vec<PartialChannel>>,
}