Instance Method

editPermissions(_:for:with:then:)

Edits a channel’s overwrite permission

Declaration

func editPermissions(_ permissions: [String : Any], for channelId: Snowflake, with overwriteId: Snowflake, then completion: ((RequestError?) -> Void)? = nil)

Parameters

permissions

[“allow”: perm#, “deny”: perm#, “type”: “role” || “member”]

channelId

Channel to edit permissions for

overwriteId

Overwrite ID to use for permissions

Option Params

  • allow: The bitwise allowed permissions

  • deny: The bitwise denied permissions

  • type: ‘member’ for a user, or ‘role’ for a role