Просмотр исходного кода

Add userlimit to the channel struct (#557)

Cory Ory 6 лет назад
Родитель
Сommit
e28d444422
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      structs.go

+ 3 - 0
structs.go

@@ -239,6 +239,9 @@ type Channel struct {
 	// A list of permission overwrites present for the channel.
 	PermissionOverwrites []*PermissionOverwrite `json:"permission_overwrites"`
 
+	// The user limit of the voice channel.
+	UserLimit int `json:"user_limit"`
+
 	// The ID of the parent channel, if the channel is under a category
 	ParentID string `json:"parent_id"`
 }