module DiscordBot::Client::Gateway::GetGateway
Gateway
module
Public Instance Methods
get_gateway()
click to toggle source
Get gateway
# 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