Sha256: 46ce1d155e7339869168859594e35d98b662fa852588b85f78b48dd1e0bcd380

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

module DiscordBot
  class Client
    # Gateway module
    module Gateway
      # Gateway module
      module GetGatewayBot
        # Get gateway bot
        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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
discord_bot-0.2.1 lib/discord_bot/client/gateway/get_gateway_bot.rb