initial commits
parent
37b9f5d181
commit
fac0d087f7
|
@ -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"`
|
||||
}
|
Loading…
Reference in New Issue