Class: KHL::HTTP::Badge

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

Overview

Constant Summary

Constants inherited from Base

KHL::HTTP::Base::API_VERSION, KHL::HTTP::Base::BASE_URL, KHL::HTTP::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

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

获取服务器徽章

Parameters:

  • guild_id (String)

    服务器 ID

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

    可选参数

Options Hash (options):

  • :style (Integer)

    样式类型,默认为 0

Returns:



15
16
17
# File 'lib/khl/http/badge.rb', line 15

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