This commit is contained in:
Melody Becker 2024-11-07 16:27:46 +01:00
parent a8abfb2219
commit 25243b3a9d
3 changed files with 113 additions and 5 deletions

View file

@ -6,10 +6,6 @@ import "time"
var (
_ = linstromNote{}
_ = linstromOriginServer{}
_ = linstromMediaMetadata{}
_ = linstromAccount{}
_ = linstromCustomAccountField{}
_ = linstromRole{}
)
@ -108,7 +104,7 @@ type linstromRole struct {
// If two roles have the same priority, the order is undetermined and may be random
// Default priority for new roles is 1 to always overwrite default user
// And full admin has max priority possible
Priority uint `jsonapi:"attr,priority"`
Priority uint32 `jsonapi:"attr,priority"`
// Whether this role is for a for a single user only (like custom, per user permissions in Discord)
// If yes, Name will be the id of the user in question
IsUserRole bool `jsonapi:"attr,is-user-role"`