Module: Discorb

Defined in:
lib/discorb.rb,
lib/discorb/flag.rb,
lib/discorb/http.rb,
lib/discorb/role.rb,
lib/discorb/user.rb,
lib/discorb/asset.rb,
lib/discorb/color.rb,
lib/discorb/embed.rb,
lib/discorb/emoji.rb,
lib/discorb/error.rb,
lib/discorb/event.rb,
lib/discorb/guild.rb,
lib/discorb/image.rb,
lib/discorb/shard.rb,
lib/discorb/utils.rb,
lib/discorb/client.rb,
lib/discorb/common.rb,
lib/discorb/invite.rb,
lib/discorb/member.rb,
lib/discorb/automod.rb,
lib/discorb/gateway.rb,
lib/discorb/intents.rb,
lib/discorb/message.rb,
lib/discorb/modules.rb,
lib/discorb/sticker.rb,
lib/discorb/webhook.rb,
lib/discorb/presence.rb,
lib/discorb/reaction.rb,
lib/discorb/extension.rb,
lib/discorb/attachment.rb,
lib/discorb/audit_logs.rb,
lib/discorb/channel/dm.rb,
lib/discorb/components.rb,
lib/discorb/dictionary.rb,
lib/discorb/permission.rb,
lib/discorb/rate_limit.rb,
lib/discorb/application.rb,
lib/discorb/emoji_table.rb,
lib/discorb/integration.rb,
lib/discorb/voice_state.rb,
lib/discorb/channel/base.rb,
lib/discorb/channel/text.rb,
lib/discorb/message_meta.rb,
lib/discorb/channel/guild.rb,
lib/discorb/channel/stage.rb,
lib/discorb/channel/voice.rb,
lib/discorb/event_handler.rb,
lib/discorb/channel/thread.rb,
lib/discorb/gateway_events.rb,
lib/discorb/guild_template.rb,
lib/discorb/allowed_mentions.rb,
lib/discorb/channel/category.rb,
lib/discorb/gateway_requests.rb,
lib/discorb/interaction/root.rb,
lib/discorb/channel/container.rb,
lib/discorb/components/button.rb,
lib/discorb/interaction/modal.rb,
lib/discorb/app_command/common.rb,
lib/discorb/app_command/command.rb,
lib/discorb/app_command/handler.rb,
lib/discorb/interaction/command.rb,
lib/discorb/interaction/response.rb,
lib/discorb/components/text_input.rb,
lib/discorb/components/select_menu.rb,
lib/discorb/interaction/components.rb,
lib/discorb/interaction/autocomplete.rb

Overview

A new wrapper for the Discorb API.

Author:

  • sevenc-nanashi

Defined Under Namespace

Modules: ApplicationCommand, ChannelContainer, Connectable, EmojiTable, Extension, Gateway, Messageable Classes: Activity, AllowedMentions, Application, Asset, Attachment, AuditLog, AutoComplete, AutoModRule, BadRequestError, Button, CategoryChannel, Channel, Client, ClientError, ClientUser, CloudFlareBanError, Color, CommandInteraction, Component, CustomEmoji, DMChannel, DefaultAvatar, Dictionary, DiscorbError, DiscordModel, Embed, Emoji, EventHandler, Flag, ForbiddenError, Guild, GuildChannel, GuildTemplate, HTTPError, Image, Integration, Intents, Interaction, Invite, Member, Message, MessageComponentInteraction, ModalInteraction, NewsChannel, NotFoundError, NotSupportedWarning, PartialEmoji, Permission, PermissionOverwrite, Presence, Reaction, Role, ScheduledEvent, SelectMenu, Shard, Snowflake, StageChannel, StageInstance, Sticker, SystemChannelFlag, TextChannel, TextInput, ThreadChannel, TimeoutError, UnauthorizedError, UnicodeEmoji, User, VoiceChannel, VoiceRegion, VoiceState, Webhook, WelcomeScreen

Constant Summary collapse

Colour =

Returns The alias of Discorb::Color.

Returns:

  • (Class)

    The alias of Discorb::Color.

Color
API_BASE_URL =

Returns The API base URL.

Returns:

  • (String)

    The API base URL.

"https://discord.com/api/v10"
VERSION =

Returns The version of discorb.

Returns:

  • (String)

    The version of discorb.

"0.20.0"
VERSION_ARRAY =

Returns The version array of discorb.

Returns:

  • (Array<Integer>)

    The version array of discorb.

VERSION.split(".").map(&:to_i).freeze
USER_AGENT =

Returns The user agent for the bot.

Returns:

  • (String)

    The user agent for the bot.

"DiscordBot (https://discorb-lib.github.io #{VERSION}) Ruby/#{RUBY_VERSION}".freeze
Unset =

Returns Object that represents unspecified value. This is used as a default value for optional parameters.

Returns:

  • (Object)

    Object that represents unspecified value. This is used as a default value for optional parameters.

Object.new