freechat/docs/content/structures/messages.md
shockrah 3cf77300b6 + Readme
* Fixing message field name to reflect its actualy key name
type -> content_type
2021-08-28 14:23:27 -07:00

32 lines
557 B
Markdown

---
title: Messages
anchor: messages-struct
weight: 40
---
Name | Type
:-----:|:-----:
id | `u64`
time | `i64`
content | `String`
content_type | `String`
author_id | `u64`
channel_id | `u64`
Acceptable values
## Invites
When requesting a code from `/invite/create` successful data contains:
Name | Type
:-----:|:-----:
id | `i64`
uses | `null|i64`
expires| `bool`
Most clients should format this code for usage as `https://domain.net:port/join?code=<id>`. The other data is merely for tracking the server's end.