Sha256: ded8c149bb564cb17eeda5b67a640d503c5de7f026113702c805fb4b5791507d
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
require 'httparty' require_relative 'client/guilds/members' require_relative 'client/guilds/channels' require_relative 'client/channels/channel' require_relative 'client/channels/create_message' require_relative 'client/channels/create_webhook' require_relative 'client/webhooks/execute' require_relative 'client/users/create_channel' require_relative 'client/users/me' require_relative 'client/gateway/get_gateway' require_relative 'client/gateway/get_gateway_bot' module DiscordBot # Client library class Client include HTTParty include DiscordBot::Client::Guilds::Members include DiscordBot::Client::Guilds::Channels include DiscordBot::Client::Channels::Channel include DiscordBot::Client::Channels::CreateMessage include DiscordBot::Client::Channels::CreateWebhook include DiscordBot::Client::Webhooks::Execute include DiscordBot::Client::Users::CreateChannel include DiscordBot::Client::Users::Me include DiscordBot::Client::Gateway::GetGateway include DiscordBot::Client::Gateway::GetGatewayBot base_uri 'https://discordapp.com/api/v6' format :json attr_reader :bot_token, :user_agent def initialize(bot_token:) @bot_token = bot_token @user_agent = "ComConBot #{DiscordBot::VERSION}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discord_bot-0.2.1 | lib/discord_bot/client.rb |