Sha256: 4277aa2a58d2b84e06d53016448028f137b2a5dc0d3f14b6d00d4098361583bc
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
module DiscordBot class Client # Users module module Users # Get user info module module Me # Returns user def me # define params for request headers = { 'Content-Type' => 'application/json', 'Authorization' => "Bot #{bot_token}", 'User-Agent' => user_agent } # make request self.class.get('/users/@me', 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/users/me.rb |