Sha256: 8ae9d7c25035d4164983433ce8807cf4b1641181b7391cc9e5c986616cff793b
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
module DiscordBot class Client # Gateway module module Gateway # Gateway module module GetGateway # Get gateway 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 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.rb |