Class: KHL::HTTP::ChannelUser

Inherits:
Base
  • Object
show all
Defined in:
lib/khl/http/channel_user.rb

Overview

Constant Summary

Constants inherited from Base

Base::API_VERSION, Base::BASE_URL, Base::END_POINT

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #post, #post_file

Constructor Details

This class inherits a constructor from KHL::HTTP::Base

Instance Method Details

#get_joined_channel(guild_id, user_id, options = {}) ⇒ KHL::HTTP::Response

根据用户 ID 和服务器 ID 获取用户所在语音频道

Parameters:

  • guild_id (String)

    服务器 ID

  • user_id (String)

    用户 ID

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

    可选参数

Options Hash (options):

  • :page (Integer)

    页数

  • :page_size (Integer)

    每页数据数量

Returns:



17
18
19
# File 'lib/khl/http/channel_user.rb', line 17

def get_joined_channel(guild_id, user_id, options = {})
  get(options.merge(guild_id: guild_id, user_id: user_id))
end