Method: KHL::HTTP::ChannelRole#delete

Defined in:
lib/khl/http/channel_role.rb

#delete(channel_id, options = {}) ⇒ KHL::HTTP::Response

删除频道角色权限

Parameters:

  • channel_id (String)

    频道 ID,如果频道是分组的 ID,会同步给所有 sync=1 的子频道

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :type (String)

    value 的类型,只能为 “role_id”,“user_id”,不传则默认为 “user_id”

  • :value (String)

    根据 type 的值,为用户 ID 或频道 ID

Returns:



45
46
47
# File 'lib/khl/http/channel_role.rb', line 45

def delete(channel_id, options = {})
  post(options.merge(channel_id: channel_id))
end