diff options
| author | Adelyn Breelove <[email protected]> | 2019-01-21 09:08:47 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-01-21 09:08:47 -0700 |
| commit | b6ad18b9795428c39292c15c712c7ce0ec0986c6 (patch) | |
| tree | 5113f4bb480815ee316e847cca954060afc419af /lib/models/user | |
| parent | folder restructure (diff) | |
| download | disml-b6ad18b9795428c39292c15c712c7ce0ec0986c6.tar.xz disml-b6ad18b9795428c39292c15c712c7ce0ec0986c6.zip | |
finish making model signatures
Diffstat (limited to 'lib/models/user')
| -rw-r--r-- | lib/models/user/presence.mli | 8 | ||||
| -rw-r--r-- | lib/models/user/user_t.mli | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/models/user/presence.mli b/lib/models/user/presence.mli new file mode 100644 index 0000000..0582f66 --- /dev/null +++ b/lib/models/user/presence.mli @@ -0,0 +1,8 @@ +type t = { + user: User_t.partial_user; + roles: Snowflake.t list; + game: Activity.t option; + guild_id: Snowflake.t; + status: string; + activities: Activity.t list; +} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/user/user_t.mli b/lib/models/user/user_t.mli new file mode 100644 index 0000000..50e9059 --- /dev/null +++ b/lib/models/user/user_t.mli @@ -0,0 +1,11 @@ +type partial_user = { + id: Snowflake.t; +} [@@deriving sexp, yojson] + +type t = { + id: Snowflake.t; + username: string; + discriminator: string; + avatar: string option; + bot: bool; +} [@@deriving sexp, yojson]
\ No newline at end of file |