Module: RubyCord

Defined in:
lib/rubycord.rb,
lib/rubycord/flag.rb,
lib/rubycord/user.rb,
lib/rubycord/asset.rb,
lib/rubycord/color.rb,
lib/rubycord/embed.rb,
lib/rubycord/emoji.rb,
lib/rubycord/error.rb,
lib/rubycord/guild.rb,
lib/rubycord/image.rb,
lib/rubycord/utils.rb,
lib/rubycord/client.rb,
lib/rubycord/common.rb,
lib/rubycord/channel.rb,
lib/rubycord/command.rb,
lib/rubycord/message.rb,
lib/rubycord/sticker.rb,
lib/rubycord/reaction.rb,
lib/rubycord/component.rb,
lib/rubycord/guild/ban.rb,
lib/rubycord/attachment.rb,
lib/rubycord/channel/dm.rb,
lib/rubycord/guild/role.rb,
lib/rubycord/permission.rb,
lib/rubycord/application.rb,
lib/rubycord/client/http.rb,
lib/rubycord/client/user.rb,
lib/rubycord/guild/event.rb,
lib/rubycord/integration.rb,
lib/rubycord/interaction.rb,
lib/rubycord/user/avatar.rb,
lib/rubycord/guild/invite.rb,
lib/rubycord/guild/member.rb,
lib/rubycord/guild/widget.rb,
lib/rubycord/message_meta.rb,
lib/rubycord/event_handler.rb,
lib/rubycord/guild/channel.rb,
lib/rubycord/guild/webhook.rb,
lib/rubycord/user/activity.rb,
lib/rubycord/user/presence.rb,
lib/rubycord/client/gateway.rb,
lib/rubycord/guild/template.rb,
lib/rubycord/allowed_mentions.rb,
lib/rubycord/client/extension.rb,
lib/rubycord/component/button.rb,
lib/rubycord/gateway_requests.rb,
lib/rubycord/guild/audit_logs.rb,
lib/rubycord/interaction/modal.rb,
lib/rubycord/guild/automod_rule.rb,
lib/rubycord/guild/channel/news.rb,
lib/rubycord/guild/channel/text.rb,
lib/rubycord/guild/voice_region.rb,
lib/rubycord/command/sub_command.rb,
lib/rubycord/guild/channel/forum.rb,
lib/rubycord/guild/channel/stage.rb,
lib/rubycord/guild/channel/voice.rb,
lib/rubycord/guild/vanity_invite.rb,
lib/rubycord/interaction/command.rb,
lib/rubycord/client/gateway/event.rb,
lib/rubycord/client/gateway/shard.rb,
lib/rubycord/component/text_input.rb,
lib/rubycord/guild/channel/thread.rb,
lib/rubycord/guild/welcome_screen.rb,
lib/rubycord/interaction/response.rb,
lib/rubycord/command/group_command.rb,
lib/rubycord/command/slash_command.rb,
lib/rubycord/component/select_menu.rb,
lib/rubycord/guild/audit_log/entry.rb,
lib/rubycord/guild/webhook/message.rb,
lib/rubycord/client/command_handler.rb,
lib/rubycord/client/gateway/intents.rb,
lib/rubycord/client/gateway_handler.rb,
lib/rubycord/guild/channel/category.rb,
lib/rubycord/interaction/components.rb,
lib/rubycord/interaction/autocomplete.rb,
lib/rubycord/guild/system_channel_flag.rb,
lib/rubycord/guild/webhook/url_webhook.rb,
lib/rubycord/guild/audit_log/integration.rb,
lib/rubycord/interaction/component/button.rb,
lib/rubycord/client/http/rate_limit_handler.rb,
lib/rubycord/guild/webhook/follower_webhook.rb,
lib/rubycord/guild/webhook/incoming_webhook.rb,
lib/rubycord/guild/channel/voice/voice_state.rb,
lib/rubycord/interaction/command/user_command.rb,
lib/rubycord/guild/webhook/application_webhook.rb,
lib/rubycord/interaction/command/slash_command.rb,
lib/rubycord/interaction/component/select_menu.rb,
lib/rubycord/guild/channel/stage/stage_instance.rb,
lib/rubycord/interaction/command/message_command.rb

Overview

typed: true frozen_string_literal: true

Defined Under Namespace

Modules: Internal Classes: Activity, AllowedMentions, Application, Asset, Attachment, BadRequestError, Channel, ClientError, CloudFlareBanError, Color, Command, Component, CustomEmoji, DMChannel, DefaultAvatar, DiscorbError, DiscordModel, Embed, Emoji, EventHandler, Flag, ForbiddenError, Guild, HTTPError, Image, Integration, Interaction, Message, NotFoundError, NotSupportedWarning, PartialEmoji, Permission, PermissionOverwrite, Reaction, Snowflake, Sticker, TimeoutError, UnauthorizedError, UnicodeEmoji, User

Constant Summary collapse

Colour =

Returns The alias of RubyCord::Color.

Returns:

  • (Class)

    The alias of RubyCord::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.1.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