module DiscordBot::Client::Channels::Channel
Get channel module
Public Instance Methods
get_channel(channel_id:)
click to toggle source
Get channel
# File lib/discord_bot/client/channels/channel.rb, line 8 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