module DiscordBot::Client::Gateway::GetGatewayBot
Gateway
module
Public Instance Methods
get_gateway_bot()
click to toggle source
Get gateway bot
# File lib/discord_bot/client/gateway/get_gateway_bot.rb, line 8 def get_gateway_bot # define params for request headers = { 'Content-Type' => 'application/json', 'Authorization' => "Bot #{bot_token}", 'User-Agent' => user_agent } # make request self.class.get('/gateway/bot', query: {}, headers: headers).parsed_response end