about summary refs log tree commit diff
path: root/pkg/discord/entities.go
blob: 8a62fc67492bbf93deb866bec8414b739311b766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package discord

type Snowflake string

type User struct {
	ID            Snowflake `json:"id"`
	Username      string    `json:"username"`
	Discriminator string    `json:"discriminator"`
}

type Guild struct {
	ID          Snowflake `json:"id"`
	Name        string    `json:"name"`
	Unavailable bool      `json:"unavailable"`
}

type Message struct {
	ID        Snowflake `json:"id"`
	ChannelID Snowflake `json:"channel_id"`
	GuildID   Snowflake `json:"guild_id"`
	Author    User      `json:"author"`
	Content   string    `json:"content"`
}