Skip to content

Commit

Permalink
admin: rename can_manage_voice_chats
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Oct 4, 2022
1 parent 89233a0 commit 98378aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type Rights struct {
CanSendPolls bool `json:"can_send_polls"`
CanSendOther bool `json:"can_send_other_messages"`
CanAddPreviews bool `json:"can_add_web_page_previews"`
CanManageVoiceChats bool `json:"can_manage_voice_chats"`
CanManageVoiceChats bool `json:"can_manage_video_chats"` // TODO(v4): CanManageVideoChats
CanManageChat bool `json:"can_manage_chat"`
}

Expand Down
2 changes: 1 addition & 1 deletion util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestEmbedRights(t *testing.T) {
"can_restrict_members": false,
"can_pin_messages": false,
"can_promote_members": false,
"can_manage_voice_chats": false,
"can_manage_video_chats": false,
"can_manage_chat": false,
}
assert.Equal(t, expected, params)
Expand Down

0 comments on commit 98378aa

Please sign in to comment.