added set server permission function.

This commit is contained in:
5elenay
2021-08-26 17:02:04 +03:00
parent 9e4f21cea4
commit 839a6163da
2 changed files with 18 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ func (c Channel) CreateInvite() (string, error) {
// Set channel permissions for a role.
// Leave role field empty if you want to edit default permissions
func (c Channel) SetChannelPermissions(role_id string, permissions uint) error {
func (c Channel) SetPermissions(role_id string, permissions uint) error {
if role_id == "" {
role_id = "default"
}