initial commits

master
Charles Iliya Krempeaux 2023-09-26 13:51:37 +09:00
parent 37b9f5d181
commit fac0d087f7
1 changed files with 18 additions and 0 deletions

18
role.go 100644
View File

@ -0,0 +1,18 @@
package mstdn
import (
"sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-jsonint"
)
// Role represents a Mastodon API "Role".
//
// See:
// https://docs.joinmastodon.org/entities/Role/
type Role struct {
ID opt.Optional[jsonint.Int] `json:"id"`
Name opt.Optional[string] `json:"name"`
Color opt.Optional[string] `json:"color"`
Permissions opt.Optional[jsonint.Int] `json:"permissions"`
Highlighted opt.Optional[bool] `json:"color"`
}