module Discorb
A new wrapper for the Discorb
API.
@author sevenc-nanashi
Constants
- API_BASE_URL
@return [String] The API base URL.
- Colour
Represents RGB color.
- USER_AGENT
@return [String] The user agent for the bot.
- VERSION
@return [String] The version of discorb.
Public Instance Methods
macro()
click to toggle source
@!visibility private @!macro [new] async
@note This is an asynchronous method, it will return a `Async::Task` object. Use `Async::Task#wait` to get the result.
@!macro [new] client_cache
@note This method returns an object from client cache. it will return `nil` if the object is not in cache. @return [nil] The object wasn't cached.
@!macro members_intent
@note You must enable `GUILD_MEMBERS` intent to use this method.
@!macro edit
@note The arguments of this method are defaultly set to `:unset`. Specify value to set the value, if not don't specify or specify `:unset`.
@!macro http
@note This method calls HTTP request. @raise [Discorb::HTTPError] HTTP request failed.
# File lib/discorb.rb, line 25 def macro # NOTE: this method is only for YARD. puts "Wow, You found the easter egg!\n" red = "\e[31m" reset = "\e[m" puts <<~"EASTEREGG" . #{red} #{reset} | #{red} | #{reset} __| | __ __ _ #{red} _ |__ #{reset} / | | (__ / / \\ #{red}|/ | \\ #{reset} \\__| | __) \\__ \\_/ #{red}| |__/ #{reset} Thank you for using this library! EASTEREGG end