Explorar el Código

add Permissions to Member struct (#902)

* add Permissions to Member struct

* add period to Member.Permissions comment

* change Permissions type from string to int64
Pierce hace 3 años
padre
commit
f7db9886fc
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      structs.go

+ 3 - 0
structs.go

@@ -797,6 +797,9 @@ type Member struct {
 
 	// Is true while the member hasn't accepted the membership screen.
 	Pending bool `json:"pending"`
+
+	// Total permissions of the member in the channel, including overrides, returned when in the interaction object.
+	Permissions int64 `json:"permissions,string"`
 }
 
 // Mention creates a member mention