feat: return guilds in READY event, dispatch MESSAGE_CREATE event
This commit is contained in:
parent
f7494034d5
commit
809af7e637
4 changed files with 44 additions and 19 deletions
|
@ -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>>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue