Sha256: de9b47357f8162fe1a8dcc99762f49867d0a2c80e181bc603134c4355098e6e4
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
module DiscordBot class Client # Channel module module Channels # Message module module Channel # Get channel def get_channel(channel_id:) # define params for request headers = { 'Content-Type' => 'application/json', 'Authorization' => "Bot #{bot_token}", 'User-Agent' => user_agent } # make request self.class.get("/channels/#{channel_id}", 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.0 | lib/discord_bot/client/channels/channel.rb |