class DBots::Service::DiscordBotsGG
Represents the Discord Bots service. @see discord.bots.gg/docs
Constants
- ALIASES
- BASE_URL
Public Instance Methods
get_bot(id, sanitied = false)
click to toggle source
Gets the bot listed on this service. @Param id [String, Integer, resolve_id] the bot's ID @Param sanitied [true, false] whether to sanitize descriptions @return [RestClient::Response]
# File lib/dbots/lists/discordbotsgg.rb, line 15 def get_bot(id, sanitied = false) id = id.respond_to?(:resolve_id) ? id.resolve_id.to_s : id.to_s get_authed("/bots/#{id}", { sanitied: sanitied }) end
get_bots(query = {})
click to toggle source
Gets a list of bots on this service. @Param query [Hash] the query string that will be used in the request @return [RestClient::Response]
# File lib/dbots/lists/discordbotsgg.rb, line 23 def get_bots(query = {}) id = id.respond_to?(:resolve_id) ? id.resolve_id.to_s : id.to_s get_authed("/bots/#{id}", query) end