about summary refs log tree commit diff
path: root/pkg/discord/entities/entities.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-04-08 12:54:09 +0200
committerMel <einebeere@gmail.com>2022-04-08 12:54:09 +0200
commit24f175df385466e04ef21d153713d2ecf3a9733b (patch)
tree1c5c6253a22804697462d3fb9e9f3189af15c286 /pkg/discord/entities/entities.go
parent18389cf659c40cebc4572924929abfcec3c6b875 (diff)
downloadjinx-24f175df385466e04ef21d153713d2ecf3a9733b.tar.zst
jinx-24f175df385466e04ef21d153713d2ecf3a9733b.zip
Subdivide discord into packages
Diffstat (limited to 'pkg/discord/entities/entities.go')
-rw-r--r--pkg/discord/entities/entities.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/discord/entities/entities.go b/pkg/discord/entities/entities.go
new file mode 100644
index 0000000..268a74c
--- /dev/null
+++ b/pkg/discord/entities/entities.go
@@ -0,0 +1,23 @@
+package entities
+
+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"`
+}