Class: KHL::HTTP::GuildMute
Overview
服务器静音闭麦相关接口 developer.kaiheila.cn/doc/http/guild
Constant Summary
Constants inherited from Base
Base::API_VERSION, Base::BASE_URL, Base::END_POINT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#create(guild_id, user_id, type) ⇒ KHL::HTTP::Response
添加服务器静音或闭麦.
-
#delete(guild_id, user_id, type) ⇒ KHL::HTTP::Response
删除服务器静音或闭麦.
-
#list(guild_id, options = {}) ⇒ KHL::HTTP::Response
服务器静音闭麦列表.
Methods inherited from Base
#get, #initialize, #post, #post_file
Constructor Details
This class inherits a constructor from KHL::HTTP::Base
Instance Method Details
#create(guild_id, user_id, type) ⇒ KHL::HTTP::Response
添加服务器静音或闭麦
24 25 26 |
# File 'lib/khl/http/guild_mute.rb', line 24 def create(guild_id, user_id, type) post(guild_id: guild_id, user_id: user_id, type: type) end |
#delete(guild_id, user_id, type) ⇒ KHL::HTTP::Response
删除服务器静音或闭麦
33 34 35 |
# File 'lib/khl/http/guild_mute.rb', line 33 def delete(guild_id, user_id, type) post(guild_id: guild_id, user_id: user_id, type: type) end |
#list(guild_id, options = {}) ⇒ KHL::HTTP::Response
服务器静音闭麦列表
15 16 17 |
# File 'lib/khl/http/guild_mute.rb', line 15 def list(guild_id, = {}) get(.merge(guild_id: guild_id)) end |