Module: DiscordBot::Client::Gateway::GetGateway
- Included in:
- DiscordBot::Client
- Defined in:
- lib/discord_bot/client/gateway/get_gateway.rb
Overview
Gateway module
Instance Method Summary collapse
-
#get_gateway ⇒ Object
Get gateway.
Instance Method Details
#get_gateway ⇒ Object
Get gateway
8 9 10 11 12 13 |
# File 'lib/discord_bot/client/gateway/get_gateway.rb', line 8 def get_gateway # define params for request headers = { 'Content-Type' => 'application/json', 'Authorization' => "Bot #{bot_token}", 'User-Agent' => user_agent } # make request self.class.get('/gateway', query: {}, headers: headers).parsed_response end |