# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-07 23:20+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # title #: ../Changelog.md:1 msgid "Changelog" msgstr "" #: ../Changelog.md:3 msgid "# Changelog" msgstr "" #: ../Changelog.md:5 msgid "## v0.13" msgstr "" #: ../Changelog.md:7 msgid "### v0.13.0" msgstr "" #: ../Changelog.md:9 msgid "- Change!: Event is now EventHandler.\n" "- Add: Support for scheduled events.\n" "- Fix: Fix bug in sticker initialization.\n" "- Add: Support application flags\n" "- Add: Add `#inspect` method to many classes." msgstr "" #: ../Changelog.md:15 msgid "## v0.12" msgstr "" #: ../Changelog.md:17 msgid "### v0.12.4" msgstr "" #: ../Changelog.md:19 msgid "- Update: Update emoji table\n" "- Add: Support min_value and max_value for numeric options in slash command\n" "- Fix: Fix sending images" msgstr "" #: ../Changelog.md:23 msgid "### v0.12.3" msgstr "" #: ../Changelog.md:25 msgid "- Fix: Fix NoMethodError in command interaction\n" "- Fix: Fix NoMethodError in Integration#initialize" msgstr "" #: ../Changelog.md:28 msgid "### v0.12.2" msgstr "" #: ../Changelog.md:30 msgid "- Fix: Fix `Message#type`\n" "- Change: `discorb run` will lookup for `main.rb` in parent directories" msgstr "" #: ../Changelog.md:33 msgid "### v0.12.1" msgstr "" #: ../Changelog.md:35 msgid "- Fix: Fix some texts\n" "- Add: Add `User#mention`" msgstr "" #: ../Changelog.md:38 msgid "### v0.12.0" msgstr "" #: ../Changelog.md:40 msgid "- Refactor: Refactor the code\n" "- Fix: Fix resuming gateway, finally\n" "- Fix: Fix `@client` in slash command handler in extension" msgstr "" #: ../Changelog.md:44 msgid "## v0.11" msgstr "" #: ../Changelog.md:46 msgid "### v0.11.4" msgstr "" #: ../Changelog.md:48 msgid "- Fix: Fix unpinning messages" msgstr "" #: ../Changelog.md:50 msgid "### v0.11.3" msgstr "" #: ../Changelog.md:52 msgid "- Add: Add `Snowflake#id` as alias for `Snowflake#to_s`\n" "- Fix: Fix `Message#unpin`" msgstr "" #: ../Changelog.md:55 msgid "### v0.11.2" msgstr "" #: ../Changelog.md:57 msgid "- Add: Add `setup` event\n" "- Fix: Fix gateway resuming\n" "- Add: Add GitHub Packages" msgstr "" #: ../Changelog.md:61 msgid "### v0.11.1" msgstr "" #: ../Changelog.md:63 msgid "- Improve: Improve rate limit handling\n" "- Fix: Fix bug in Integration initalization\n" "- Change: Change log style\n" "- Add: Support OP code 7" msgstr "" #: ../Changelog.md:68 msgid "### v0.11.0" msgstr "" #: ../Changelog.md:70 msgid "- Add: Improve documents\n" "- Add: Implement global rate limits\n" "- Add: Add support autocomplete\n" "- Add: Add role icon editting\n" "- Change: Use `include Discorb::Extension` instead of `< Discorb::Extension`\n" "- Fix: Fix role operation" msgstr "" #: ../Changelog.md:77 msgid "## v0.10" msgstr "" #: ../Changelog.md:79 msgid "### v0.10.3" msgstr "" #: ../Changelog.md:81 msgid "- Add: Support role icons\n" "- Fix: Fix version order\n" "- Change: Use `exec` instead of `system` in `discorb run`\n" "- Add: Add `Extension.loaded`" msgstr "" #: ../Changelog.md:86 msgid "### v0.10.2" msgstr "" #: ../Changelog.md:88 msgid "- Change: `discorb init` is now `discorb new`\n" "- Add: Add `:channel_types` parameter to `ApplicationCommand::Handler#slash` and some" msgstr "" #: ../Changelog.md:91 msgid "### v0.10.1" msgstr "" #: ../Changelog.md:93 msgid "- Add: Add `Client#extensions`\n" "- Change: `Client#load_extension` allows instance of `Extension`\n" "- Add: Add `-b` option to `discorb run`" msgstr "" #: ../Changelog.md:97 msgid "### v0.10.0" msgstr "" #: ../Changelog.md:99 msgid "- Change: Sort versions\n" "- Change: Snowflake is now String\n" "- Change: Extension is now Class\n" "- Add: Add `SelectMenu#disabled=`" msgstr "" #: ../Changelog.md:104 msgid "## v0.9" msgstr "" #: ../Changelog.md:106 msgid "### v0.9.6" msgstr "" #: ../Changelog.md:108 msgid "- Add: Add `Messageable#send_message` as alias of `Messageable#post`\n" "- Fix: Fix interaction responding with updating message\n" "- Fix: Fix `MessageComponentInteraction#message`" msgstr "" #: ../Changelog.md:112 msgid "### v0.9.5" msgstr "" #: ../Changelog.md:114 msgid "- Fix: Fix editing message\n" "- Add: Add `required` in slash command argument\n" "- Add: Add `default` in slash command argument" msgstr "" #: ../Changelog.md:118 msgid "### v0.9.4" msgstr "" #: ../Changelog.md:120 msgid "- Change: `Messageable#typing` with block is now synchronous\n" "- Fix: Fix some issues in document\n" "- Add: Add some attributes to `Message`\n" "- Fix: Fix guild parameter in message of message command" msgstr "" #: ../Changelog.md:125 msgid "### v0.9.3" msgstr "" #: ../Changelog.md:127 msgid "- Fix: Fix interaction responding" msgstr "" #: ../Changelog.md:129 msgid "### v0.9.2 (yanked)" msgstr "" #: ../Changelog.md:131 msgid "- Add: Make `Async::Task#inspect` shorter\n" "- Add: `SourceResponse#post` will return message now\n" "- Fix: Fix member caching" msgstr "" #: ../Changelog.md:135 msgid "### v0.9.1" msgstr "" #: ../Changelog.md:137 msgid "- Fix: Fix member fetching" msgstr "" #: ../Changelog.md:139 msgid "### v0.9.0" msgstr "" #: ../Changelog.md:141 msgid "- Delete: Delete `-d` parameter from `discorb run`; This is caused by segement fault error.\n" "- Change: Rename `-t`, `--token` to `-e`, `--env` parameter\n" "- Add: Add `-t`, `--title` parameter to `discorb run`\n" "- Add: Add `title` parameter to `Client#initialize`" msgstr "" #: ../Changelog.md:146 msgid "## v0.8" msgstr "" #: ../Changelog.md:148 msgid "### v0.8.2" msgstr "" #: ../Changelog.md:150 msgid "- Fix: Fix `Client#initialize`" msgstr "" #: ../Changelog.md:152 msgid "### v0.8.1" msgstr "" #: ../Changelog.md:154 msgid "- Add: Add FAQ\n" "- Fix: Fix sending files\n" "- Add: Add `File.from_string`\n" "- Fix: Fix `Client#update_presence`\n" "- Add: Add information in `discorb run -d`" msgstr "" #: ../Changelog.md:160 msgid "### v0.8.0" msgstr "" #: ../Changelog.md:162 msgid "- Add: Add `Guild#fetch_members`\n" "- Add: Add `Guild#fetch_member_list` as alias of `Guild#fetch_members`\n" "- Add: Add `Intents#to_h`\n" "- Add: Add `fetch_member` parameter to `Client#initialize`; Note you should set `false` if your bot doesn't have `GUILD_MEMBERS` intent\n" "- Change: Change `ready` to `standby` event\n" "- Change: `ready` will be fired when client receives `READY` event" msgstr "" #: ../Changelog.md:169 msgid "## v0.7" msgstr "" #: ../Changelog.md:171 msgid "### v0.7.6" msgstr "" #: ../Changelog.md:173 msgid "- Fix: Fix heartbeating error" msgstr "" #: ../Changelog.md:175 msgid "### v0.7.5 (yanked)" msgstr "" #: ../Changelog.md:177 #: ../Changelog.md:321 msgid "- Fix: Fix critical error" msgstr "" #: ../Changelog.md:179 msgid "### v0.7.4 (yanked)" msgstr "" #: ../Changelog.md:181 msgid "- Fix: Fix disconnected client" msgstr "" #: ../Changelog.md:183 msgid "### v0.7.3" msgstr "" #: ../Changelog.md:185 msgid "- Add: Improve `discorb init`" msgstr "" #: ../Changelog.md:187 msgid "### v0.7.2" msgstr "" #: ../Changelog.md:189 msgid "- Add: Add `Member#owner?`\n" "- Fix: Fix `Member#permissions`\n" "- Add: Add `Member#guild_permissions` as alias of `Member#permissions`\n" "- Add: Add default role to `Member#roles`\n" "- Fix: Fix error in `Integration#_set_data`\n" "- Change: Reverse `Member#roles`" msgstr "" #: ../Changelog.md:196 msgid "### v0.7.1" msgstr "" #: ../Changelog.md:198 msgid "- Fix: Fix error of responding to interaction" msgstr "" #: ../Changelog.md:200 msgid "### v0.7.0" msgstr "" #: ../Changelog.md:202 msgid "- Add: Add `error` event\n" "- Fix: Fix some issues with client without guild intent\n" "- Add: Add alias for `#fired_by`\n" "- Change!: Change block usage of `ApplicationCommand::Handler#group`" msgstr "" #: ../Changelog.md:207 msgid "```ruby\n" "# before\n" "client.slash_group do\n" " slash \"help\", \"Help\" do |interaction|\n" " # ...\n" " end\n" "end" msgstr "" #: ../Changelog.md:215 msgid "# after\n" "client.slash_group do |group|\n" " group.slash \"help\", \"Help\" do |interaction|\n" " # ...\n" " end\n" "end" msgstr "" #: ../Changelog.md:222 #: ../docs/application_command.md:139 #: ../docs/application_command.md:242 #: ../docs/extension.md:116 msgid "```" msgstr "" #: ../Changelog.md:224 msgid "## v0.6" msgstr "" #: ../Changelog.md:226 msgid "### v0.6.1" msgstr "" #: ../Changelog.md:228 msgid "- Change: Rename `Event#discriminator` to `Event#metadata`\n" "- Add: Add `:override` to `Client#on`" msgstr "" #: ../Changelog.md:231 msgid "### v0.6.0" msgstr "" #: ../Changelog.md:233 msgid "- Fix: Fix issue with client with no guilds\n" "- Add: Add rbs (experimental)\n" "- Add: Add `-t`, `--token` option to `discorb run`\n" "- Add: Add `-g`, `--guild` option to `discorb setup`\n" "- Change: Use `Async::Task<R>` instead of `R` in return value" msgstr "" #: ../Changelog.md:239 msgid "## v0.5" msgstr "" #: ../Changelog.md:241 msgid "### v0.5.6" msgstr "" #: ../Changelog.md:243 msgid "- Add: Raise error when intents are invalid\n" "- Fix: Fix Emoji#==" msgstr "" #: ../Changelog.md:246 msgid "### v0.5.5" msgstr "" #: ../Changelog.md:248 msgid "- Fix: Fix some bugs" msgstr "" #: ../Changelog.md:250 msgid "### v0.5.4" msgstr "" #: ../Changelog.md:252 msgid "- Fix: Fix issue of receiving component events" msgstr "" #: ../Changelog.md:254 msgid "### v0.5.3" msgstr "" #: ../Changelog.md:256 msgid "- Add: Add way to handle raw events with `event_xxx`\n" "- Add: Add `Client#session_id`\n" "- Add: Add `Connectable`\n" "- Fix: Fix error by sending DM" msgstr "" #: ../Changelog.md:261 msgid "### v0.5.2" msgstr "" #: ../Changelog.md:263 msgid "- Fix: Fix bug of registering commands\n" "- Add: Add way to register commands in Extension" msgstr "" #: ../Changelog.md:266 msgid "### v0.5.1" msgstr "" #: ../Changelog.md:268 msgid "- Add: Can use block for defining group commands\n" "- Fix: Fix bug in subcommands\n" "- Fix: Fix bug in receiving commands" msgstr "" #: ../Changelog.md:272 msgid "### v0.5.0" msgstr "" #: ../Changelog.md:274 msgid "- Change: Use zlib stream instead\n" "- Add: Add tutorials\n" "- Add: Add ratelimit handler\n" "- Change: Make `--git` option in `discorb init` false" msgstr "" #: ../Changelog.md:279 msgid "## v0.4" msgstr "" #: ../Changelog.md:281 msgid "### v0.4.2" msgstr "" #: ../Changelog.md:283 msgid "- Fix: Fix error in `discorb run`" msgstr "" #: ../Changelog.md:285 msgid "### v0.4.1" msgstr "" #: ../Changelog.md:287 msgid "- Add: Add `-s` option to `discorb run`" msgstr "" #: ../Changelog.md:289 msgid "### v0.4.0" msgstr "" #: ../Changelog.md:291 msgid "- Add: Add `discorb setup`\n" "- Add: Add `discorb run`\n" "- Add: Add realtime documentation" msgstr "" #: ../Changelog.md:295 msgid "## v0.3" msgstr "" #: ../Changelog.md:297 msgid "### v0.3.1" msgstr "" #: ../Changelog.md:299 msgid "- Add: Add `discorb show`\n" "- Fix: Fix documenting" msgstr "" #: ../Changelog.md:302 msgid "### v0.3.0" msgstr "" #: ../Changelog.md:304 msgid "- Add: Improve CLI tools\n" "- Add: Add `discorb init`\n" "- Change: Change `discord-irb` to `discorb irb`" msgstr "" #: ../Changelog.md:308 msgid "## v0.2" msgstr "" #: ../Changelog.md:310 msgid "### v0.2.5" msgstr "" #: ../Changelog.md:312 msgid "- Add: Add way to add event listener\n" "- Change: Move document to https://discorb-lib.github.io/" msgstr "" #: ../Changelog.md:315 msgid "### v0.2.4" msgstr "" #: ../Changelog.md:317 msgid "- Fix: Fix error in `Embed#image=`, `Embed#thumbnail=`" msgstr "" #: ../Changelog.md:319 msgid "### v0.2.3" msgstr "" #: ../Changelog.md:323 msgid "### v0.2.2 (yanked)" msgstr "" #: ../Changelog.md:325 msgid "- Add: Add `Snowflake#to_str`" msgstr "" #: ../Changelog.md:327 msgid "### v0.2.1" msgstr "" #: ../Changelog.md:329 msgid "- Fix: Fix NoMethodError in reaction event\n" "- Add: Add Changelog.md to document" msgstr "" #: ../Changelog.md:332 msgid "### v0.2.0" msgstr "" #: ../Changelog.md:334 msgid "- Fix: Fix unused dependency\n" "- Add: Add `Client#close!`\n" "- Add: Add discord-irb" msgstr "" #: ../Changelog.md:338 msgid "## v0.1" msgstr "" #: ../Changelog.md:340 msgid "### v0.1.0" msgstr "" #: ../Changelog.md:342 msgid "- Add: Add `User#created_at`\n" "- Add: Add `Member#to_s_user`\n" "- Add: Add `DefaultAvatar`\n" "- Add: Support application commands\n" "- Add: Add `Client#ping`\n" "- Add: Allow `String` for `Embed#initialize`\n" "- Change: Change log format" msgstr "" #: ../Changelog.md:350 msgid "## v0.0" msgstr "" #: ../Changelog.md:352 msgid "### v0.0.8" msgstr "" #: ../Changelog.md:354 msgid "- Delete: Delete task parameter" msgstr "" #: ../Changelog.md:356 msgid "### v0.0.7" msgstr "" #: ../Changelog.md:358 msgid "- Fix: Fix `member_xxx` event" msgstr "" #: ../Changelog.md:360 msgid "### v0.0.6" msgstr "" #: ../Changelog.md:362 msgid "- Fix: Fix error in client without members intent\n" "- Add: Add ThreadChannel::News\n" "- Add: Add official discord link" msgstr "" #: ../Changelog.md:366 msgid "### v0.0.5" msgstr "" #: ../Changelog.md:368 msgid "- Fix: Fix GitHub link\n" "- Change: Internet to HTTP" msgstr "" #: ../Changelog.md:371 msgid "### v0.0.4" msgstr "" #: ../Changelog.md:373 msgid "- Fix: Fix NoMethodError by webhook message\n" "- Add: Add `#author` to webhook message\n" "- Fix: Add `#bot?` to webhook author" msgstr "" #: ../Changelog.md:377 msgid "### v0.0.3" msgstr "" #: ../Changelog.md:379 msgid "- Fix: Fix no dependencies" msgstr "" #: ../Changelog.md:381 msgid "### v0.0.2" msgstr "" #: ../Changelog.md:383 msgid "- Fix: Fix rubygems description" msgstr "" #: ../Changelog.md:385 msgid "### v0.0.1" msgstr "" #: ../Changelog.md:387 msgid "- Initial release" msgstr "" #: ../README.md:1 msgid "<div align=\"center\"><img src=\"./assets/banner.svg\" alt=\"discorb\"></div>" msgstr "" #: ../README.md:3 msgid "<div align=\"center\"><a href=\"https://discorb-lib.github.io/\"><img src=\"https://img.shields.io/badge/Document-discorb--lib.github.io-blue.svg?style=flat-square&labelColor=2f3136\" alt=\"Document\"></a>\n" "<a href=\"https://rubygems.org/gems/discorb\"><img src=\"https://img.shields.io/gem/dt/discorb?logo=rubygems&logoColor=fff&label=Downloads&style=flat-square&labelColor=2f3136\" alt=\"Gem\"></a>\n" "<a href=\"https://rubygems.org/gems/discorb\"><img src=\"https://img.shields.io/gem/v/discorb?logo=rubygems&logoColor=fff&label=Version&style=flat-square&labelColor=2f3136\" alt=\"Gem\"></a>\n" "<a href=\"https://discord.gg/hCP6zq8Vpj\"><img src=\"https://img.shields.io/discord/863581274916913193?logo=discord&logoColor=fff&color=5865f2&label=Discord&style=flat-square&labelColor=2f3136\" alt=\"Discord\"></a>\n" "<a href=\"https://github.com/discorb-lib/discorb\"><img src=\"https://img.shields.io/github/stars/discorb-lib/discorb?color=24292e&label=Stars&logo=GitHub&logoColor=fff&style=flat-square&labelColor=2f3136\" alt=\"GitHub\"></a>\n" "<a href=\"https://codeclimate.com/github/discorb-lib/discorb\"><img alt=\"Code Climate maintainability\" src=\"https://img.shields.io/codeclimate/maintainability/discorb-lib/discorb?logo=Code%20Climate&logoColor=ffffff&style=flat-square&labelColor=2f3136&label=Maintainability\"></a></div>" msgstr "" #: ../README.md:10 #: ../docs/license.md:7 #: ../docs/license.md:11 msgid "----" msgstr "" #: ../README.md:12 msgid "discorb is a Discord API wrapper written in Ruby." msgstr "" #: ../README.md:14 msgid "## Installation" msgstr "" #: ../README.md:16 msgid "Add this line to your application's Gemfile:" msgstr "" #: ../README.md:18 msgid "```ruby\n" "gem 'discorb'\n" "```" msgstr "" #: ../README.md:22 msgid "And then execute:" msgstr "" #: ../README.md:24 msgid " $ bundle install" msgstr "" #: ../README.md:26 msgid "Or install it yourself as:" msgstr "" #: ../README.md:28 msgid " $ gem install discorb" msgstr "" #: ../README.md:30 #: ../docs/cli.md:7 #: ../docs/cli/irb.md:8 #: ../docs/cli/new.md:7 #: ../docs/cli/run.md:8 #: ../docs/cli/setup.md:7 msgid "## Usage" msgstr "" #: ../README.md:32 msgid "### Ping & Pong" msgstr "" #: ../README.md:34 #: ../README.md:55 #: ../README.md:90 #: ../docs/application_command.md:30 msgid "```ruby\n" "require \"discorb\"" msgstr "" #: ../README.md:37 #: ../README.md:58 #: ../README.md:93 #: ../docs/application_command.md:33 msgid "client = Discorb::Client.new" msgstr "" #: ../README.md:39 #: ../README.md:60 msgid "client.once :standby do\n" " puts \"Logged in as #{client.user}\"\n" "end" msgstr "" #: ../README.md:43 msgid "client.on :message do |message|\n" " next if message.author.bot?\n" " next unless message.content == \"ping\"" msgstr "" #: ../README.md:47 msgid " message.channel.post(\"Pong!\")\n" "end" msgstr "" #: ../README.md:50 #: ../README.md:85 #: ../README.md:99 #: ../docs/application_command.md:39 msgid "client.run(ENV[\"DISCORD_BOT_TOKEN\"])\n" "```" msgstr "" #: ../README.md:53 msgid "### Quiz Game" msgstr "" #: ../README.md:64 msgid "client.on :message do |message|\n" " next if message.author.bot?\n" " next unless message.content == \"!quiz\"" msgstr "" #: ../README.md:68 msgid " operator = [:+, :-, :*].sample\n" " num1 = rand(1..10)\n" " num2 = rand(1..10)" msgstr "" #: ../README.md:72 msgid " val = num1.send(operator, num2)\n" " message.channel.post(\"Quiz: `#{num1} #{operator} #{num2}`\")\n" " begin\n" " msg = client.event_lock(:message, 30) { |m|\n" " m.content == val.to_s && m.channel == message.channel\n" " }.wait\n" " rescue Discorb::TimeoutError\n" " message.channel.post(\"No one answered...\")\n" " else\n" " msg.reply(\"Correct!\")\n" " end\n" "end" msgstr "" #: ../README.md:88 msgid "### Slash Commands" msgstr "" #: ../README.md:95 msgid "client.slash(\"hello\", \"Greet for you\") do |interaction|\n" " interaction.post(\"Hello!\", ephemeral: true)\n" "end" msgstr "" #: ../README.md:102 msgid "Note you must run `discorb setup` before using slash commands." msgstr "" #: ../README.md:104 msgid "## Contributing" msgstr "" #: ../README.md:106 msgid "Bug reports and pull requests are welcome on GitHub at https://github.com/discorb-lib/discorb." msgstr "" #: ../README.md:108 msgid "## License" msgstr "" #: ../README.md:110 msgid "The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT)." msgstr "" # title #: ../docs/Examples.md:1 msgid "Examples" msgstr "" #: ../docs/Examples.md:3 msgid "# Examples" msgstr "" #: ../docs/Examples.md:5 msgid "## Simple ping pong" msgstr "" #: ../docs/Examples.md:7 msgid "{include:file:examples/simple/ping_pong.rb}" msgstr "" #: ../docs/Examples.md:9 msgid "## Wait for a message" msgstr "" #: ../docs/Examples.md:11 msgid "{include:file:examples/simple/wait_for_message.rb}" msgstr "" #: ../docs/Examples.md:13 msgid "## Use components" msgstr "" #: ../docs/Examples.md:15 msgid "### Authorization button" msgstr "" #: ../docs/Examples.md:17 msgid "{include:file:examples/components/authorization_button.rb}" msgstr "" #: ../docs/Examples.md:19 msgid "### Pagination with select menu" msgstr "" #: ../docs/Examples.md:21 msgid "{include:file:examples/components/select_menu.rb}" msgstr "" #: ../docs/Examples.md:23 #: ../docs/events.md:412 msgid "#### Note" msgstr "" #: ../docs/Examples.md:25 msgid "This example is not shown correctly in the docs.\n" "[Read this example on GitHub](https://github.com/discorb-lib/discorb/blob/main/examples/components/select_menu.rb)." msgstr "" # title #: ../docs/application_command.md:1 msgid "Application Commands" msgstr "" #: ../docs/application_command.md:3 msgid "# Application Commands" msgstr "" #: ../docs/application_command.md:5 msgid "## What is an application command?" msgstr "" #: ../docs/application_command.md:7 msgid "> Application commands are commands that an application can register to Discord. They provide users a first-class way of interacting directly with your application that feels deeply integrated into Discord." msgstr "" #: ../docs/application_command.md:9 msgid "From: [Discord API docs](https://discord.com/developers/docs/interactions/application-commands#application-commands)" msgstr "" #: ../docs/application_command.md:11 msgid "## How do I register an application command?" msgstr "" #: ../docs/application_command.md:13 msgid "Write to a your script:\n" "- {Discorb::ApplicationCommand::Handler.slash}, {Discorb::ApplicationCommand::Handler.slash_group} for slash commands,\n" "- {Discorb::ApplicationCommand::Handler.user_command} for user menu commands,\n" "- {Discorb::ApplicationCommand::Handler.message_command} for message menu commands." msgstr "" #: ../docs/application_command.md:18 msgid "And then run `discorb setup` to register your application commands.\n" "{file:docs/cli/setup.md Learn more about `discorb setup`}." msgstr "" #: ../docs/application_command.md:21 msgid "### Note" msgstr "" #: ../docs/application_command.md:23 msgid "To register a global command, it will take 1 hour to be registered.\n" "Guild commands will be registered immediately." msgstr "" #: ../docs/application_command.md:26 msgid "### Register Slash Commands" msgstr "" #: ../docs/application_command.md:28 msgid "This example registers a slash command that says \"Hello, world!\" when the user types `/hello`." msgstr "" #: ../docs/application_command.md:35 msgid "client.slash(\"hello\", \"Greet for you\") do |interaction|\n" " interaction.post(\"Hello World!\", ephemeral: true)\n" "end" msgstr "" #: ../docs/application_command.md:42 msgid "{Discorb::ApplicationCommand::Handler#slash} takes 5 arguments:" msgstr "" #: ../docs/application_command.md:44 msgid "| Argument | Description |\n" "|---------|-------------|\n" "| `command_name` | The name of the command. |\n" "| `description` | The description of the command. |\n" "| `options` | A hash of options. |\n" "| `guild_ids` | The ID of the guild to register the command in. |\n" "| `block` | A block that will be called when the command is invoked. |" msgstr "" #: ../docs/application_command.md:52 msgid "Block will be called with a {Discorb::ApplicationCommand::Interaction} object and specified options." msgstr "" #: ../docs/application_command.md:54 msgid "In `options`, hash should be like this:" msgstr "" #: ../docs/application_command.md:56 msgid "```ruby\n" "{\n" " \"Name\" => {\n" " type: :string,\n" " required: true,\n" " description: \"The description of the command.\"\n" " }\n" "}\n" "```\n" "| Key | Type | Description |\n" "| --- | --- | --- |\n" "| `:description` | `String` | Description of the option. |\n" "| `:required` | Whether the argument is required. `optional` will be used if not specified. |\n" "| `:optional` | Whether the argument is optional. `required` will be used if not specified. |\n" "| `:type` | `Object` | Type of the option. |\n" "| `:choice` | `Hash{String => String, Integer, Float}` | Type of the option. |\n" "| `:default` | `Object` | Default value of the option. |\n" "| `:channel_types` | `Array<Class<Discorb::Channel>>` | Type of the channel option. |\n" "| `:autocomplete` | `Proc` | Autocomplete function. |\n" "| `:range` | `Range` | Range of the option. Only valid for numeric options. (`:int`, `:float`) |" msgstr "" #: ../docs/application_command.md:77 msgid "`choices` should be unspecified if you don't want to use it.\n" "`choices` is hash like this:" msgstr "" #: ../docs/application_command.md:80 msgid "```ruby\n" "{\n" " \"vocaloid\" => {\n" " required: true,\n" " description: \"The vocaloid which you like.\",\n" " type: :string,\n" " choices: {\n" " \"Hatsune Miku\" => \"miku\",\n" " \"Kagamine Rin\" => \"rin\",\n" " \"Kagamine Len\" => \"len\",\n" " \"Megurine Luka\" => \"luka\",\n" " \"MEIKO\" => \"meiko\",\n" " \"KAITO\" => \"kaito\",\n" " }\n" " }\n" "}" msgstr "" #: ../docs/application_command.md:97 msgid "# Note: This aritcle is written in 8/31.\n" "```" msgstr "" #: ../docs/application_command.md:100 msgid "The key will be displayed in the user menu, and the value will be used as the argument." msgstr "" #: ../docs/application_command.md:102 msgid "In `type`, You must use one of the following:" msgstr "" #: ../docs/application_command.md:104 msgid "| Name | Description | Aliases|\n" "| --- | --- | --- |\n" "| `:string` | String argument. | `:str` |\n" "| `:integer` | Integer argument. | `:int` |\n" "| `:float` | Float argument. | None |\n" "| `:boolean` | Boolean argument. | `:bool` |\n" "| `:user` | User argument. | `:member` |\n" "| `:channel` | Channel argument. | None |\n" "| `:role` | Role argument. | None |" msgstr "" #: ../docs/application_command.md:114 msgid "#### Group Slash Commands" msgstr "" #: ../docs/application_command.md:116 msgid "To register a group of slash commands, use {Discorb::ApplicationCommand::Handler#slash_group}." msgstr "" #: ../docs/application_command.md:118 msgid "```ruby\n" "group = client.slash_group(\"settings\", \"Set settings of bot.\")" msgstr "" #: ../docs/application_command.md:121 msgid "group.slash(\"message_expand\", \"Whether bot should expand message.\", {\n" " \"enabled\" => {\n" " type: :boolean,\n" " description: \"Whether bot should expand message.\"\n" " }\n" "}) do |interaction, enabled|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:130 msgid "group.slash(\"level\", \"Whether level system is enabled.\", {\n" " \"enabled\" => {\n" " type: :boolean,\n" " description: \"Whether level system is enabled.\"\n" " }\n" "}) do |interaction, enabled|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:141 msgid "Since v0.5.1, You can use block for register commands." msgstr "" #: ../docs/application_command.md:143 msgid "```ruby" msgstr "" #: ../docs/application_command.md:145 msgid "client.slash_group(\"settings\", \"Set settings of bot.\") do |group|\n" " group.slash(\"message_expand\", \"Whether bot should expand message.\", {\n" " \"enabled\" => {\n" " type: :boolean,\n" " description: \"Whether bot should expand message.\"\n" " }\n" " }) do |interaction, enabled|\n" " # ...\n" " end\n" " group.slash(\"bump_alert\", \"Whether level system is enabled.\", {\n" " \"enabled\" => {\n" " type: :boolean,\n" " description: \"Whether level system is enabled.\"\n" " }\n" " }) do |interaction, enabled|\n" " # ...\n" " end\n" "end\n" "```" msgstr "" #: ../docs/application_command.md:165 msgid "You can make subcommand group by using {Discorb::ApplicationCommand::Command::GroupCommand#group}." msgstr "" #: ../docs/application_command.md:167 msgid "```ruby\n" "group = client.slash_group(\"permission\", \"Set/Get command permissions.\")" msgstr "" #: ../docs/application_command.md:170 #: ../docs/application_command.md:194 msgid "group_user = group.group(\"user\", \"Set/Get user's command permissions.\")" msgstr "" #: ../docs/application_command.md:172 msgid "group_user.slash(\"set\", \"Set user's command permissions.\", {\n" " \"user_id\" => {\n" " type: :user,\n" " description: \"The user.\"\n" " },\n" " \"value\" => {\n" " type: :boolean,\n" " description: \"Whether the user can use the command.\"\n" " }\n" "}) do |interaction, user|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:185 #: ../docs/application_command.md:209 msgid "group_user.slash(\"get\", \"Set user's command permissions.\", {\n" " \"user_id\" => {\n" " type: :user,\n" " description: \"The user.\"\n" " },\n" "}) do |interaction, user|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:196 msgid "group_user.slash(\"set\", \"Set user's command permissions.\", {\n" " \"user_id\" => {\n" " type: :user,\n" " description: \"The user.\"\n" " },\n" " \"value\" => {\n" " type: :boolean,\n" " description: \"Whether the user can use the command.\"\n" " }\n" "}) do |interaction, user|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:218 msgid "group_role = group.group(\"role\", \"Set/Get role's command permissions.\")" msgstr "" #: ../docs/application_command.md:220 msgid "group_role.slash(\"set\", \"Set role's command permissions.\", {\n" " \"role_id\" => {\n" " type: :role,\n" " description: \"The role.\"\n" " },\n" " \"value\" => {\n" " type: :boolean,\n" " description: \"Whether the role can use the command.\"\n" " }\n" "}) do |interaction, role|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:233 msgid "group_role.slash(\"get\", \"Set role's command permissions.\", {\n" " \"role_id\" => {\n" " type: :role,\n" " description: \"The role.\"\n" " },\n" "}) do |interaction, role|\n" " # ...\n" "end" msgstr "" #: ../docs/application_command.md:244 msgid "Same as above, you can use block for register commands since v0.5.1." msgstr "" #: ../docs/application_command.md:246 msgid "#### Use Auto Completing" msgstr "" #: ../docs/application_command.md:248 msgid "Since v0.11.0, you can use auto completion by setting Proc to `:autocomplete` in options.\n" "The proc will be called with interaction object and the argument.\n" "The proc should return an hash of the autocomplete result." msgstr "" #: ../docs/application_command.md:252 msgid "```ruby\n" "client.slash(\"hello2\", \"Greet for you\", {\n" " \"target\" => {\n" " type: :string,\n" " description: \"Person to greet\",\n" " autocomplete: ->(interaction, target) {\n" " {\n" " \"You\" => interaction.target.to_s\n" " }\n" " },\n" " },\n" "}) do |interaction, target|\n" " interaction.post(\"Hello, #{target}!\")\n" "end\n" "```" msgstr "" #: ../docs/application_command.md:268 msgid "In the above example, `You` will be displayed in the user menu.\n" "Due to the limitation of Discord API, the proc must return the result in less than 3 second." msgstr "" #: ../docs/application_command.md:271 msgid "### Register User Context Menu Command" msgstr "" #: ../docs/application_command.md:273 msgid "```ruby\n" "client.user_command(\"hello\") do |interaction, user|\n" " interaction.post(\"Hello, #{user.name}!\")\n" "end\n" "```\n" "{Discorb::ApplicationCommand::Handler.user_command} takes 3 arguments:" msgstr "" #: ../docs/application_command.md:280 #: ../docs/application_command.md:304 msgid "| Parameter | Description |\n" "| --- | --- |\n" "| `command_name` | The name of the command. |\n" "| `guild_ids` | The ID of the guild to register the command in. |\n" "| `block` | A block that will be called when the command is invoked. |" msgstr "" #: ../docs/application_command.md:286 #: ../docs/application_command.md:310 msgid "`block` will be called with two arguments:" msgstr "" #: ../docs/application_command.md:288 msgid "| Parameter | Description |\n" "| --- | --- |\n" "| `interaction` | The interaction object. |\n" "| `user` | The user object. |" msgstr "" #: ../docs/application_command.md:294 msgid "### Register Message Context Menu Command" msgstr "" #: ../docs/application_command.md:296 msgid "```ruby\n" "client.message_command(\"Bookmark\") do |interaction, message|\n" " # ...\n" "end\n" "```" msgstr "" #: ../docs/application_command.md:302 msgid "{Discorb::ApplicationCommand::Handler.message_command} takes 3 arguments:" msgstr "" #: ../docs/application_command.md:312 msgid "| Parameter | Description |\n" "| --- | --- |\n" "| `interaction` | The interaction object. |\n" "| `message` | The message object. |" msgstr "" # title #: ../docs/cli.md:1 msgid "CLI tools" msgstr "" #: ../docs/cli.md:3 msgid "# CLI tools" msgstr "" #: ../docs/cli.md:5 msgid "discorb has a CLI tool for developing." msgstr "" #: ../docs/cli.md:9 msgid "```bash\n" "bundle exec discorb <command> ...\n" "```" msgstr "" #: ../docs/cli.md:13 msgid "## Commands" msgstr "" #: ../docs/cli.md:15 msgid "Currently, discorb has the following commands:" msgstr "" #: ../docs/cli.md:17 msgid "| Command | Description |\n" "|---------|-------------|\n" "| {file:docs/cli/new.md `new`} | Create a new project. |\n" "| {file:docs/cli/irb.md `irb`} | Start an interactive Ruby shell with connected client. |\n" "| {file:docs/cli/run.md `run`} | Run a client. |\n" "| {file:docs/cli/setup.md `setup`} | Setup application commands. |\n" "| `show` | Show your environment. (No document) |\n" "| `about` | Show discorb's information. (No document) |" msgstr "" #: ../docs/cli.md:26 msgid "Click the command name to see the document." msgstr "" # title #: ../docs/cli/irb.md:1 msgid "CLI: discorb irb" msgstr "" #: ../docs/cli/irb.md:3 msgid "# discorb irb" msgstr "" #: ../docs/cli/irb.md:5 msgid "This command will start an interactive Ruby shell with connected client." msgstr "" #: ../docs/cli/irb.md:10 msgid "```\n" "discorb irb [options]\n" "```" msgstr "" #: ../docs/cli/irb.md:14 msgid "### Load a token" msgstr "" #: ../docs/cli/irb.md:16 msgid "discorb irb will load a token from...\n" "1. the `DISCORD_BOT_TOKEN` environment variable\n" "2. the `DISCORD_TOKEN` environment variable\n" "3. `token` file in the current directory(customizable with `-t` option)\n" "4. your input" msgstr "" #: ../docs/cli/irb.md:22 #: ../docs/cli/run.md:14 #: ../docs/cli/setup.md:13 msgid "### Arguments" msgstr "" #: ../docs/cli/irb.md:24 msgid "#### `-i`, `--intents`" msgstr "" #: ../docs/cli/irb.md:26 msgid "Intents to use.\n" "Specify intents with integers." msgstr "" #: ../docs/cli/irb.md:29 msgid "#### `-t`, `--token-file`" msgstr "" #: ../docs/cli/irb.md:31 msgid "Token file to load." msgstr "" #: ../docs/cli/irb.md:33 msgid "### Variables" msgstr "" #: ../docs/cli/irb.md:35 msgid "#### `message`" msgstr "" #: ../docs/cli/irb.md:37 msgid "Last message received." msgstr "" # title #: ../docs/cli/new.md:1 msgid "CLI: discorb new" msgstr "" #: ../docs/cli/new.md:3 msgid "# discorb new" msgstr "" #: ../docs/cli/new.md:5 msgid "This command will create a new project in the directory." msgstr "" #: ../docs/cli/new.md:9 msgid "```bash\n" "discorb new [options] [dir]\n" "```" msgstr "" #: ../docs/cli/new.md:13 msgid "## Options" msgstr "" #: ../docs/cli/new.md:15 msgid "### `dir`" msgstr "" #: ../docs/cli/new.md:17 msgid "The directory to create the project in.\n" "Defaults to the current directory.\n" "If the directory exists and is not empty, an error is returned.\n" "You can use `--force` to overwrite an existing directory." msgstr "" #: ../docs/cli/new.md:22 msgid "### `--[no-]bundle`" msgstr "" #: ../docs/cli/new.md:24 msgid "Whether to use bundle.\n" "If true, the command will create Gemfile and execute `bundle install`.\n" "Default to true." msgstr "" #: ../docs/cli/new.md:28 msgid "### `--[no-]git`" msgstr "" #: ../docs/cli/new.md:30 msgid "Whether to initialize git.\n" "If true, the command will initialize git and commit the initial files with commit message `Initial commit`.\n" "Use `git commit --amend -m \"...\"` to change the commit message.\n" "Default to false." msgstr "" #: ../docs/cli/new.md:35 msgid "### `--[no-]desc`" msgstr "" #: ../docs/cli/new.md:37 msgid "Whether to create a description file.\n" "If true, the command will create a `.env.sample` and `README.md` file.\n" "Default to false." msgstr "" #: ../docs/cli/new.md:41 msgid "### `-n` `--name`" msgstr "" #: ../docs/cli/new.md:43 msgid "The name of the project.\n" "It will be used in the `README.md` file.\n" "Default to the directory name." msgstr "" #: ../docs/cli/new.md:47 msgid "### `-t`, `--token`" msgstr "" #: ../docs/cli/new.md:49 msgid "The name of token environment variable.\n" "Default to TOKEN." msgstr "" #: ../docs/cli/new.md:52 msgid "### `-f`, `--force`" msgstr "" #: ../docs/cli/new.md:54 msgid "Whether to overwrite an existing directory.\n" "Default to false." msgstr "" #: ../docs/cli/new.md:57 msgid "## File structure" msgstr "" #: ../docs/cli/new.md:59 msgid "The following files will be created:" msgstr "" #: ../docs/cli/new.md:61 msgid "| File | Description |\n" "| ---- | ----------- |\n" "| `.env` | Environment variables. |\n" "| `main.rb` | Main script. |\n" "| `.gitignore` | Git ignore file. Won't be created if `--git` is false. |\n" "| `Gemfile` | Gemfile. Won't be created if `--bundle` is false. |\n" "| `Gemfile.lock` | Gemfile lock file. Won't be created if `--bundle` is false. |\n" "| `README.md` | Readme file. Won't be created if `--desc` is false. |\n" "| `.env.sample` | Sample environment variables. Won't be created if `--desc` is false. |" msgstr "" # title #: ../docs/cli/run.md:1 msgid "CLI: discorb run" msgstr "" #: ../docs/cli/run.md:3 msgid "# discorb run" msgstr "" #: ../docs/cli/run.md:5 msgid "This command will run a client." msgstr "" #: ../docs/cli/run.md:10 msgid "```\n" "discorb run [options] [script]\n" "```" msgstr "" #: ../docs/cli/run.md:16 #: ../docs/cli/setup.md:15 msgid "#### `script`" msgstr "" #: ../docs/cli/run.md:18 msgid "The script to run. Defaults to `main.rb`.\n" "If the script wasn't specified, it will also look for a file named `main.rb` in the parent directories, like rake." msgstr "" #: ../docs/cli/run.md:21 #: ../docs/cli/setup.md:19 msgid "### Options" msgstr "" #: ../docs/cli/run.md:23 msgid "#### `-t`, `--title`" msgstr "" #: ../docs/cli/run.md:25 msgid "The title of the process." msgstr "" #: ../docs/cli/run.md:27 msgid "#### `-l`, `--log-level`" msgstr "" #: ../docs/cli/run.md:29 msgid "Specify the log level.\n" "Should be one of the following:" msgstr "" #: ../docs/cli/run.md:32 msgid "* `none`\n" "* `debug`\n" "* `info`\n" "* `warn`\n" "* `error`\n" "* `fatal`" msgstr "" #: ../docs/cli/run.md:39 msgid "#### `-f`, `--log-file`" msgstr "" #: ../docs/cli/run.md:41 msgid "Specify the file to write logs to.\n" "You can use `stdout` to write to the standard output, and `stderr` to write to the standard error." msgstr "" #: ../docs/cli/run.md:44 msgid "#### `-c`, `--[no-]log-color`" msgstr "" #: ../docs/cli/run.md:46 msgid "Whether to colorize the log output.\n" "If not specified, the default will be:\n" "- `true` if the file to write logs to is `stdout` or `stderr`.\n" "- `false` otherwise." msgstr "" #: ../docs/cli/run.md:51 msgid "#### `-s`, `--setup`" msgstr "" #: ../docs/cli/run.md:53 msgid "Whether to setup application commands." msgstr "" #: ../docs/cli/run.md:55 msgid "#### `-e`, `--env`" msgstr "" #: ../docs/cli/run.md:57 msgid "The name of the environment variable to use for token, or just `-t` or `--token` for intractive prompt." msgstr "" #: ../docs/cli/run.md:59 msgid "#### `-b`, `--bundler`" msgstr "" #: ../docs/cli/run.md:61 msgid "Whether to use bundler to load the script." msgstr "" # title #: ../docs/cli/setup.md:1 msgid "CLI: discorb setup" msgstr "" #: ../docs/cli/setup.md:3 msgid "# discorb setup" msgstr "" #: ../docs/cli/setup.md:5 msgid "This command will setup application commands, and call `setup` event." msgstr "" #: ../docs/cli/setup.md:9 msgid "```\n" "discorb setup [options] [script]\n" "```" msgstr "" #: ../docs/cli/setup.md:17 msgid "The script to setup. Defaults to `main.rb`." msgstr "" #: ../docs/cli/setup.md:21 msgid "#### `-g`, `--guild`" msgstr "" #: ../docs/cli/setup.md:23 msgid "Guild IDs to use as default. Can be specified multiple IDs by using `,` as delimiter." msgstr "" # title #: ../docs/events.md:1 msgid "Events" msgstr "" #: ../docs/events.md:3 msgid "# Events" msgstr "" #: ../docs/events.md:5 msgid "## How to use events" msgstr "" #: ../docs/events.md:7 msgid "discorb uses event driven programming.\n" "You can register event handlers with {Discorb::Client#on}.\n" "Alternatively, you can use {Discorb::Client#once} to register a one-time event handler." msgstr "" #: ../docs/events.md:11 msgid "```ruby\n" "client.on :message do |event|\n" " puts event.message.content\n" "end\n" "```" msgstr "" #: ../docs/events.md:17 msgid "This example will print the content of every message received." msgstr "" #: ../docs/events.md:19 msgid "Since v0.2.5, you can also register event handlers by adding a method to the client, with the prefix `on_` and the event name as the method name." msgstr "" #: ../docs/events.md:21 msgid "```ruby\n" "client = Discorb::Client.new" msgstr "" #: ../docs/events.md:24 msgid "class << client\n" " def on_standby\n" " puts \"Ready!\"\n" " end\n" "end\n" "```" msgstr "" #: ../docs/events.md:31 msgid "If you want to seperate event handlers from the client, consider using {Discorb::Extension}. {file:docs/extension.md Learn more about extensions}." msgstr "" #: ../docs/events.md:33 msgid "Since v0.6.1, you can set `:override` to `true` to register overridable event handlers." msgstr "" #: ../docs/events.md:35 msgid "```ruby\n" "client.on :message, override: true do |event|\n" " puts \"This event handler is overrideable!\"\n" "end" msgstr "" #: ../docs/events.md:40 msgid "client.on :message do |event|\n" " puts \"Override!\"\n" "end\n" "```" msgstr "" #: ../docs/events.md:45 msgid "This example will print `Override!`, but not `This event handler is overrideable!`.\n" "This is useful for registering event handlers as default behaviour, such as error handlers." msgstr "" #: ../docs/events.md:48 msgid "```ruby\n" "# In the library..." msgstr "" #: ../docs/events.md:51 msgid "client.on :command_error, override: true do |event, error|\n" " $stderr.puts \"Command error:\\n#{error.full_message}\"\n" "end" msgstr "" #: ../docs/events.md:55 msgid "# In your code..." msgstr "" #: ../docs/events.md:57 msgid "client.on :command_error do |event, error|\n" " event.message.reply \"An error occurred while executing the command!\\n#{error.full_message}\"\n" "end\n" "```" msgstr "" #: ../docs/events.md:62 msgid "## Event reference" msgstr "" #: ../docs/events.md:64 msgid "### Client events" msgstr "" #: ../docs/events.md:66 msgid "#### `event_receive(event_name, data)`\n" "Fires when a event is received." msgstr "" #: ../docs/events.md:69 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event_name`| Symbol | The name of the event. |\n" "|`data` | Hash | The data of the event. |" msgstr "" #: ../docs/events.md:74 msgid "#### `ready()`" msgstr "" #: ../docs/events.md:76 msgid "Fires when the client receives the `READY` event." msgstr "" #: ../docs/events.md:78 msgid "#### `standby()`" msgstr "" #: ../docs/events.md:80 msgid "Fires when the client is standby. (When the client connects to Discord, and has cached guilds and members.)" msgstr "" #: ../docs/events.md:82 msgid "#### `resumed()`" msgstr "" #: ../docs/events.md:84 msgid "Fires when the client is resumed connection." msgstr "" #: ../docs/events.md:86 msgid "#### `error(event_name, args, error)`" msgstr "" #: ../docs/events.md:88 msgid "Fires when an error occurs during an event.\n" "Defaults to printing the error to stderr, override to handle it yourself." msgstr "" #: ../docs/events.md:91 msgid "#### `setup()`" msgstr "" #: ../docs/events.md:93 msgid "Fires when `discorb setup` is run.\n" "This is useful for setting up some dependencies, such as the database." msgstr "" #: ../docs/events.md:96 msgid "### Guild events" msgstr "" #: ../docs/events.md:98 msgid "#### `guild_join(guild)`" msgstr "" #: ../docs/events.md:100 msgid "Fires when client joins a guild." msgstr "" #: ../docs/events.md:102 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that was joined. |" msgstr "" #: ../docs/events.md:106 msgid "#### `guild_available(guild)`" msgstr "" #: ../docs/events.md:108 msgid "Fires when a guild becomes available." msgstr "" #: ../docs/events.md:110 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that became available. |" msgstr "" #: ../docs/events.md:114 msgid "#### `guild_update(before, after)`" msgstr "" #: ../docs/events.md:116 msgid "Fires when client updates a guild." msgstr "" #: ../docs/events.md:118 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`before` | {Discorb::Guild} | The guild before the update. |\n" "|`after` | {Discorb::Guild} | The guild after the update. |" msgstr "" #: ../docs/events.md:123 msgid "#### `guild_leave(guild)`" msgstr "" #: ../docs/events.md:125 msgid "Fires when client leaves a guild." msgstr "" #: ../docs/events.md:127 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that was left. |" msgstr "" #: ../docs/events.md:131 msgid "#### `guild_destroy(guild)`" msgstr "" #: ../docs/events.md:133 msgid "Fires when guild is destroyed." msgstr "" #: ../docs/events.md:135 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that was destroyed. |" msgstr "" #: ../docs/events.md:139 msgid "#### `guild_integrations_update(guild)`" msgstr "" #: ../docs/events.md:141 msgid "Fires when guild integrations are updated." msgstr "" #: ../docs/events.md:143 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that integrations were updated for. |" msgstr "" #: ../docs/events.md:147 msgid "#### `guild_ban_add(guild, user)`" msgstr "" #: ../docs/events.md:149 msgid "Fires when a user is banned from a guild." msgstr "" #: ../docs/events.md:152 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that the user was banned from. |\n" "|`user` | {Discorb::User} | The user that was banned. |" msgstr "" #: ../docs/events.md:157 msgid "#### `guild_ban_remove(guild, user)`" msgstr "" #: ../docs/events.md:159 msgid "Fires when a user is unbanned from a guild." msgstr "" #: ../docs/events.md:161 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild} | The guild that the user was unbanned from. |\n" "|`user` | {Discorb::User} | The user that was unbanned. |" msgstr "" #: ../docs/events.md:166 msgid "### Channel events" msgstr "" #: ../docs/events.md:168 msgid "#### `channel_create(channel)`" msgstr "" #: ../docs/events.md:170 msgid "Fires when a channel is created." msgstr "" #: ../docs/events.md:172 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`channel` | {Discorb::Channel} | The channel that was created. |" msgstr "" #: ../docs/events.md:176 msgid "#### `channel_update(before, after)`" msgstr "" #: ../docs/events.md:178 msgid "Fires when a channel is updated." msgstr "" #: ../docs/events.md:180 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`before` | {Discorb::Channel} | The channel before the update. |\n" "|`after` | {Discorb::Channel} | The channel after the update. |" msgstr "" #: ../docs/events.md:185 msgid "#### `channel_delete(channel)`" msgstr "" #: ../docs/events.md:187 msgid "Fires when a channel is deleted." msgstr "" #: ../docs/events.md:189 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`channel` | {Discorb::Channel} | The channel that was deleted. |" msgstr "" #: ../docs/events.md:193 msgid "#### `webhooks_update(event)`" msgstr "" #: ../docs/events.md:195 msgid "Fires when a webhook is updated." msgstr "" #: ../docs/events.md:197 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::WebhooksUpdateEvent} | The webhook update event. |" msgstr "" #: ../docs/events.md:201 msgid "#### `thread_new(thread)`" msgstr "" #: ../docs/events.md:203 msgid "Fires when a thread is created." msgstr "" #: ../docs/events.md:205 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`thread` | {Discorb::ThreadChannel} | The thread that was created. |" msgstr "" #: ../docs/events.md:209 msgid "#### `thread_join(thread)`" msgstr "" #: ../docs/events.md:211 msgid "Fires when client joins a thread." msgstr "" #: ../docs/events.md:213 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`thread` | {Discorb::ThreadChannel} | The thread that was joined. |" msgstr "" #: ../docs/events.md:218 msgid "#### `thread_delete(thread)`" msgstr "" #: ../docs/events.md:220 msgid "Fires when a thread is deleted." msgstr "" #: ../docs/events.md:222 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`thread` | {Discorb::ThreadChannel} | The thread that was deleted. |" msgstr "" #: ../docs/events.md:226 msgid "#### `thread_update(before, after)`" msgstr "" #: ../docs/events.md:228 msgid "Fires when a thread is updated." msgstr "" #: ../docs/events.md:230 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`before` | {Discorb::ThreadChannel} | The thread before the update. |\n" "|`after` | {Discorb::ThreadChannel} | The thread after the update. |" msgstr "" #: ../docs/events.md:235 msgid "#### `thread_members_update(thread, added, removed)`" msgstr "" #: ../docs/events.md:237 msgid "Fires when a thread's members are updated." msgstr "" #: ../docs/events.md:239 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`thread` | {Discorb::ThreadChannel} | The thread that the members were updated for. |\n" "|`added` | Array<{Discorb::ThreadChannel::Member}> | An array of {Discorb::ThreadChannel::Member} objects that were added to the thread. |\n" "|`removed` | Array<{Discorb::ThreadChannel::Member}> | An array of {Discorb::ThreadChannel::Member} objects that were removed from the thread. |" msgstr "" #: ../docs/events.md:245 msgid "#### `thread_member_update(before, after)`" msgstr "" #: ../docs/events.md:247 msgid "Fires when a thread member is updated." msgstr "" #: ../docs/events.md:249 msgid "| Parameter | Type | Description |\n" "| --------- | ----- | ----------- |\n" "|`thread` | {Discorb::ThreadChannel} | The thread that the member was updated for. |\n" "|`before` | {Discorb::ThreadChannel::Member} | The thread member before the update. |\n" "|`after` | {Discorb::ThreadChannel::Member} | The thread member after the update. |" msgstr "" #: ../docs/events.md:255 msgid "### Integration events" msgstr "" #: ../docs/events.md:257 msgid "#### `integration_create(integration)`" msgstr "" #: ../docs/events.md:259 msgid "Fires when a guild integration is created." msgstr "" #: ../docs/events.md:261 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`integration`| {Discorb::Integration}| The created integration. |" msgstr "" #: ../docs/events.md:265 msgid "#### `integration_update(after)`" msgstr "" #: ../docs/events.md:267 msgid "Fires when a guild integration is updated." msgstr "" #: ../docs/events.md:270 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`after` | {Discorb::Integration}| The integration after the update. |" msgstr "" #: ../docs/events.md:274 msgid "#### `integration_delete(integration)`" msgstr "" #: ../docs/events.md:276 msgid "Fires when a guild integration is deleted." msgstr "" #: ../docs/events.md:278 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`integration`| {Discorb::Integration}| The deleted integration. |" msgstr "" #: ../docs/events.md:282 msgid "### Message events" msgstr "" #: ../docs/events.md:284 msgid "#### `message(message)`" msgstr "" #: ../docs/events.md:286 msgid "Fires when a message is created." msgstr "" #: ../docs/events.md:288 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`message` | {Discorb::Message}| The created message. |" msgstr "" #: ../docs/events.md:292 msgid "#### `message_update(event)`" msgstr "" #: ../docs/events.md:294 msgid "Fires when a message is updated." msgstr "" #: ../docs/events.md:296 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::MessageUpdateEvent}| The message after the update. |" msgstr "" #: ../docs/events.md:300 msgid "#### `message_delete(message, channel, guild)`" msgstr "" #: ../docs/events.md:302 msgid "Fires when a message is deleted." msgstr "" #: ../docs/events.md:304 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`message` | {Discorb::Message}| The deleted message. |\n" "|`channel` | {Discorb::Channel}| The channel the message was deleted from. |\n" "|`guild` | ?{Discorb::Guild} | The guild the message was deleted from. |" msgstr "" #: ../docs/events.md:310 msgid "##### Note" msgstr "" #: ../docs/events.md:312 msgid "This will fire when cached messages are deleted." msgstr "" #: ../docs/events.md:314 msgid "#### `message_delete_id(message_id, channel, guild)`" msgstr "" #: ../docs/events.md:316 msgid "Fires when a message is deleted.\n" "Not like {file:#message_delete} this will fire even message is not cached." msgstr "" #: ../docs/events.md:319 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`message_id`| {Discorb::Snowflake} | The deleted message ID. |\n" "|`channel` | {Discorb::Channel}| The channel the message was deleted from. |\n" "|`guild` | ?{Discorb::Guild} | The guild the message was deleted from. |" msgstr "" #: ../docs/events.md:325 msgid "#### `message_delete_bulk(messages)`" msgstr "" #: ../docs/events.md:327 msgid "Fires when a bulk of messages are deleted." msgstr "" #: ../docs/events.md:329 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`messages` | Array<{Discorb::Message}, {Discorb::Gateway::UnknownDeleteBulkMessage}> | The deleted messages. |" msgstr "" #: ../docs/events.md:333 msgid "#### `message_pin_update(event)`" msgstr "" #: ../docs/events.md:335 msgid "Fires when a message is pinned or unpinned." msgstr "" #: ../docs/events.md:337 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::MessagePinEvent}| The event object. |" msgstr "" #: ../docs/events.md:341 msgid "#### `typing_start(event)`" msgstr "" #: ../docs/events.md:343 msgid "Fires when a user starts typing." msgstr "" #: ../docs/events.md:345 msgid "| Parameter | Type | Description |\n" "| --------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::TypingStartEvent}| The event object. |" msgstr "" #: ../docs/events.md:349 msgid "### Reaction events" msgstr "" #: ../docs/events.md:351 msgid "#### `reaction_add(event)`" msgstr "" #: ../docs/events.md:353 msgid "Fires when a reaction is added to a message." msgstr "" #: ../docs/events.md:355 #: ../docs/events.md:363 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::ReactionEvent}| The event object. |" msgstr "" #: ../docs/events.md:359 msgid "#### `reaction_remove(event)`" msgstr "" #: ../docs/events.md:361 msgid "Fires when someone removes a reaction from a message." msgstr "" #: ../docs/events.md:367 msgid "#### `reaction_remove_all(event)`" msgstr "" #: ../docs/events.md:369 msgid "Fires when all reactions are removed from a message." msgstr "" #: ../docs/events.md:371 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::ReactionRemoveAllEvent}| The event object. |" msgstr "" #: ../docs/events.md:375 msgid "#### `reaction_remove_emoji(event)`" msgstr "" #: ../docs/events.md:377 msgid "Fires when a reaction is removed from a message." msgstr "" #: ../docs/events.md:379 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`event` | {Discorb::Gateway::ReactionRemoveEmojiEvent}| The event object. |" msgstr "" #: ../docs/events.md:383 #: ../docs/events.md:441 msgid "### Role events" msgstr "" #: ../docs/events.md:385 #: ../docs/events.md:443 msgid "#### `role_create(role)`" msgstr "" #: ../docs/events.md:387 #: ../docs/events.md:445 msgid "Fires when a role is created." msgstr "" #: ../docs/events.md:389 #: ../docs/events.md:447 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`role` | {Discorb::Role}| The created role. |" msgstr "" #: ../docs/events.md:393 #: ../docs/events.md:451 msgid "#### `role_update(before, after)`" msgstr "" #: ../docs/events.md:395 #: ../docs/events.md:453 msgid "Fires when a role is updated." msgstr "" #: ../docs/events.md:397 #: ../docs/events.md:455 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`before` | {Discorb::Role}| The role before the update. |\n" "|`after` | {Discorb::Role}| The role after the update. |" msgstr "" #: ../docs/events.md:402 #: ../docs/events.md:460 msgid "#### `role_remove(role)`" msgstr "" #: ../docs/events.md:404 #: ../docs/events.md:462 msgid "Fires when a role is deleted." msgstr "" #: ../docs/events.md:406 #: ../docs/events.md:464 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`role` | {Discorb::Role}| The deleted role. |" msgstr "" #: ../docs/events.md:410 msgid "### Member events" msgstr "" #: ../docs/events.md:414 msgid "These events requires the `guild_members` intent." msgstr "" #: ../docs/events.md:416 msgid "#### `member_add(member)`" msgstr "" #: ../docs/events.md:418 msgid "Fires when a member joins a guild." msgstr "" #: ../docs/events.md:420 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`member` | {Discorb::Member}| The member that joined. |" msgstr "" #: ../docs/events.md:424 msgid "#### `member_update(before, after)`" msgstr "" #: ../docs/events.md:426 msgid "Fires when a member is updated." msgstr "" #: ../docs/events.md:428 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`before` | {Discorb::Member}| The member before the update. |\n" "|`after` | {Discorb::Member}| The member after the update. |" msgstr "" #: ../docs/events.md:433 msgid "#### `member_remove(member)`" msgstr "" #: ../docs/events.md:435 msgid "Fires when a member is removed from a guild." msgstr "" #: ../docs/events.md:437 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`member` | {Discorb::Member}| The member that left. |" msgstr "" #: ../docs/events.md:468 msgid "### Invite events" msgstr "" #: ../docs/events.md:470 msgid "#### `invite_create(invite)`" msgstr "" #: ../docs/events.md:472 msgid "Fires when a invite is created." msgstr "" #: ../docs/events.md:474 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`invite` | {Discorb::Invite}| The created invite. |" msgstr "" #: ../docs/events.md:478 msgid "#### `invite_delete(invite)`" msgstr "" #: ../docs/events.md:480 msgid "Fires when a invite is deleted." msgstr "" #: ../docs/events.md:482 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`invite` | {Discorb::Invite}| The deleted invite. |" msgstr "" #: ../docs/events.md:486 msgid "### Interaction events" msgstr "" #: ../docs/events.md:488 msgid "#### `button_click(interaction)`" msgstr "" #: ../docs/events.md:490 msgid "Fires when a button is clicked." msgstr "" #: ../docs/events.md:492 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`interaction`| {Discorb::MessageComponentInteraction::Button}| The interaction object. |" msgstr "" #: ../docs/events.md:496 msgid "#### `select_menu_select(interaction)`" msgstr "" #: ../docs/events.md:498 msgid "Fires when a select menu is selected." msgstr "" #: ../docs/events.md:500 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`interaction`| {Discorb::MessageComponentInteraction::SelectMenu}| The interaction object. |" msgstr "" #: ../docs/events.md:504 msgid "### Voice events" msgstr "" #: ../docs/events.md:506 msgid "Because it's big, it's documented in {file:docs/voice_events.md}." msgstr "" #: ../docs/events.md:508 msgid "### Guild scheduled event events" msgstr "" #: ../docs/events.md:510 msgid "#### `scheduled_event_create(event)`" msgstr "" #: ../docs/events.md:512 msgid "Fires when a scheduled event is created." msgstr "" #: ../docs/events.md:514 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "| `event` | {Discorb::ScheduledEvent}| The created scheduled event. |" msgstr "" #: ../docs/events.md:518 msgid "#### `scheduled_event_cancel(event)`, `scheduled_event_delete(event)`" msgstr "" #: ../docs/events.md:520 msgid "Fires when a scheduled event is canceled or deleted." msgstr "" #: ../docs/events.md:522 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "| `event` | {Discorb::ScheduledEvent}| The deleted scheduled event. |" msgstr "" #: ../docs/events.md:526 msgid "#### `scheduled_event_edit(before, after)`" msgstr "" #: ../docs/events.md:528 msgid "Fires when a scheduled event is edited." msgstr "" #: ../docs/events.md:530 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "| `before` | {Discorb::ScheduledEvent}| The scheduled event before the edit. |\n" "| `after` | {Discorb::ScheduledEvent}| The scheduled event after the edit. |" msgstr "" #: ../docs/events.md:535 msgid "#### `scheduled_event_start(event)`" msgstr "" #: ../docs/events.md:537 msgid "Fires when a scheduled event is started." msgstr "" #: ../docs/events.md:539 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "| `event` | {Discorb::ScheduledEvent}| The scheduled event that started. |" msgstr "" #: ../docs/events.md:543 msgid "#### `scheduled_event_end(event)`" msgstr "" #: ../docs/events.md:545 msgid "Fires when a scheduled event is ended." msgstr "" #: ../docs/events.md:547 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "| `event` | {Discorb::ScheduledEvent}| The scheduled event that ended. |" msgstr "" #: ../docs/events.md:551 msgid "### Low-level events" msgstr "" #: ../docs/events.md:553 msgid "#### `guild_create(guild)`" msgstr "" #: ../docs/events.md:555 msgid "Fires when `GUILD_CREATE` is received." msgstr "" #: ../docs/events.md:557 #: ../docs/events.md:565 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`guild` | {Discorb::Guild}| The guild of the event. |" msgstr "" #: ../docs/events.md:561 msgid "#### `guild_delete(guild)`" msgstr "" #: ../docs/events.md:563 msgid "Fires when `GUILD_DELETE` is received." msgstr "" #: ../docs/events.md:569 msgid "#### `thread_create(thread)`" msgstr "" #: ../docs/events.md:571 msgid "Fires when `THREAD_CREATE` is received." msgstr "" #: ../docs/events.md:573 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "|`thread` | {Discorb::ThreadChannel}| The thread of the event. |" msgstr "" #: ../docs/events.md:577 msgid "#### `scheduled_event_update(before, after)`" msgstr "" #: ../docs/events.md:579 msgid "Fires when `SCHEDULED_EVENT_UPDATE` is received." msgstr "" #: ../docs/events.md:581 msgid "| Parameter | Type | Description |\n" "| ---------- | ----- | ----------- |\n" "| `before` | {Discorb::ScheduledEvent}| The scheduled event before the update. |\n" "|`after` | {Discorb::ScheduledEvent}| The scheduled event after the update. |" msgstr "" # title #: ../docs/extension.md:1 msgid "Extension" msgstr "" #: ../docs/extension.md:3 msgid "# Extension" msgstr "" #: ../docs/extension.md:5 msgid "Extension allows you to seperate events." msgstr "" #: ../docs/extension.md:7 msgid "# @since" msgstr "" #: ../docs/extension.md:9 msgid "## Make a new extension" msgstr "" #: ../docs/extension.md:11 msgid "Make a new class that includes Extension." msgstr "" #: ../docs/extension.md:13 #: ../docs/extension.md:25 #: ../docs/extension.md:45 #: ../docs/extension.md:72 #: ../docs/extension.md:88 #: ../docs/extension.md:102 #: ../docs/extension.md:122 msgid "```ruby\n" "class MyExtension\n" " include Discorb::Extension" msgstr "" #: ../docs/extension.md:17 #: ../docs/tutorial.md:178 msgid " # ...\n" "end\n" "```" msgstr "" #: ../docs/extension.md:21 msgid "## Register Event" msgstr "" #: ../docs/extension.md:23 msgid "Use {Discorb::Extension.event} to register event, or {Discorb::Extension.once_event} to register event only once." msgstr "" #: ../docs/extension.md:29 msgid " event :message do |message|\n" " # ...\n" " end" msgstr "" #: ../docs/extension.md:33 msgid " once_event :standby do |message|\n" " # ...\n" " end\n" "end\n" "```" msgstr "" #: ../docs/extension.md:39 msgid "Note block will be binded to the extension instance." msgstr "" #: ../docs/extension.md:41 msgid "## Register Command" msgstr "" #: ../docs/extension.md:43 msgid "Use `Discorb::Extension.command` to register command, see {Discorb::ApplicationCommand::Handler} for more information." msgstr "" #: ../docs/extension.md:49 msgid " slash(\"command\", \"Command\") do |interaction|\n" " # ...\n" " end" msgstr "" #: ../docs/extension.md:53 msgid " slash_group(\"group\", \"Group\") do |group|\n" " group.slash(\"subcommand\", \"Subcommand\") do |interaction|\n" " # ...\n" " end" msgstr "" #: ../docs/extension.md:58 msgid " group.group(\"subgroup\", \"Subcommand group\") do |group|\n" " group.slash(\"group_subcommand\", \"Command in Subcommand group\") do |interaction|\n" " # ...\n" " end\n" " end\n" " end\n" "end\n" "```" msgstr "" #: ../docs/extension.md:68 msgid "## Load extension" msgstr "" #: ../docs/extension.md:70 msgid "Use {Discorb::Client#load_extension} to load extension." msgstr "" #: ../docs/extension.md:76 msgid " event :message do |message|\n" " # ...\n" " end\n" "end" msgstr "" #: ../docs/extension.md:81 msgid "client.load_extension(MyExtension)\n" "```" msgstr "" #: ../docs/extension.md:84 msgid "## Access Client from extension" msgstr "" #: ../docs/extension.md:86 msgid "You can access {Discorb::Client} from extension with `@client`." msgstr "" #: ../docs/extension.md:92 msgid " event :standby do |message|\n" " puts \"Logged in as #{@client.user}\"\n" " end\n" "end\n" "```" msgstr "" #: ../docs/extension.md:98 msgid "## Receiving Arguments on load" msgstr "" #: ../docs/extension.md:100 msgid "You can receive arguments by adding some arguments to `#initialize`." msgstr "" #: ../docs/extension.md:106 msgid " def initialize(client, arg1, arg2)\n" " super(client)\n" " # @client = client will also work, but it's not recommended.\n" " @arg1 = arg1\n" " @arg2 = arg2\n" " end\n" "end" msgstr "" #: ../docs/extension.md:114 msgid "client.load_extension(MyExtension, \"arg1\", \"arg2\")" msgstr "" #: ../docs/extension.md:118 msgid "## Do something on load" msgstr "" #: ../docs/extension.md:120 msgid "You can do something on load by overriding `.loaded`. Client and arguments will be passed to it." msgstr "" #: ../docs/extension.md:126 msgid " def self.loaded(client)\n" " puts \"This extension is loaded to #{client}\"\n" " end\n" "end\n" "```" msgstr "" # title #: ../docs/faq.md:1 msgid "FAQ" msgstr "" #: ../docs/faq.md:3 msgid "# Fequently asked questions" msgstr "" #: ../docs/faq.md:5 msgid "## What is ...?" msgstr "" #: ../docs/faq.md:7 msgid "### What is `Async::Task`?" msgstr "" #: ../docs/faq.md:9 msgid "Async::Task is a object for asynchronous tasks." msgstr "" #: ../docs/faq.md:11 msgid "https://socketry.github.io/async/ for more information." msgstr "" #: ../docs/faq.md:13 msgid "### What is `Guild`?" msgstr "" #: ../docs/faq.md:15 msgid "It means a `server` of Discord." msgstr "" #: ../docs/faq.md:17 msgid "### What is difference between `User` and `Member`?" msgstr "" #: ../docs/faq.md:19 msgid "`User` is a object for account, `Member` is a object for user in guild." msgstr "" #: ../docs/faq.md:21 msgid "## How can I ...?" msgstr "" #: ../docs/faq.md:23 msgid "### How can I do something with sent messages?" msgstr "" #: ../docs/faq.md:25 msgid "Use `Async::Task#wait` method." msgstr "" #: ../docs/faq.md:27 msgid "```ruby\n" "# NG\n" "message = channel.post(\"Hello world!\") # => Async::Task\n" "message.pin # => NoMethodError" msgstr "" #: ../docs/faq.md:32 msgid "# OK\n" "message = channel.post(\"Hello world!\").wait # => Message\n" "message.pin\n" "```" msgstr "" #: ../docs/faq.md:38 msgid "### How can I send DM to a user?" msgstr "" #: ../docs/faq.md:40 msgid "Use {Discorb::User#post} method, {Discorb::User} includes {Discorb::Messageable}." msgstr "" #: ../docs/faq.md:42 msgid "### How can I edit status?" msgstr "" #: ../docs/faq.md:44 msgid "Use {Discorb::Client#update_presence} method." msgstr "" #: ../docs/faq.md:46 msgid "```ruby\n" "%i[standby guild_join guild_leave].each do |event|\n" " client.on event do\n" " client.update_presence(\n" " Discorb::Activity.new(\n" " \"#{client.guilds.length} Servers\"\n" " ),\n" " status: :online\n" " )\n" " end\n" "end" msgstr "" #: ../docs/faq.md:58 msgid "client.on :ready do\n" " client.update_presence(status: :dnd)\n" "end\n" "```" msgstr "" #: ../docs/faq.md:63 msgid "### How can I send files?" msgstr "" #: ../docs/faq.md:65 msgid "Use {Discorb::Attachment} class." msgstr "" #: ../docs/faq.md:67 msgid "```ruby\n" "# Send a file\n" "message.channel.post file: Discorb::Attachment.new(File.open(\"./README.md\"))" msgstr "" #: ../docs/faq.md:71 msgid "# Send some files with text\n" "message.channel.post \"File!\", files: [Discorb::Attachment.new(File.open(\"./README.md\")), Discorb::Attachment.new(File.open(\"./License.txt\"))]" msgstr "" #: ../docs/faq.md:74 msgid "# Send a string as a file\n" "message.channel.post file: Discorb::Attachment.from_string(\"Hello world!\", \"hello.txt\")\n" "```" msgstr "" #: ../docs/faq.md:78 msgid "### How can I add reactions?" msgstr "" #: ../docs/faq.md:80 msgid "Use {Discorb::Message#add_reaction} method." msgstr "" #: ../docs/faq.md:82 msgid "```ruby\n" "message.add_reaction Discorb::UnicodeEmoji[\"🤔\"]\n" "message.add_reaction Discorb::UnicodeEmoji[\"thinking\"]\n" "```" msgstr "" #: ../docs/faq.md:87 msgid "# Not fequently asked questions" msgstr "" #: ../docs/faq.md:89 msgid "## How can I pronounce `discorb`?" msgstr "" #: ../docs/faq.md:91 msgid "Discorb is pronounced `disco-R-B`." msgstr "" #: ../docs/faq.md:93 msgid "## Why did you make `discorb`?" msgstr "" #: ../docs/faq.md:95 msgid "There are many reasons -- One is I didn't like `discordrb`'s `bot.message` -- but the main reason is, \"Just for Fun\"." msgstr "" #: ../docs/faq.md:97 msgid "## How was `discorb` named?" msgstr "" #: ../docs/faq.md:99 msgid "`discord` and `.rb`." msgstr "" # title #: ../docs/license.md:1 msgid "License" msgstr "" #: ../docs/license.md:3 msgid "# License" msgstr "" #: ../docs/license.md:5 msgid "discorb is licensed under the [MIT license](https://opensource.org/licenses/MIT)." msgstr "" #: ../docs/license.md:9 msgid "{include:file:LICENSE.txt}" msgstr "" # title #: ../docs/tutorial.md:1 msgid "Tutorial" msgstr "" #: ../docs/tutorial.md:3 msgid "# Tutorial" msgstr "" #: ../docs/tutorial.md:5 msgid "Welcome to discorb! This lib allows you to create a discord bot with Ruby.\n" "Let's get started!" msgstr "" #: ../docs/tutorial.md:8 msgid "## Requirements" msgstr "" #: ../docs/tutorial.md:10 msgid "- Ruby 3.0.0+\n" "- Basic knowledge of ruby \n" " These documents will help you:\n" " - [Ruby in Twenty Minutes](https://www.ruby-lang.org/en/documentation/quickstart/)\n" " - [Ruby from other languages](https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/)\n" " - [Try ruby!](https://try.ruby-lang.org/)" msgstr "" #: ../docs/tutorial.md:17 msgid "### Recommended" msgstr "" #: ../docs/tutorial.md:19 msgid "- Good editor \n" " They are recommended:\n" " - [VSCode](https://code.visualstudio.com/)\n" " - [Atom](https://atom.io/)\n" " - [Sublime Text](https://www.sublimetext.com/)\n" " - [Brackets](https://brackets.io/)\n" " - [Notepad++](https://notepad-plus-plus.org/)\n" " - [Vim](https://www.vim.org/)\n" "- Git\n" "- Bundler" msgstr "" #: ../docs/tutorial.md:30 msgid "Once you have all of these, you can start coding!" msgstr "" #: ../docs/tutorial.md:32 msgid "## Start creating your bot" msgstr "" #: ../docs/tutorial.md:34 msgid "### Create a Bot account" msgstr "" #: ../docs/tutorial.md:36 msgid "You must have a bot account to use this lib. First, go to [Discord Developer Portal](https://discord.com/developers/applications) and click on `New Application`. \n" "" msgstr "" #: ../docs/tutorial.md:39 msgid "And then type a name for your bot, and click `Create`. \n" "" msgstr "" #: ../docs/tutorial.md:42 msgid "You will be redirected to the `General Information` page.\n" "Then, click `Bot` and then `Add Bot` and then `Yes, do it!`. \n" "" msgstr "" #: ../docs/tutorial.md:46 msgid "You will see bot information, and click `Copy` button in TOKEN section. \n" "" msgstr "" #: ../docs/tutorial.md:49 msgid "**DO NOT SHARE THIS TOKEN, OR YOUR BOT BAN EVERYONE IN EVERY SERVER!**\n" "This is serious security risk." msgstr "" #: ../docs/tutorial.md:52 msgid "Click `Regenerate` button to regenerate your token. Do this immediately when you accidentally share your token." msgstr "" #: ../docs/tutorial.md:54 msgid "You did it! Now, you have a bot account." msgstr "" #: ../docs/tutorial.md:56 msgid "#### Invite your bot to a server" msgstr "" #: ../docs/tutorial.md:58 msgid "Go to `OAuth2` page and scroll down, and check `bot` and `applications.commands` permissions. \n" "\n" "Then, click `Copy` button and paste it to your browser.\n" "Choose a server you want to invite your bot to, and follow the instructions." msgstr "" #: ../docs/tutorial.md:63 msgid "### Code your bot" msgstr "" #: ../docs/tutorial.md:65 msgid "#### Install gems" msgstr "" #: ../docs/tutorial.md:67 #: ../docs/tutorial.md:122 msgid "Open terminal and type:" msgstr "" #: ../docs/tutorial.md:69 msgid "```\n" "gem install bundler discorb\n" "```" msgstr "" #: ../docs/tutorial.md:73 msgid "#### Setup files" msgstr "" #: ../docs/tutorial.md:75 msgid "Create a new directory and go to it.\n" "Open terminal and type:" msgstr "" #: ../docs/tutorial.md:78 msgid "```\n" "discorb new\n" "```" msgstr "" #: ../docs/tutorial.md:82 msgid "Specify `--git` if you want to use git." msgstr "" #: ../docs/tutorial.md:84 msgid "You will get some files in your directory." msgstr "" #: ../docs/tutorial.md:86 msgid "- `main.rb`: The main file of your bot.\n" "- `.env`: The environment variables of your bot. **You must keep this file secret!**\n" "- `Gemfile`: Gemfile for bundler.\n" "- `Gemfile.lock`: Gemfile.lock for bundler." msgstr "" #: ../docs/tutorial.md:91 msgid "You will get other files if you specify `--git`.\n" "{file:docs/cli/init.md Learn more here}." msgstr "" #: ../docs/tutorial.md:94 msgid "#### Start your bot" msgstr "" #: ../docs/tutorial.md:96 msgid "Open `main.rb`, you will see the following code:" msgstr "" #: ../docs/tutorial.md:98 msgid "```ruby\n" "require \"discorb\"\n" "require \"dotenv\"" msgstr "" #: ../docs/tutorial.md:102 msgid "Dotenv.load # Loads .env file" msgstr "" #: ../docs/tutorial.md:104 msgid "client = Discorb::Client.new # Create client for connecting to Discord" msgstr "" #: ../docs/tutorial.md:106 msgid "client.once :standby do\n" " puts \"Logged in as #{client.user}\" # Prints username of logged in user\n" "end" msgstr "" #: ../docs/tutorial.md:110 msgid "client.run ENV[\"TOKEN\"] # Starts client\n" "```" msgstr "" #: ../docs/tutorial.md:113 msgid "Open `.env`, you will see:" msgstr "" #: ../docs/tutorial.md:115 msgid "```\n" "TOKEN=Y0urB0tT0k3nHer3.Th1sT0ken.W0ntWorkB3c4useItH4sM34n1ng\n" "```" msgstr "" #: ../docs/tutorial.md:119 msgid "Replace `Y0urB0tT0k3nHer3.Th1sT0ken.W0ntWorkB3c4useItH4sM34n1ng` with your bot token.\n" "Remember to keep this file secret!" msgstr "" #: ../docs/tutorial.md:124 msgid "```sh\n" "bundle exec ruby main.rb\n" "# or\n" "bundle exec discorb run main.rb\n" "```" msgstr "" #: ../docs/tutorial.md:130 msgid "Yay! Your bot is online! \n" "" msgstr "" #: ../docs/tutorial.md:133 msgid "But your bot won't do anything.\n" "So add your bot some greetings!\n" "`Ctrl + C` to stop your bot." msgstr "" #: ../docs/tutorial.md:137 msgid "#### Add a greeting" msgstr "" #: ../docs/tutorial.md:139 msgid "You can do some action on message by typing like this:" msgstr "" #: ../docs/tutorial.md:141 msgid "```ruby\n" "client.on :message do |message|\n" " # ...\n" "end\n" "```" msgstr "" #: ../docs/tutorial.md:147 msgid "`message` is a {Discorb::Message} object. It contains information about the message.\n" "You can get the message content by {Discorb::Message#content}.\n" "Add `if` statement, and reply to the message with {Discorb::Message#reply}." msgstr "" #: ../docs/tutorial.md:151 msgid "```ruby\n" "client.on :message do |message|\n" " if message.content.downcase.include? \"hello\"\n" " message.reply \"Hello!\"\n" " end\n" "end\n" "```" msgstr "" #: ../docs/tutorial.md:159 msgid "Save your bot and restart it." msgstr "" #: ../docs/tutorial.md:161 msgid "You can see your bot's response by typing `hello` in your server..." msgstr "" #: ../docs/tutorial.md:163 msgid "" msgstr "" #: ../docs/tutorial.md:165 msgid "Oh no! Your bot is responding to bot's messages, and it doesn't stop!" msgstr "" #: ../docs/tutorial.md:167 msgid "Terminate your bot by typing `Ctrl + C` in terminal." msgstr "" #: ../docs/tutorial.md:169 msgid "#### Ignore bot's messages" msgstr "" #: ../docs/tutorial.md:171 msgid "You can access author information by {Discorb::Message#author}, and it has {Discorb::User#bot?}.\n" "So, you can ignore bot's messages by adding `if` statement:" msgstr "" #: ../docs/tutorial.md:174 msgid "```ruby\n" "client.on :message do |message|\n" " next if message.author.bot?" msgstr "" #: ../docs/tutorial.md:182 msgid "Note you must use `next` to exit the block." msgstr "" #: ../docs/tutorial.md:184 msgid "Save your bot and start it." msgstr "" #: ../docs/tutorial.md:186 msgid "" msgstr "" #: ../docs/tutorial.md:188 msgid "You did it! Your bot won't respond to bot's messages anymore." msgstr "" #: ../docs/tutorial.md:190 msgid "## Finally" msgstr "" #: ../docs/tutorial.md:192 msgid "This is the end of tutorial." msgstr "" #: ../docs/tutorial.md:194 msgid "To learn more, check out the [documentation](https://discorb-lib.github.io/)." msgstr "" #: ../docs/tutorial.md:196 msgid "We hope you enjoy this lib! Thanks for reading!" msgstr "" # title #: ../docs/voice_events.md:1 msgid "Voice Events" msgstr "" #: ../docs/voice_events.md:3 msgid "# Voice Events" msgstr "" #: ../docs/voice_events.md:5 msgid "### Voice Channel Events" msgstr "" #: ../docs/voice_events.md:7 msgid "#### `voice_channel_connect(state)`" msgstr "" #: ../docs/voice_events.md:9 msgid "Fires when someone joins a voice channel." msgstr "" #: ../docs/voice_events.md:11 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| state | {Discorb::VoiceState} | The voice state of the user that joined. |" msgstr "" #: ../docs/voice_events.md:15 msgid "#### `voice_channel_disconnect(state)`" msgstr "" #: ../docs/voice_events.md:17 msgid "Fires when someone leaves a voice channel." msgstr "" #: ../docs/voice_events.md:19 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| state | {Discorb::VoiceState} | The voice state of the user that left. |" msgstr "" #: ../docs/voice_events.md:23 msgid "#### `voice_channel_move(before, after)`" msgstr "" #: ../docs/voice_events.md:25 msgid "Fires when someone moves to a different voice channel." msgstr "" #: ../docs/voice_events.md:27 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| before | {Discorb::VoiceState} | The voice state of the user before the move. |\n" "| after | {Discorb::VoiceState} | The voice state of the user after the move. |" msgstr "" #: ../docs/voice_events.md:32 msgid "#### `voice_channel_update(before, after)`" msgstr "" #: ../docs/voice_events.md:34 msgid "Fires when a voice channel is connected, disconnected, or updated." msgstr "" #: ../docs/voice_events.md:36 #: ../docs/voice_events.md:280 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| before | {Discorb::VoiceState} | The voice state before the update. |\n" "| after | {Discorb::VoiceState} | The voice state after the update. |" msgstr "" #: ../docs/voice_events.md:41 msgid "### Mute Events" msgstr "" #: ../docs/voice_events.md:43 msgid "#### `voice_mute_disable(state)`" msgstr "" #: ../docs/voice_events.md:45 msgid "Fires when a user's voice mute is disabled." msgstr "" #: ../docs/voice_events.md:47 #: ../docs/voice_events.md:55 #: ../docs/voice_events.md:72 #: ../docs/voice_events.md:80 #: ../docs/voice_events.md:97 #: ../docs/voice_events.md:105 #: ../docs/voice_events.md:124 #: ../docs/voice_events.md:132 #: ../docs/voice_events.md:149 #: ../docs/voice_events.md:157 #: ../docs/voice_events.md:174 #: ../docs/voice_events.md:182 #: ../docs/voice_events.md:199 #: ../docs/voice_events.md:207 #: ../docs/voice_events.md:226 #: ../docs/voice_events.md:234 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| `state` | {Discorb::VoiceState} | The voice state. |" msgstr "" #: ../docs/voice_events.md:51 msgid "#### `voice_mute_enable(state)`" msgstr "" #: ../docs/voice_events.md:53 msgid "Fires when a user's voice mute is enabled." msgstr "" #: ../docs/voice_events.md:59 msgid "#### `voice_mute_update(before, after)`" msgstr "" #: ../docs/voice_events.md:61 msgid "Fires when a user's voice mute is enabled or disabled." msgstr "" #: ../docs/voice_events.md:63 #: ../docs/voice_events.md:88 #: ../docs/voice_events.md:113 #: ../docs/voice_events.md:140 #: ../docs/voice_events.md:165 #: ../docs/voice_events.md:188 #: ../docs/voice_events.md:215 #: ../docs/voice_events.md:242 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| `before` | {Discorb::VoiceState} | The voice state before the update. |\n" "| `after` | {Discorb::VoiceState} | The voice state after the update. |" msgstr "" #: ../docs/voice_events.md:68 msgid "#### `voice_server_mute_enable(state)`" msgstr "" #: ../docs/voice_events.md:70 msgid "Fires when a user's server voice mute is enabled." msgstr "" #: ../docs/voice_events.md:76 msgid "#### `voice_server_mute_disable(state)`" msgstr "" #: ../docs/voice_events.md:78 msgid "Fires when a user's server voice mute is disabled." msgstr "" #: ../docs/voice_events.md:84 msgid "#### `voice_server_mute_update(before, after)`" msgstr "" #: ../docs/voice_events.md:86 msgid "Fires when a user's server voice mute is enabled or disabled." msgstr "" #: ../docs/voice_events.md:93 msgid "#### `voice_self_mute_enable(state)`" msgstr "" #: ../docs/voice_events.md:95 msgid "Fires when a user's self voice mute is enabled." msgstr "" #: ../docs/voice_events.md:101 msgid "#### `voice_self_mute_disable(state)`" msgstr "" #: ../docs/voice_events.md:103 msgid "Fires when a user's self voice mute is disabled." msgstr "" #: ../docs/voice_events.md:109 msgid "#### `voice_self_mute_update(before, after)`" msgstr "" #: ../docs/voice_events.md:111 msgid "Fires when a user's self voice mute is enabled or disabled." msgstr "" #: ../docs/voice_events.md:118 msgid "### Deaf Events" msgstr "" #: ../docs/voice_events.md:120 msgid "#### `voice_deaf_enable(state)`" msgstr "" #: ../docs/voice_events.md:122 msgid "Fires when a user's voice deaf is enabled." msgstr "" #: ../docs/voice_events.md:128 msgid "#### `voice_deaf_disable(state)`" msgstr "" #: ../docs/voice_events.md:130 msgid "Fires when a user's voice deaf is disabled." msgstr "" #: ../docs/voice_events.md:136 msgid "#### `voice_deaf_update(before, after)`" msgstr "" #: ../docs/voice_events.md:138 msgid "Fires when a user's voice deaf is enabled or disabled." msgstr "" #: ../docs/voice_events.md:145 msgid "#### `voice_server_deaf_enable(state)`" msgstr "" #: ../docs/voice_events.md:147 msgid "Fires when a user's server voice deaf is enabled." msgstr "" #: ../docs/voice_events.md:153 msgid "#### `voice_server_deaf_disable(state)`" msgstr "" #: ../docs/voice_events.md:155 msgid "Fires when a user's server voice deaf is disabled." msgstr "" #: ../docs/voice_events.md:161 msgid "#### `voice_server_deaf_update(before, after)`" msgstr "" #: ../docs/voice_events.md:163 msgid "Fires when a user's server voice deaf is enabled or disabled." msgstr "" #: ../docs/voice_events.md:170 msgid "#### `voice_self_deaf_enable(state)`" msgstr "" #: ../docs/voice_events.md:172 msgid "Fires when a user's self voice deaf is enabled." msgstr "" #: ../docs/voice_events.md:178 msgid "#### `voice_self_deaf_disable(state)`" msgstr "" #: ../docs/voice_events.md:180 msgid "Fires when a user's self voice deaf is disabled." msgstr "" #: ../docs/voice_events.md:186 msgid "#### `voice_self_deaf_update(before, after)`" msgstr "" #: ../docs/voice_events.md:193 msgid "### Stream Events" msgstr "" #: ../docs/voice_events.md:195 msgid "#### `voice_stream_start(state)`" msgstr "" #: ../docs/voice_events.md:197 msgid "Fires when a stream is started." msgstr "" #: ../docs/voice_events.md:203 msgid "#### `voice_stream_end(state)`" msgstr "" #: ../docs/voice_events.md:205 msgid "Fires when a stream is ended." msgstr "" #: ../docs/voice_events.md:211 msgid "#### `voice_stream_update(before, after)`" msgstr "" #: ../docs/voice_events.md:213 msgid "Fires when a stream is started or ended." msgstr "" #: ../docs/voice_events.md:220 msgid "### Video Events" msgstr "" #: ../docs/voice_events.md:222 msgid "#### `voice_video_start(state)`" msgstr "" #: ../docs/voice_events.md:224 msgid "Fires when a video is started." msgstr "" #: ../docs/voice_events.md:230 msgid "#### `voice_video_end(state)`" msgstr "" #: ../docs/voice_events.md:232 msgid "Fires when a video is ended." msgstr "" #: ../docs/voice_events.md:238 msgid "#### `voice_video_update(before, after)`" msgstr "" #: ../docs/voice_events.md:240 msgid "Fires when a video is started or ended." msgstr "" #: ../docs/voice_events.md:247 msgid "### Stage Instances Events" msgstr "" #: ../docs/voice_events.md:249 msgid "#### `stage_instance_create(instance)`" msgstr "" #: ../docs/voice_events.md:251 msgid "Fires when a new stage instance is created." msgstr "" #: ../docs/voice_events.md:253 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| `instance` | {Discorb::StageInstance} | The created instance. |" msgstr "" #: ../docs/voice_events.md:257 msgid "#### `stage_instance_delete(instance)`" msgstr "" #: ../docs/voice_events.md:259 msgid "Fires when a stage instance is deleted." msgstr "" #: ../docs/voice_events.md:261 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| `instance` | {Discorb::StageInstance} | The deleted instance. |" msgstr "" #: ../docs/voice_events.md:265 msgid "#### `stage_instance_update(before, after)`" msgstr "" #: ../docs/voice_events.md:267 msgid "Fires when a stage instance is updated." msgstr "" #: ../docs/voice_events.md:269 msgid "| Parameter | Type | Description |\n" "| --- | --- | --- |\n" "| `before` | {Discorb::StageInstance} | The instance before the update. |\n" "| `after` | {Discorb::StageInstance} | The instance after the update. |" msgstr "" #: ../docs/voice_events.md:274 msgid "### Misc Events" msgstr "" #: ../docs/voice_events.md:276 msgid "#### `voice_state_update(before, after)`" msgstr "" #: ../docs/voice_events.md:278 msgid "Fired when a user changes voice state." msgstr "" # Discorb #: ../lib/discorb.rb:4 #: ../lib/discorb/app_command.rb:4 #: ../lib/discorb/application.rb:4 #: ../lib/discorb/asset.rb:4 #: ../lib/discorb/audit_logs.rb:4 #: ../lib/discorb/channel.rb:4 #: ../lib/discorb/client.rb:4 #: ../lib/discorb/color.rb:4 #: ../lib/discorb/common.rb:4 #: ../lib/discorb/components.rb:4 #: ../lib/discorb/dictionary.rb:4 #: ../lib/discorb/embed.rb:4 #: ../lib/discorb/emoji.rb:4 #: ../lib/discorb/emoji_table.rb:4 #: ../lib/discorb/error.rb:4 #: ../lib/discorb/event.rb:4 #: ../lib/discorb/event_handler.rb:4 #: ../lib/discorb/extension.rb:4 #: ../lib/discorb/file.rb:4 #: ../lib/discorb/flag.rb:4 #: ../lib/discorb/gateway.rb:4 #: ../lib/discorb/gateway_requests.rb:4 #: ../lib/discorb/guild.rb:4 #: ../lib/discorb/guild_template.rb:4 #: ../lib/discorb/http.rb:4 #: ../lib/discorb/image.rb:4 #: ../lib/discorb/integration.rb:4 #: ../lib/discorb/intents.rb:4 #: ../lib/discorb/interaction/autocomplete.rb:4 #: ../lib/discorb/interaction/command.rb:4 #: ../lib/discorb/interaction/components.rb:4 #: ../lib/discorb/interaction/response.rb:4 #: ../lib/discorb/interaction/root.rb:4 #: ../lib/discorb/invite.rb:4 #: ../lib/discorb/log.rb:4 #: ../lib/discorb/member.rb:4 #: ../lib/discorb/message.rb:4 #: ../lib/discorb/modules.rb:4 #: ../lib/discorb/permission.rb:4 #: ../lib/discorb/presence.rb:4 #: ../lib/discorb/rate_limit.rb:4 #: ../lib/discorb/reaction.rb:4 #: ../lib/discorb/role.rb:4 #: ../lib/discorb/sticker.rb:4 #: ../lib/discorb/user.rb:4 #: ../lib/discorb/utils.rb:4 #: ../lib/discorb/voice_state.rb:4 #: ../lib/discorb/webhook.rb:4 msgid "A new wrapper for the Discorb API." msgstr "" # @author #: ../lib/discorb.rb:6 #: ../lib/discorb/app_command.rb:3 #: ../lib/discorb/application.rb:3 #: ../lib/discorb/asset.rb:3 #: ../lib/discorb/audit_logs.rb:3 #: ../lib/discorb/channel.rb:5 #: ../lib/discorb/client.rb:10 #: ../lib/discorb/color.rb:3 #: ../lib/discorb/common.rb:3 #: ../lib/discorb/components.rb:3 #: ../lib/discorb/dictionary.rb:3 #: ../lib/discorb/embed.rb:3 #: ../lib/discorb/emoji.rb:5 #: ../lib/discorb/emoji_table.rb:3 #: ../lib/discorb/error.rb:3 #: ../lib/discorb/event.rb:1 #: ../lib/discorb/event_handler.rb:3 #: ../lib/discorb/extension.rb:3 #: ../lib/discorb/file.rb:6 #: ../lib/discorb/flag.rb:3 #: ../lib/discorb/gateway.rb:9 #: ../lib/discorb/gateway_requests.rb:3 #: ../lib/discorb/guild.rb:3 #: ../lib/discorb/guild_template.rb:3 #: ../lib/discorb/http.rb:5 #: ../lib/discorb/image.rb:6 #: ../lib/discorb/integration.rb:3 #: ../lib/discorb/intents.rb:3 #: ../lib/discorb/interaction/autocomplete.rb:1 #: ../lib/discorb/interaction/command.rb:1 #: ../lib/discorb/interaction/components.rb:1 #: ../lib/discorb/interaction/response.rb:1 #: ../lib/discorb/interaction/root.rb:1 #: ../lib/discorb/invite.rb:3 #: ../lib/discorb/log.rb:3 #: ../lib/discorb/member.rb:3 #: ../lib/discorb/message.rb:3 #: ../lib/discorb/modules.rb:3 #: ../lib/discorb/permission.rb:3 #: ../lib/discorb/presence.rb:3 #: ../lib/discorb/rate_limit.rb:3 #: ../lib/discorb/reaction.rb:3 #: ../lib/discorb/role.rb:3 #: ../lib/discorb/sticker.rb:3 #: ../lib/discorb/user.rb:3 #: ../lib/discorb/utils.rb:3 #: ../lib/discorb/voice_state.rb:3 #: ../lib/discorb/webhook.rb:3 msgid "sevenc-nanashi" msgstr "" # @note #: ../lib/discorb.rb:25 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/channel.rb:828 #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1378 #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 #: ../lib/discorb/user.rb:160 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 #: ../lib/discorb/webhook.rb:145 msgid "The arguments of this method are defaultly set to `Discorb::Unset`. Specify value to set the value, if not don't specify or specify `Discorb::Unset`." msgstr "" # @note #: ../lib/discorb.rb:25 #: ../lib/discorb/guild.rb:45 #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 msgid "You must enable `GUILD_MEMBERS` intent to use this method." msgstr "" # @note #: ../lib/discorb.rb:25 #: ../lib/discorb/gateway.rb:42 #: ../lib/discorb/gateway.rb:45 #: ../lib/discorb/gateway.rb:48 #: ../lib/discorb/gateway.rb:51 #: ../lib/discorb/gateway.rb:54 #: ../lib/discorb/gateway.rb:59 #: ../lib/discorb/gateway.rb:61 #: ../lib/discorb/gateway.rb:62 #: ../lib/discorb/gateway.rb:124 #: ../lib/discorb/gateway.rb:127 #: ../lib/discorb/gateway.rb:130 #: ../lib/discorb/gateway.rb:173 #: ../lib/discorb/gateway.rb:176 #: ../lib/discorb/gateway.rb:179 #: ../lib/discorb/gateway.rb:258 #: ../lib/discorb/gateway.rb:271 #: ../lib/discorb/gateway.rb:287 #: ../lib/discorb/gateway.rb:291 #: ../lib/discorb/gateway.rb:314 #: ../lib/discorb/gateway.rb:330 #: ../lib/discorb/gateway.rb:334 #: ../lib/discorb/gateway.rb:346 #: ../lib/discorb/gateway.rb:362 #: ../lib/discorb/gateway.rb:366 #: ../lib/discorb/gateway.rb:391 #: ../lib/discorb/gateway.rb:393 #: ../lib/discorb/gateway.rb:417 #: ../lib/discorb/gateway.rb:421 #: ../lib/discorb/gateway.rb:425 #: ../lib/discorb/gateway.rb:429 #: ../lib/discorb/gateway.rb:433 #: ../lib/discorb/gateway.rb:476 #: ../lib/discorb/gateway.rb:491 #: ../lib/discorb/gateway.rb:495 #: ../lib/discorb/guild.rb:1091 #: ../lib/discorb/guild.rb:1108 #: ../lib/discorb/guild.rb:1306 #: ../lib/discorb/guild.rb:1355 #: ../lib/discorb/guild_template.rb:31 #: ../lib/discorb/guild_template.rb:42 #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:99 #: ../lib/discorb/member.rb:103 #: ../lib/discorb/member.rb:116 #: ../lib/discorb/member.rb:124 #: ../lib/discorb/member.rb:128 #: ../lib/discorb/member.rb:132 #: ../lib/discorb/member.rb:136 #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:226 #: ../lib/discorb/message.rb:230 #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:68 #: ../lib/discorb/voice_state.rb:72 #: ../lib/discorb/voice_state.rb:76 msgid "This method returns an object from client cache. it will return `nil` if the object is not in cache." msgstr "" # @note #: ../lib/discorb.rb:25 #: ../lib/discorb/channel.rb:176 #: ../lib/discorb/channel.rb:184 #: ../lib/discorb/channel.rb:185 #: ../lib/discorb/channel.rb:199 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/channel.rb:332 #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 #: ../lib/discorb/channel.rb:424 #: ../lib/discorb/channel.rb:445 #: ../lib/discorb/channel.rb:465 #: ../lib/discorb/channel.rb:479 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:530 #: ../lib/discorb/channel.rb:544 #: ../lib/discorb/channel.rb:561 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/channel.rb:723 #: ../lib/discorb/channel.rb:738 #: ../lib/discorb/channel.rb:828 #: ../lib/discorb/client.rb:211 #: ../lib/discorb/client.rb:229 #: ../lib/discorb/client.rb:247 #: ../lib/discorb/client.rb:265 #: ../lib/discorb/client.rb:282 #: ../lib/discorb/client.rb:299 #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/emoji.rb:116 #: ../lib/discorb/emoji.rb:124 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/event.rb:200 #: ../lib/discorb/event.rb:206 #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 #: ../lib/discorb/gateway.rb:103 #: ../lib/discorb/gateway.rb:152 #: ../lib/discorb/gateway.rb:204 #: ../lib/discorb/gateway.rb:300 #: ../lib/discorb/guild.rb:168 #: ../lib/discorb/guild.rb:185 #: ../lib/discorb/guild.rb:202 #: ../lib/discorb/guild.rb:290 #: ../lib/discorb/guild.rb:304 #: ../lib/discorb/guild.rb:316 #: ../lib/discorb/guild.rb:332 #: ../lib/discorb/guild.rb:351 #: ../lib/discorb/guild.rb:365 #: ../lib/discorb/guild.rb:379 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild.rb:604 #: ../lib/discorb/guild.rb:621 #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 #: ../lib/discorb/guild.rb:674 #: ../lib/discorb/guild.rb:719 #: ../lib/discorb/guild.rb:732 #: ../lib/discorb/guild.rb:749 #: ../lib/discorb/guild.rb:768 #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/guild.rb:802 #: ../lib/discorb/guild.rb:815 #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 #: ../lib/discorb/guild.rb:898 #: ../lib/discorb/guild.rb:912 #: ../lib/discorb/guild.rb:926 #: ../lib/discorb/guild.rb:940 #: ../lib/discorb/guild.rb:954 #: ../lib/discorb/guild.rb:968 #: ../lib/discorb/guild.rb:982 #: ../lib/discorb/guild.rb:999 #: ../lib/discorb/guild.rb:1016 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1378 #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 #: ../lib/discorb/guild_template.rb:71 #: ../lib/discorb/guild_template.rb:83 #: ../lib/discorb/guild_template.rb:89 #: ../lib/discorb/interaction/response.rb:15 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/invite.rb:105 #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/message.rb:349 #: ../lib/discorb/message.rb:360 #: ../lib/discorb/message.rb:373 #: ../lib/discorb/message.rb:379 #: ../lib/discorb/message.rb:388 #: ../lib/discorb/message.rb:394 #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 #: ../lib/discorb/message.rb:423 #: ../lib/discorb/message.rb:453 #: ../lib/discorb/message.rb:466 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 #: ../lib/discorb/modules.rb:113 #: ../lib/discorb/modules.rb:132 #: ../lib/discorb/modules.rb:152 #: ../lib/discorb/modules.rb:167 #: ../lib/discorb/modules.rb:181 #: ../lib/discorb/modules.rb:200 #: ../lib/discorb/role.rb:99 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 #: ../lib/discorb/sticker.rb:98 #: ../lib/discorb/sticker.rb:104 #: ../lib/discorb/user.rb:68 #: ../lib/discorb/user.rb:81 #: ../lib/discorb/user.rb:160 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 #: ../lib/discorb/webhook.rb:121 #: ../lib/discorb/webhook.rb:128 #: ../lib/discorb/webhook.rb:145 #: ../lib/discorb/webhook.rb:328 msgid "This method calls HTTP request." msgstr "" # @raise [Discorb::HTTPError] #: ../lib/discorb.rb:25 #: ../lib/discorb/channel.rb:176 #: ../lib/discorb/channel.rb:184 #: ../lib/discorb/channel.rb:185 #: ../lib/discorb/channel.rb:199 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/channel.rb:332 #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 #: ../lib/discorb/channel.rb:424 #: ../lib/discorb/channel.rb:445 #: ../lib/discorb/channel.rb:465 #: ../lib/discorb/channel.rb:479 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:530 #: ../lib/discorb/channel.rb:544 #: ../lib/discorb/channel.rb:561 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/channel.rb:723 #: ../lib/discorb/channel.rb:738 #: ../lib/discorb/channel.rb:828 #: ../lib/discorb/client.rb:211 #: ../lib/discorb/client.rb:229 #: ../lib/discorb/client.rb:247 #: ../lib/discorb/client.rb:265 #: ../lib/discorb/client.rb:282 #: ../lib/discorb/client.rb:299 #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/emoji.rb:116 #: ../lib/discorb/emoji.rb:124 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/event.rb:200 #: ../lib/discorb/event.rb:206 #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 #: ../lib/discorb/gateway.rb:103 #: ../lib/discorb/gateway.rb:152 #: ../lib/discorb/gateway.rb:204 #: ../lib/discorb/gateway.rb:300 #: ../lib/discorb/guild.rb:168 #: ../lib/discorb/guild.rb:185 #: ../lib/discorb/guild.rb:202 #: ../lib/discorb/guild.rb:290 #: ../lib/discorb/guild.rb:304 #: ../lib/discorb/guild.rb:316 #: ../lib/discorb/guild.rb:332 #: ../lib/discorb/guild.rb:351 #: ../lib/discorb/guild.rb:365 #: ../lib/discorb/guild.rb:379 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild.rb:604 #: ../lib/discorb/guild.rb:621 #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 #: ../lib/discorb/guild.rb:674 #: ../lib/discorb/guild.rb:719 #: ../lib/discorb/guild.rb:732 #: ../lib/discorb/guild.rb:749 #: ../lib/discorb/guild.rb:768 #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/guild.rb:802 #: ../lib/discorb/guild.rb:815 #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 #: ../lib/discorb/guild.rb:898 #: ../lib/discorb/guild.rb:912 #: ../lib/discorb/guild.rb:926 #: ../lib/discorb/guild.rb:940 #: ../lib/discorb/guild.rb:954 #: ../lib/discorb/guild.rb:968 #: ../lib/discorb/guild.rb:982 #: ../lib/discorb/guild.rb:999 #: ../lib/discorb/guild.rb:1016 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1378 #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 #: ../lib/discorb/guild_template.rb:71 #: ../lib/discorb/guild_template.rb:83 #: ../lib/discorb/guild_template.rb:89 #: ../lib/discorb/interaction/response.rb:15 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/invite.rb:105 #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/message.rb:349 #: ../lib/discorb/message.rb:360 #: ../lib/discorb/message.rb:373 #: ../lib/discorb/message.rb:379 #: ../lib/discorb/message.rb:388 #: ../lib/discorb/message.rb:394 #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 #: ../lib/discorb/message.rb:423 #: ../lib/discorb/message.rb:453 #: ../lib/discorb/message.rb:466 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 #: ../lib/discorb/modules.rb:113 #: ../lib/discorb/modules.rb:132 #: ../lib/discorb/modules.rb:152 #: ../lib/discorb/modules.rb:167 #: ../lib/discorb/modules.rb:181 #: ../lib/discorb/modules.rb:200 #: ../lib/discorb/role.rb:99 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 #: ../lib/discorb/sticker.rb:98 #: ../lib/discorb/sticker.rb:104 #: ../lib/discorb/user.rb:68 #: ../lib/discorb/user.rb:81 #: ../lib/discorb/user.rb:160 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 #: ../lib/discorb/webhook.rb:121 #: ../lib/discorb/webhook.rb:128 #: ../lib/discorb/webhook.rb:145 #: ../lib/discorb/webhook.rb:328 msgid "HTTP request failed." msgstr "" # @return [nil] #: ../lib/discorb.rb:25 #: ../lib/discorb/gateway.rb:42 #: ../lib/discorb/gateway.rb:45 #: ../lib/discorb/gateway.rb:48 #: ../lib/discorb/gateway.rb:51 #: ../lib/discorb/gateway.rb:54 #: ../lib/discorb/gateway.rb:59 #: ../lib/discorb/gateway.rb:61 #: ../lib/discorb/gateway.rb:62 #: ../lib/discorb/gateway.rb:124 #: ../lib/discorb/gateway.rb:127 #: ../lib/discorb/gateway.rb:130 #: ../lib/discorb/gateway.rb:173 #: ../lib/discorb/gateway.rb:176 #: ../lib/discorb/gateway.rb:179 #: ../lib/discorb/gateway.rb:258 #: ../lib/discorb/gateway.rb:271 #: ../lib/discorb/gateway.rb:287 #: ../lib/discorb/gateway.rb:291 #: ../lib/discorb/gateway.rb:314 #: ../lib/discorb/gateway.rb:330 #: ../lib/discorb/gateway.rb:334 #: ../lib/discorb/gateway.rb:346 #: ../lib/discorb/gateway.rb:362 #: ../lib/discorb/gateway.rb:366 #: ../lib/discorb/gateway.rb:391 #: ../lib/discorb/gateway.rb:393 #: ../lib/discorb/gateway.rb:417 #: ../lib/discorb/gateway.rb:421 #: ../lib/discorb/gateway.rb:425 #: ../lib/discorb/gateway.rb:429 #: ../lib/discorb/gateway.rb:433 #: ../lib/discorb/gateway.rb:476 #: ../lib/discorb/gateway.rb:491 #: ../lib/discorb/gateway.rb:495 #: ../lib/discorb/guild.rb:1091 #: ../lib/discorb/guild.rb:1108 #: ../lib/discorb/guild.rb:1306 #: ../lib/discorb/guild.rb:1355 #: ../lib/discorb/guild_template.rb:31 #: ../lib/discorb/guild_template.rb:42 #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:99 #: ../lib/discorb/member.rb:103 #: ../lib/discorb/member.rb:116 #: ../lib/discorb/member.rb:124 #: ../lib/discorb/member.rb:128 #: ../lib/discorb/member.rb:132 #: ../lib/discorb/member.rb:136 #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:226 #: ../lib/discorb/message.rb:230 #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:68 #: ../lib/discorb/voice_state.rb:72 #: ../lib/discorb/voice_state.rb:76 msgid "The object wasn't cached." msgstr "" # @note #: ../lib/discorb.rb:25 #: ../lib/discorb/channel.rb:176 #: ../lib/discorb/channel.rb:184 #: ../lib/discorb/channel.rb:185 #: ../lib/discorb/channel.rb:199 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/channel.rb:332 #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 #: ../lib/discorb/channel.rb:424 #: ../lib/discorb/channel.rb:445 #: ../lib/discorb/channel.rb:465 #: ../lib/discorb/channel.rb:479 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:530 #: ../lib/discorb/channel.rb:544 #: ../lib/discorb/channel.rb:561 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/channel.rb:723 #: ../lib/discorb/channel.rb:738 #: ../lib/discorb/channel.rb:828 #: ../lib/discorb/client.rb:211 #: ../lib/discorb/client.rb:229 #: ../lib/discorb/client.rb:247 #: ../lib/discorb/client.rb:265 #: ../lib/discorb/client.rb:282 #: ../lib/discorb/client.rb:299 #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/emoji.rb:116 #: ../lib/discorb/emoji.rb:124 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/event.rb:200 #: ../lib/discorb/event.rb:206 #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 #: ../lib/discorb/gateway.rb:103 #: ../lib/discorb/gateway.rb:152 #: ../lib/discorb/gateway.rb:204 #: ../lib/discorb/gateway.rb:300 #: ../lib/discorb/guild.rb:168 #: ../lib/discorb/guild.rb:185 #: ../lib/discorb/guild.rb:202 #: ../lib/discorb/guild.rb:290 #: ../lib/discorb/guild.rb:304 #: ../lib/discorb/guild.rb:316 #: ../lib/discorb/guild.rb:332 #: ../lib/discorb/guild.rb:351 #: ../lib/discorb/guild.rb:365 #: ../lib/discorb/guild.rb:379 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild.rb:604 #: ../lib/discorb/guild.rb:621 #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 #: ../lib/discorb/guild.rb:674 #: ../lib/discorb/guild.rb:719 #: ../lib/discorb/guild.rb:732 #: ../lib/discorb/guild.rb:749 #: ../lib/discorb/guild.rb:768 #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/guild.rb:802 #: ../lib/discorb/guild.rb:815 #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 #: ../lib/discorb/guild.rb:898 #: ../lib/discorb/guild.rb:912 #: ../lib/discorb/guild.rb:926 #: ../lib/discorb/guild.rb:940 #: ../lib/discorb/guild.rb:954 #: ../lib/discorb/guild.rb:968 #: ../lib/discorb/guild.rb:982 #: ../lib/discorb/guild.rb:999 #: ../lib/discorb/guild.rb:1016 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1378 #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 #: ../lib/discorb/guild_template.rb:71 #: ../lib/discorb/guild_template.rb:83 #: ../lib/discorb/guild_template.rb:89 #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 #: ../lib/discorb/interaction/response.rb:15 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/invite.rb:105 #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/message.rb:349 #: ../lib/discorb/message.rb:360 #: ../lib/discorb/message.rb:373 #: ../lib/discorb/message.rb:379 #: ../lib/discorb/message.rb:388 #: ../lib/discorb/message.rb:394 #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 #: ../lib/discorb/message.rb:423 #: ../lib/discorb/message.rb:453 #: ../lib/discorb/message.rb:466 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 #: ../lib/discorb/modules.rb:113 #: ../lib/discorb/modules.rb:132 #: ../lib/discorb/modules.rb:152 #: ../lib/discorb/modules.rb:167 #: ../lib/discorb/modules.rb:181 #: ../lib/discorb/modules.rb:200 #: ../lib/discorb/role.rb:99 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 #: ../lib/discorb/sticker.rb:98 #: ../lib/discorb/sticker.rb:104 #: ../lib/discorb/user.rb:68 #: ../lib/discorb/user.rb:81 #: ../lib/discorb/user.rb:160 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 #: ../lib/discorb/webhook.rb:121 #: ../lib/discorb/webhook.rb:128 #: ../lib/discorb/webhook.rb:145 #: ../lib/discorb/webhook.rb:328 msgid "This is an asynchronous method, it will return a `Async::Task` object. Use `Async::Task#wait` to get the result." msgstr "" # Discorb::ApplicationCommand #: ../lib/discorb/app_command.rb:5 msgid "Handles application commands." msgstr "" # Discorb::ApplicationCommand::Handler #: ../lib/discorb/app_command.rb:9 msgid "Module to handle application commands." msgstr "" # Discorb::ApplicationCommand::Handler#slash #: ../lib/discorb/app_command.rb:13 msgid "Add new top-level command." msgstr "" # @param [Array<Discorb::SelectMenu::Option>] # @param [Hash{String => Hash{:description => String, :optional => Boolean, :type => Object}}] #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/components.rb:203 msgid "tag|param|options" msgstr "" # @param [Array<#to_s>, false, nil] #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 #: ../lib/discorb/app_command.rb:114 msgid "tag|param|guild_ids" msgstr "" # @param [String] #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 #: ../lib/discorb/app_command.rb:314 msgid "tag|param|command_name" msgstr "" # @param [String] command_name #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 msgid "Command name." msgstr "" # @param [String] description #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 msgid "Command description." msgstr "" # @param [Hash{String => Hash{:description => String, :optional => Boolean, :type => Object}}] options #: ../lib/discorb/app_command.rb:40 msgid "Command options.\n" "The key is the option name, the value is a hash with the following keys:\n" "\n" "| Key | Type | Description |\n" "| --- | --- | --- |\n" "| `:description` | `String` | Description of the option. |\n" "| `:required` | Whether the argument is required. `optional` will be used if not specified. |\n" "| `:optional` | Whether the argument is optional. `required` will be used if not specified. |\n" "| `:type` | `Object` | Type of the option. |\n" "| `:choice` | `Hash{String => String, Integer, Float}` | Type of the option. |\n" "| `:default` | `Object` | Default value of the option. |\n" "| `:channel_types` | `Array<Class<Discorb::Channel>>` | Type of the channel option. |\n" "| `:autocomplete` | `Proc` | Autocomplete function. |\n" "| `:range` | `Range` | Range of the option. Only valid for numeric options. (`:int`, `:float`) |" msgstr "" # @param [Array<#to_s>, false, nil] guild_ids #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 msgid "Guild IDs to set the command to. `false` to global command, `nil` to use default." msgstr "" # @param [Proc] block #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 msgid "Command block." msgstr "" # @return [Discorb::ApplicationCommand::Command::GroupCommand] # @return [Discorb::ApplicationCommand::Command::ChatInputCommand] # @return [Discorb::ApplicationCommand::Command::SubcommandGroup] # @return [Discorb::ApplicationCommand::Command] #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 #: ../lib/discorb/app_command.rb:314 msgid "Command object." msgstr "" # @param [Proc] #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 #: ../lib/discorb/client.rb:117 #: ../lib/discorb/extension.rb:62 msgid "tag|param|block" msgstr "" # @param [String] #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:314 #: ../lib/discorb/components.rb:256 #: ../lib/discorb/embed.rb:47 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 #: ../lib/discorb/guild.rb:1044 #: ../lib/discorb/guild.rb:1319 #: ../lib/discorb/guild.rb:1378 #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 msgid "tag|param|description" msgstr "" # @see #: ../lib/discorb/app_command.rb:40 msgid "tag|see|file:docs/application_command.md#register-slash-command" msgstr "" # @see #: ../lib/discorb/app_command.rb:40 #: ../lib/discorb/app_command.rb:62 msgid "tag|see|file:docs/cli/setup.md" msgstr "" # Discorb::ApplicationCommand::Handler#slash_group #: ../lib/discorb/app_command.rb:48 msgid "Add new command with group." msgstr "" # @yield #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:314 msgid "Block to yield with the command." msgstr "" # @yieldparam [Discorb::ApplicationCommand::Command::GroupCommand] # @yieldparam [Discorb::ApplicationCommand::Command::SubcommandGroup] #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:314 msgid "tag|yieldparam|group" msgstr "" # @see #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:314 msgid "tag|see|file:docs/slash_command.md" msgstr "" # @yieldparam [Discorb::ApplicationCommand::Command::GroupCommand] group # @yieldparam [Discorb::ApplicationCommand::Command::SubcommandGroup] group #: ../lib/discorb/app_command.rb:62 #: ../lib/discorb/app_command.rb:314 msgid "Group command." msgstr "" # Discorb::ApplicationCommand::Handler#message_command #: ../lib/discorb/app_command.rb:70 msgid "Add message context menu command." msgstr "" # @yieldparam [Discorb::CommandInteraction::UserMenuCommand] interaction #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 msgid "Interaction object." msgstr "" # @yieldparam [Discorb::CommandInteraction::UserMenuCommand] #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 msgid "tag|yieldparam|interaction" msgstr "" # @yieldparam [Discorb::Message] #: ../lib/discorb/app_command.rb:81 msgid "tag|yieldparam|message" msgstr "" # @yieldparam [Discorb::Message] message #: ../lib/discorb/app_command.rb:81 msgid "Message object." msgstr "" # @yield [interaction, message] # @yield [interaction, user] #: ../lib/discorb/app_command.rb:81 #: ../lib/discorb/app_command.rb:99 msgid "Block to execute." msgstr "" # Discorb::ApplicationCommand::Handler#user_command #: ../lib/discorb/app_command.rb:88 msgid "Add user context menu command." msgstr "" # @yieldparam [Discorb::User] user #: ../lib/discorb/app_command.rb:99 msgid "User object." msgstr "" # @yieldparam [Discorb::User] #: ../lib/discorb/app_command.rb:99 msgid "tag|yieldparam|user" msgstr "" # Discorb::ApplicationCommand::Handler#setup_commands #: ../lib/discorb/app_command.rb:106 msgid "Setup commands." msgstr "" # @param [Array<#to_s>, false, nil] guild_ids #: ../lib/discorb/app_command.rb:114 msgid "Guild IDs to use as default. If `false` is given, it will be global command." msgstr "" # @param [String] token #: ../lib/discorb/app_command.rb:114 msgid "Bot token." msgstr "" # @note #: ../lib/discorb/app_command.rb:114 msgid "`token` parameter only required if you don't run client." msgstr "" # @see #: ../lib/discorb/app_command.rb:114 msgid "tag|see|Client#initialize" msgstr "" # @param [String, nil] # @param [String] #: ../lib/discorb/app_command.rb:114 #: ../lib/discorb/client.rb:425 msgid "tag|param|token" msgstr "" # Discorb::ApplicationCommand::Command #: ../lib/discorb/app_command.rb:142 msgid "Represents a application command." msgstr "" # @return [String] #: ../lib/discorb/app_command.rb:147 #: ../lib/discorb/app_command.rb:217 msgid "The name of the command." msgstr "" # @return [Array<#to_s>] #: ../lib/discorb/app_command.rb:149 msgid "The guild ids that the command is enabled in." msgstr "" # @return [Proc] #: ../lib/discorb/app_command.rb:151 msgid "The block of the command." msgstr "" # @return [:chat_input, :user, :message] #: ../lib/discorb/app_command.rb:153 msgid "The type of the command." msgstr "" # @return [Integer] #: ../lib/discorb/app_command.rb:155 msgid "The raw type of the command." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake, :global => Discorb::Snowflake}] #: ../lib/discorb/app_command.rb:157 msgid "The ID mapping." msgstr "" # @return [Command] #: ../lib/discorb/app_command.rb:166 msgid "a new instance of Command" msgstr "" # Discorb::ApplicationCommand::Command::ChatInputCommand #: ../lib/discorb/app_command.rb:194 msgid "Represents the slash command." msgstr "" # @return [String] #: ../lib/discorb/app_command.rb:198 #: ../lib/discorb/app_command.rb:277 msgid "The description of the command." msgstr "" # @return [Hash{String => Hash}] #: ../lib/discorb/app_command.rb:200 msgid "The options of the command." msgstr "" # @return [ChatInputCommand] #: ../lib/discorb/app_command.rb:203 msgid "a new instance of ChatInputCommand" msgstr "" # Discorb::ApplicationCommand::Command::ChatInputCommand#to_s #: ../lib/discorb/app_command.rb:213 msgid "Returns the commands name." msgstr "" # Discorb::ApplicationCommand::Command::GroupCommand #: ../lib/discorb/app_command.rb:271 msgid "Represents the command with subcommands." msgstr "" # @return [Array<Discorb::ApplicationCommand::Command::ChatInputCommand, Discorb::ApplicationCommand::Command::SubcommandGroup>] # @return [Array<Discorb::ApplicationCommand::Command::ChatInputCommand>] #: ../lib/discorb/app_command.rb:275 #: ../lib/discorb/app_command.rb:372 msgid "The subcommands of the command." msgstr "" # @return [GroupCommand] #: ../lib/discorb/app_command.rb:280 msgid "a new instance of GroupCommand" msgstr "" # Discorb::ApplicationCommand::Command::GroupCommand#slash # Discorb::ApplicationCommand::Command::SubcommandGroup#slash #: ../lib/discorb/app_command.rb:289 #: ../lib/discorb/app_command.rb:387 msgid "Add new subcommand." msgstr "" # @return [Discorb::ApplicationCommand::Command::ChatInputCommand] #: ../lib/discorb/app_command.rb:294 #: ../lib/discorb/app_command.rb:391 msgid "The added subcommand." msgstr "" # Discorb::ApplicationCommand::Command::GroupCommand#group #: ../lib/discorb/app_command.rb:302 msgid "Add new subcommand group." msgstr "" # @param [String] command_name #: ../lib/discorb/app_command.rb:314 msgid "Group name." msgstr "" # @param [String] description #: ../lib/discorb/app_command.rb:314 msgid "Group description." msgstr "" # Discorb::ApplicationCommand::Command::GroupCommand#to_s #: ../lib/discorb/app_command.rb:322 msgid "Returns the command name." msgstr "" # @return [String] #: ../lib/discorb/app_command.rb:326 msgid "The command name." msgstr "" # Discorb::ApplicationCommand::Command::SubcommandGroup #: ../lib/discorb/app_command.rb:368 msgid "Represents the subcommand group." msgstr "" # @return [SubcommandGroup] #: ../lib/discorb/app_command.rb:375 msgid "a new instance of SubcommandGroup" msgstr "" # Discorb::Application #: ../lib/discorb/application.rb:5 msgid "Represents a Discord application." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/application.rb:9 msgid "The application's ID." msgstr "" # @return [String] #: ../lib/discorb/application.rb:11 msgid "The application's name." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/application.rb:13 msgid "The application's icon." msgstr "" # @return [String] #: ../lib/discorb/application.rb:15 msgid "The application's description." msgstr "" # @return [String] #: ../lib/discorb/application.rb:17 msgid "The application's summary." msgstr "" # @return [String] #: ../lib/discorb/application.rb:19 msgid "The application's public key." msgstr "" # @return [Discorb::User] #: ../lib/discorb/application.rb:21 msgid "The application's owner." msgstr "" # @return [Discorb::Application::Team] #: ../lib/discorb/application.rb:23 msgid "The application's team." msgstr "" # @return [Boolean] #: ../lib/discorb/application.rb:25 #: ../lib/discorb/application.rb:26 #: ../lib/discorb/application.rb:53 msgid "Whether the application's bot is public." msgstr "" # @return [Boolean] #: ../lib/discorb/application.rb:28 #: ../lib/discorb/application.rb:29 #: ../lib/discorb/application.rb:55 msgid "Whether the application's bot requires a code grant." msgstr "" # @return [Discorb::Application::Flag] #: ../lib/discorb/application.rb:31 msgid "The application's flags." msgstr "" # @return [Application] #: ../lib/discorb/application.rb:33 msgid "a new instance of Application" msgstr "" # Discorb::Application::Flag #: ../lib/discorb/application.rb:58 msgid "Represents a flag for an application.\n" "## Flag fields" msgstr "" # Discorb::Application::Flag #: ../lib/discorb/application.rb:61 msgid "| Field|Value|\n" "|---|---|\n" "| `1 << 12` | `:gateway_presence` |\n" "| `1 << 13` | `:gateway_presence_limited` |\n" "| `1 << 14` | `:gateway_guild_members` |\n" "| `1 << 15` | `:gateway_guild_members_limited` |\n" "| `1 << 16` | `:verification_pending_guild_limit` |\n" "| `1 << 17` | `:embedded` |\n" "| `1 << 18` | `:gateway_message_content` |\n" "| `1 << 19` | `:gateway_message_content_limited` |" msgstr "" # Discorb::Application::Team #: ../lib/discorb/application.rb:86 msgid "Represents a team for an application." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/application.rb:90 msgid "The team's ID." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/application.rb:92 msgid "The team's icon." msgstr "" # @return [String] #: ../lib/discorb/application.rb:94 msgid "The team's name." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/application.rb:96 msgid "The team's owner's ID." msgstr "" # @return [Discorb::Application::Team::Member] #: ../lib/discorb/application.rb:98 msgid "The team's member." msgstr "" # @return [Team] #: ../lib/discorb/application.rb:101 msgid "a new instance of Team" msgstr "" # @return [Discorb::Application::Team::Member] # Discorb::Application::Team#owner #: ../lib/discorb/application.rb:111 #: ../lib/discorb/application.rb:115 msgid "The team's owner." msgstr "" # Discorb::Application::Team::Member #: ../lib/discorb/application.rb:124 msgid "Represents a member of team." msgstr "" # @return [Async::Task<Discorb::User>] # @return [Discorb::User] #: ../lib/discorb/application.rb:128 #: ../lib/discorb/client.rb:211 #: ../lib/discorb/guild.rb:1159 #: ../lib/discorb/message.rb:649 msgid "The user." msgstr "" # @return [Snowflake] #: ../lib/discorb/application.rb:130 msgid "The ID of member's team." msgstr "" # @return [:invited, :accepted] #: ../lib/discorb/application.rb:132 #: ../lib/discorb/application.rb:133 msgid "The member's membership state." msgstr "" # @return [Array<Symbol>] # @return [Discorb::Permission] #: ../lib/discorb/application.rb:136 #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:107 #: ../lib/discorb/member.rb:114 msgid "The permissions of the member." msgstr "" # @note #: ../lib/discorb/application.rb:136 msgid "This always return `:*`." msgstr "" # @return [Member] #: ../lib/discorb/application.rb:150 #: ../lib/discorb/channel.rb:965 #: ../lib/discorb/member.rb:66 msgid "a new instance of Member" msgstr "" # Discorb::Asset #: ../lib/discorb/asset.rb:5 msgid "Represents a single asset." msgstr "" # @return [String] #: ../lib/discorb/asset.rb:9 msgid "The hash of asset." msgstr "" # @return [Boolean] #: ../lib/discorb/asset.rb:11 #: ../lib/discorb/asset.rb:21 msgid "Whether the asset is animated." msgstr "" # @return [Asset] #: ../lib/discorb/asset.rb:15 #: ../lib/discorb/presence.rb:189 msgid "a new instance of Asset" msgstr "" # @return [String] # Discorb::Asset#url #: ../lib/discorb/asset.rb:26 #: ../lib/discorb/asset.rb:33 msgid "URL of the asset." msgstr "" # @param [String] image_format #: ../lib/discorb/asset.rb:33 msgid "The image format." msgstr "" # @param [String] #: ../lib/discorb/asset.rb:33 #: ../lib/discorb/asset.rb:83 msgid "tag|param|image_format" msgstr "" # @param [Integer] size #: ../lib/discorb/asset.rb:33 msgid "The size of the image." msgstr "" # @param [Integer] #: ../lib/discorb/asset.rb:33 #: ../lib/discorb/asset.rb:83 msgid "tag|param|size" msgstr "" # Discorb::DefaultAvatar #: ../lib/discorb/asset.rb:59 msgid "Represents a default avatar." msgstr "" # @return [false] #: ../lib/discorb/asset.rb:63 #: ../lib/discorb/asset.rb:71 msgid "For compatibility with {Asset}, always `false`." msgstr "" # @return [DefaultAvatar] #: ../lib/discorb/asset.rb:67 msgid "a new instance of DefaultAvatar" msgstr "" # Discorb::DefaultAvatar#url #: ../lib/discorb/asset.rb:76 msgid "Returns the URL of the avatar." msgstr "" # @param [String] image_format #: ../lib/discorb/asset.rb:83 msgid "The image format. This is compatible with {Asset#url}, will be ignored." msgstr "" # @return [String] #: ../lib/discorb/asset.rb:83 msgid "URL of the avatar." msgstr "" # @param [Integer] size #: ../lib/discorb/asset.rb:83 msgid "The size of the image. This is compatible with {Asset#url}, will be ignored." msgstr "" # Discorb::AuditLog #: ../lib/discorb/audit_logs.rb:5 msgid "Represents a Discord audit log." msgstr "" # @return [Array<Discorb::Webhook>] #: ../lib/discorb/audit_logs.rb:9 msgid "The webhooks in this audit log." msgstr "" # @return [Array<Discorb::User>] #: ../lib/discorb/audit_logs.rb:11 msgid "The users in this audit log." msgstr "" # @return [Array<Discorb::ThreadChannel>] #: ../lib/discorb/audit_logs.rb:13 msgid "The threads in this audit log." msgstr "" # @return [Array<Discorb::AuditLog::Entry>] #: ../lib/discorb/audit_logs.rb:15 msgid "The entries in this audit log." msgstr "" # @return [AuditLog] #: ../lib/discorb/audit_logs.rb:18 msgid "a new instance of AuditLog" msgstr "" # Discorb::AuditLog#[] #: ../lib/discorb/audit_logs.rb:28 msgid "Gets an entry from entries." msgstr "" # @param [Integer] #: ../lib/discorb/audit_logs.rb:35 #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 msgid "tag|param|index" msgstr "" # @return [Discorb::AuditLog::Entry] #: ../lib/discorb/audit_logs.rb:35 msgid "The entry." msgstr "" # @param [Integer] index #: ../lib/discorb/audit_logs.rb:35 msgid "The index of the entry." msgstr "" # @return [nil] #: ../lib/discorb/audit_logs.rb:35 msgid "If the index is out of range." msgstr "" # Discorb::AuditLog::Entry #: ../lib/discorb/audit_logs.rb:40 msgid "Represents an entry in an audit log." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/audit_logs.rb:44 msgid "The ID of the entry." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/audit_logs.rb:46 msgid "The ID of the user who performed the action." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/audit_logs.rb:48 msgid "The ID of the target of the action." msgstr "" # Discorb::AuditLog::Entry#type #: ../lib/discorb/audit_logs.rb:50 msgid "These symbols will be used:" msgstr "" # Discorb::AuditLog::Entry#type #: ../lib/discorb/audit_logs.rb:52 msgid "* `:guild_update`\n" "* `:channel_create`\n" "* `:channel_update`\n" "* `:channel_delete`\n" "* `:channel_overwrite_create`\n" "* `:channel_overwrite_update`\n" "* `:channel_overwrite_delete`\n" "* `:member_kick`\n" "* `:member_prune`\n" "* `:member_ban_add`\n" "* `:member_ban_remove`\n" "* `:member_update`\n" "* `:member_role_update`\n" "* `:member_move`\n" "* `:member_disconnect`\n" "* `:bot_add`\n" "* `:role_create`\n" "* `:role_update`\n" "* `:role_delete`\n" "* `:invite_create`\n" "* `:invite_update`\n" "* `:invite_delete`\n" "* `:webhook_create`\n" "* `:webhook_update`\n" "* `:webhook_delete`\n" "* `:emoji_create`\n" "* `:emoji_update`\n" "* `:emoji_delete`\n" "* `:message_delete`\n" "* `:message_bulk_delete`\n" "* `:message_pin`\n" "* `:message_unpin`\n" "* `:integration_create`\n" "* `:integration_update`\n" "* `:integration_delete`\n" "* `:stage_instance_create`\n" "* `:stage_instance_update`\n" "* `:stage_instance_delete`\n" "* `:sticker_create`\n" "* `:sticker_update`\n" "* `:sticker_delete`\n" "* `:guild_scheduled_event_create`\n" "* `:guild_scheduled_event_update`\n" "* `:guild_scheduled_event_delete`\n" "* `:thread_create`\n" "* `:thread_update`\n" "* `:thread_delete`" msgstr "" # @return [Symbol] #: ../lib/discorb/audit_logs.rb:99 msgid "The type of the entry." msgstr "" # @return [Discorb::AuditLog::Entry::Changes] #: ../lib/discorb/audit_logs.rb:101 msgid "The changes in this entry." msgstr "" # @return [Discorb::Channel, Discorb::Role, Discorb::Member, Discorb::Guild, Discorb::Message] #: ../lib/discorb/audit_logs.rb:103 msgid "The target of the entry." msgstr "" # @note #: ../lib/discorb/audit_logs.rb:106 msgid "You can use dot notation to access the data." msgstr "" # @return [Hash{Symbol => Object}] #: ../lib/discorb/audit_logs.rb:106 msgid "The optional data for this entry." msgstr "" # @return [Discorb::User] #: ../lib/discorb/audit_logs.rb:108 #: ../lib/discorb/audit_logs.rb:195 msgid "The user who performed the action." msgstr "" # @return [Entry] #: ../lib/discorb/audit_logs.rb:173 msgid "a new instance of Entry" msgstr "" # Discorb::AuditLog::Entry#[] # Discorb::AuditLog::Entry::Changes#[] #: ../lib/discorb/audit_logs.rb:200 #: ../lib/discorb/audit_logs.rb:249 msgid "Get a change with the given key." msgstr "" # @param [Symbol] #: ../lib/discorb/audit_logs.rb:207 #: ../lib/discorb/audit_logs.rb:256 #: ../lib/discorb/permission.rb:222 msgid "tag|param|key" msgstr "" # @param [Symbol] key #: ../lib/discorb/audit_logs.rb:207 #: ../lib/discorb/audit_logs.rb:256 msgid "The key to get." msgstr "" # @return [Discorb::AuditLog::Entry::Change] #: ../lib/discorb/audit_logs.rb:207 #: ../lib/discorb/audit_logs.rb:256 msgid "The change with the given key." msgstr "" # @return [nil] #: ../lib/discorb/audit_logs.rb:207 #: ../lib/discorb/audit_logs.rb:256 msgid "The change with the given key does not exist." msgstr "" # Discorb::AuditLog::Entry.converts #: ../lib/discorb/audit_logs.rb:217 msgid "Returns the value of attribute converts." msgstr "" # Discorb::AuditLog::Entry.events #: ../lib/discorb/audit_logs.rb:217 msgid "Returns the value of attribute events." msgstr "" # Discorb::AuditLog::Entry::Changes #: ../lib/discorb/audit_logs.rb:220 msgid "Represents the changes in an audit log entry." msgstr "" # Discorb::AuditLog::Entry::Changes#data #: ../lib/discorb/audit_logs.rb:224 msgid "Returns the value of attribute data." msgstr "" # @return [Changes] #: ../lib/discorb/audit_logs.rb:228 msgid "a new instance of Changes" msgstr "" # Discorb::AuditLog::Entry::Changes#keys #: ../lib/discorb/audit_logs.rb:240 msgid "Get keys of changes." msgstr "" # @return [Array<Symbol>] #: ../lib/discorb/audit_logs.rb:244 msgid "The keys of the changes." msgstr "" # Discorb::AuditLog::Entry::Change #: ../lib/discorb/audit_logs.rb:262 msgid "Represents a change in an audit log entry." msgstr "" # @note #: ../lib/discorb/audit_logs.rb:265 msgid "This instance will try to call a method of {#new_value} if the method wasn't defined." msgstr "" # @return [Symbol] #: ../lib/discorb/audit_logs.rb:267 msgid "The key of the change." msgstr "" # @return [Object] #: ../lib/discorb/audit_logs.rb:269 msgid "The old value of the change." msgstr "" # @return [Object] #: ../lib/discorb/audit_logs.rb:271 msgid "The new value of the change." msgstr "" # @return [Change] #: ../lib/discorb/audit_logs.rb:274 msgid "a new instance of Change" msgstr "" # Discorb::AuditLog::Integration #: ../lib/discorb/audit_logs.rb:312 msgid "Represents an integration in an audit log entry." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/audit_logs.rb:316 #: ../lib/discorb/integration.rb:9 #: ../lib/discorb/role.rb:166 msgid "The ID of the integration." msgstr "" # @return [Symbol] #: ../lib/discorb/audit_logs.rb:318 msgid "The type of the integration." msgstr "" # @return [String] #: ../lib/discorb/audit_logs.rb:320 msgid "The name of the integration." msgstr "" # @return [Discorb::Integration::Account] #: ../lib/discorb/audit_logs.rb:322 msgid "The account of the integration." msgstr "" # @return [Integration] #: ../lib/discorb/audit_logs.rb:325 #: ../lib/discorb/integration.rb:47 msgid "a new instance of Integration" msgstr "" # Discorb::Channel #: ../lib/discorb/channel.rb:7 msgid "Represents a channel of Discord." msgstr "" # @param [#to_s] id # @return [Discorb::Snowflake] #: ../lib/discorb/channel.rb:12 #: ../lib/discorb/channel.rb:766 #: ../lib/discorb/client.rb:229 #: ../lib/discorb/webhook.rb:272 #: ../lib/discorb/webhook.rb:297 msgid "The ID of the channel." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/channel.rb:14 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild_template.rb:161 #: ../lib/discorb/webhook.rb:274 msgid "The name of the channel." msgstr "" # @return [Channel] #: ../lib/discorb/channel.rb:23 #: ../lib/discorb/guild.rb:1319 #: ../lib/discorb/guild_template.rb:178 #: ../lib/discorb/webhook.rb:277 msgid "a new instance of Channel" msgstr "" # Discorb::Channel#== #: ../lib/discorb/channel.rb:31 msgid "Checks if the channel is other channel." msgstr "" # @param [#to_s] # @param [Discorb::Channel] # @param [Discorb::Dictionary] # @param [Discorb::Flag] # @param [Discorb::GuildChannel] # @param [Discorb::PermissionOverwrite] # @param [Discorb::Role] #: ../lib/discorb/channel.rb:37 #: ../lib/discorb/channel.rb:119 #: ../lib/discorb/channel.rb:132 #: ../lib/discorb/common.rb:79 #: ../lib/discorb/dictionary.rb:41 #: ../lib/discorb/flag.rb:51 #: ../lib/discorb/flag.rb:55 #: ../lib/discorb/flag.rb:64 #: ../lib/discorb/flag.rb:75 #: ../lib/discorb/flag.rb:86 #: ../lib/discorb/permission.rb:193 #: ../lib/discorb/role.rb:64 msgid "tag|param|other" msgstr "" # @param [Discorb::Channel] other # @param [Discorb::GuildChannel] other #: ../lib/discorb/channel.rb:37 #: ../lib/discorb/channel.rb:132 msgid "The channel to check." msgstr "" # @return [Boolean] #: ../lib/discorb/channel.rb:37 msgid "True if the channel is other channel." msgstr "" # Discorb::GuildChannel #: ../lib/discorb/channel.rb:88 msgid "Represents a channel in guild." msgstr "" # @return [Integer] #: ../lib/discorb/channel.rb:93 msgid "The position of the channel as integer." msgstr "" # @return [Hash{Discorb::Role, Discorb::Member => PermissionOverwrite}] #: ../lib/discorb/channel.rb:95 msgid "The permission overwrites of the channel." msgstr "" # Discorb::GuildChannel#<=> #: ../lib/discorb/channel.rb:113 msgid "Compares position of two channels." msgstr "" # @param [Discorb::GuildChannel] other #: ../lib/discorb/channel.rb:119 msgid "The channel to compare." msgstr "" # @return [-1, 1] #: ../lib/discorb/channel.rb:119 msgid "-1 if the channel is at lower than the other, 1 if the channel is at highter than the other." msgstr "" # Discorb::GuildChannel#== #: ../lib/discorb/channel.rb:126 msgid "Checks if the channel is same as another." msgstr "" # @return [Boolean] #: ../lib/discorb/channel.rb:132 msgid "`true` if the channel is same as another." msgstr "" # Discorb::GuildChannel#to_s #: ../lib/discorb/channel.rb:139 msgid "Stringifies the channel." msgstr "" # @return [String] #: ../lib/discorb/channel.rb:143 msgid "The name of the channel with `#`." msgstr "" # Discorb::GuildChannel#close! # Discorb::GuildChannel#delete! # Discorb::GuildChannel#destroy! #: ../lib/discorb/channel.rb:168 #: ../lib/discorb/channel.rb:185 #: ../lib/discorb/channel.rb:186 msgid "Deletes the channel." msgstr "" # @param [String] #: ../lib/discorb/channel.rb:176 #: ../lib/discorb/channel.rb:184 #: ../lib/discorb/channel.rb:185 #: ../lib/discorb/channel.rb:199 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 #: ../lib/discorb/channel.rb:445 #: ../lib/discorb/channel.rb:465 #: ../lib/discorb/channel.rb:479 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/channel.rb:723 #: ../lib/discorb/channel.rb:828 #: ../lib/discorb/channel.rb:848 #: ../lib/discorb/channel.rb:859 #: ../lib/discorb/channel.rb:870 #: ../lib/discorb/channel.rb:883 #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/emoji.rb:116 #: ../lib/discorb/emoji.rb:124 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild.rb:701 #: ../lib/discorb/guild.rb:707 #: ../lib/discorb/guild.rb:708 #: ../lib/discorb/guild.rb:709 #: ../lib/discorb/guild.rb:719 #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/guild.rb:802 #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild.rb:882 #: ../lib/discorb/guild.rb:1044 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1378 #: ../lib/discorb/integration.rb:64 #: ../lib/discorb/integration.rb:70 #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/member.rb:204 #: ../lib/discorb/member.rb:218 #: ../lib/discorb/message.rb:318 #: ../lib/discorb/message.rb:453 #: ../lib/discorb/message.rb:466 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 #: ../lib/discorb/modules.rb:167 #: ../lib/discorb/modules.rb:181 #: ../lib/discorb/role.rb:99 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 #: ../lib/discorb/role.rb:145 #: ../lib/discorb/role.rb:151 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 #: ../lib/discorb/sticker.rb:98 #: ../lib/discorb/sticker.rb:104 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 #: ../lib/discorb/voice_state.rb:194 #: ../lib/discorb/voice_state.rb:201 #: ../lib/discorb/voice_state.rb:202 msgid "tag|param|reason" msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/channel.rb:176 #: ../lib/discorb/channel.rb:184 #: ../lib/discorb/channel.rb:185 msgid "The deleted channel." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:176 #: ../lib/discorb/channel.rb:184 #: ../lib/discorb/channel.rb:185 msgid "The reason of deleting the channel." msgstr "" # Discorb::GuildChannel#move #: ../lib/discorb/channel.rb:188 msgid "Moves the channel to another position." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/channel.rb:199 msgid "The moved channel." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:199 msgid "The reason of moving the channel." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:199 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/role.rb:99 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "tag|param|position" msgstr "" # @param [Discorb::CategoryChannel, nil] # @param [Discorb::CategoryChannel] #: ../lib/discorb/channel.rb:199 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 msgid "tag|param|parent" msgstr "" # @param [Integer] position #: ../lib/discorb/channel.rb:199 msgid "The position to move the channel." msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:199 msgid "tag|param|lock_permissions" msgstr "" # @param [Boolean] lock_permissions #: ../lib/discorb/channel.rb:199 msgid "Whether to lock the permissions of the channel." msgstr "" # @param [Discorb::CategoryChannel] parent #: ../lib/discorb/channel.rb:199 msgid "The parent of channel." msgstr "" # Discorb::TextChannel #: ../lib/discorb/channel.rb:229 msgid "Represents a text channel." msgstr "" # @param [String] topic # @return [String] #: ../lib/discorb/channel.rb:233 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 msgid "The topic of the channel." msgstr "" # @param [Boolean] nsfw # @return [Boolean] #: ../lib/discorb/channel.rb:235 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild_template.rb:171 msgid "Whether the channel is nsfw." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/channel.rb:237 msgid "The id of the last message." msgstr "" # @param [Integer] rate_limit_per_user # @return [Integer] #: ../lib/discorb/channel.rb:239 #: ../lib/discorb/channel.rb:240 #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "The rate limit per user (Slowmode) in the channel." msgstr "" # @return [Time] #: ../lib/discorb/channel.rb:242 #: ../lib/discorb/channel.rb:243 msgid "The time when the last pinned message was pinned." msgstr "" # @return [Array<Discorb::ThreadChannel>] #: ../lib/discorb/channel.rb:245 msgid "The threads in the channel." msgstr "" # @return [TextChannel] #: ../lib/discorb/channel.rb:252 msgid "a new instance of TextChannel" msgstr "" # Discorb::TextChannel#edit # Discorb::TextChannel#modify #: ../lib/discorb/channel.rb:258 #: ../lib/discorb/channel.rb:304 msgid "Edits the channel." msgstr "" # @param [Integer] position # @return [Integer] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild_template.rb:163 msgid "The position of the channel." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 msgid "tag|param|slowmode" msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 msgid "tag|param|nsfw" msgstr "" # @param [String] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:723 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 msgid "tag|param|topic" msgstr "" # @param [#to_s] # @param [String] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/channel.rb:828 #: ../lib/discorb/embed.rb:132 #: ../lib/discorb/embed.rb:202 #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/gateway_requests.rb:23 #: ../lib/discorb/guild.rb:226 #: ../lib/discorb/guild.rb:332 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 #: ../lib/discorb/guild.rb:674 #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild.rb:1044 #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 #: ../lib/discorb/user.rb:160 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 msgid "tag|param|name" msgstr "" # @param [Discorb::CategoryChannel, nil] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "tag|param|category" msgstr "" # @param [Discorb::CategoryChannel, nil] category #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "The parent of channel. Specify `nil` to remove the parent." msgstr "" # @param [Discorb::CategoryChannel, nil] parent #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "Alias of `category`." msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "tag|param|announce" msgstr "" # @param [Boolean] announce #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "Whether the channel is announce channel." msgstr "" # @param [Integer] slowmode #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "Alias of `rate_limit_per_user`." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 msgid "tag|param|rate_limit_per_user" msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "tag|param|default_auto_archive_duration" msgstr "" # @param [Integer] default_auto_archive_duration #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "The default auto archive duration of the channel." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 #: ../lib/discorb/channel.rb:828 msgid "tag|param|archive_in" msgstr "" # @param [Integer] archive_in #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "Alias of `default_auto_archive_duration`." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "The reason of editing the channel." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/channel.rb:278 #: ../lib/discorb/channel.rb:303 msgid "The edited channel." msgstr "" # Discorb::TextChannel#create_webhook #: ../lib/discorb/channel.rb:306 msgid "Create webhook in the channel." msgstr "" # @param [Discorb::Image] avatar # @return [Discorb::Asset] #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/webhook.rb:18 msgid "The avatar of the webhook." msgstr "" # @param [Discorb::Image] #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/user.rb:160 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 msgid "tag|param|avatar" msgstr "" # @return [Async::Task<Discorb::Webhook::IncomingWebhook>] #: ../lib/discorb/channel.rb:315 msgid "The created webhook." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/channel.rb:315 #: ../lib/discorb/webhook.rb:10 msgid "The name of the webhook." msgstr "" # Discorb::TextChannel#fetch_webhooks #: ../lib/discorb/channel.rb:326 msgid "Fetch webhooks in the channel." msgstr "" # @return [Async::Task<Array<Discorb::Webhook>>] #: ../lib/discorb/channel.rb:332 msgid "The webhooks in the channel." msgstr "" # Discorb::TextChannel#bulk_delete! # Discorb::TextChannel#delete_messages! # Discorb::TextChannel#destroy_messages! #: ../lib/discorb/channel.rb:340 #: ../lib/discorb/channel.rb:366 #: ../lib/discorb/channel.rb:367 msgid "Bulk delete messages in the channel." msgstr "" # @param [Boolean] # @param [Discorb::Message] #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 #: ../lib/discorb/intents.rb:46 msgid "tag|param|messages" msgstr "" # @param [Discorb::Message] messages #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 msgid "The messages to delete." msgstr "" # @param [Boolean] force #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 msgid "Whether to ignore the validation for message (14 days limit)." msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:347 #: ../lib/discorb/channel.rb:365 #: ../lib/discorb/channel.rb:366 #: ../lib/discorb/client.rb:282 #: ../lib/discorb/gateway.rb:103 #: ../lib/discorb/gateway.rb:152 #: ../lib/discorb/gateway.rb:204 msgid "tag|param|force" msgstr "" # Discorb::TextChannel#edit_permission # Discorb::TextChannel#edit_permissions # Discorb::TextChannel#modify_permissions # Discorb::TextChannel#modify_permisssion # Discorb::TextChannel#set_permissions #: ../lib/discorb/channel.rb:369 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:398 msgid "Set the channel's permission overwrite." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 msgid "The reason of setting the overwrite." msgstr "" # @param [{Symbol => Boolean}] #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 msgid "tag|param|perms" msgstr "" # @param [{Symbol => Boolean}] perms #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 msgid "The permission overwrites to replace." msgstr "" # @param [Discorb::Role, Discorb::Member] target #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 msgid "The target of the overwrite." msgstr "" # @param [Discorb::NewsChannel] # @param [Discorb::Role, Discorb::Member] # @param [Discorb::TextChannel] #: ../lib/discorb/channel.rb:377 #: ../lib/discorb/channel.rb:394 #: ../lib/discorb/channel.rb:395 #: ../lib/discorb/channel.rb:396 #: ../lib/discorb/channel.rb:397 #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 #: ../lib/discorb/channel.rb:465 #: ../lib/discorb/channel.rb:479 msgid "tag|param|target" msgstr "" # Discorb::TextChannel#delete_permission # Discorb::TextChannel#delete_permissions # Discorb::TextChannel#destroy_permission # Discorb::TextChannel#destroy_permissions #: ../lib/discorb/channel.rb:400 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 #: ../lib/discorb/channel.rb:416 msgid "Delete the channel's permission overwrite." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:407 #: ../lib/discorb/channel.rb:413 #: ../lib/discorb/channel.rb:414 #: ../lib/discorb/channel.rb:415 msgid "The reason of deleting the overwrite." msgstr "" # Discorb::TextChannel#fetch_invites #: ../lib/discorb/channel.rb:418 msgid "Fetch the channel's invites." msgstr "" # @return [Async::Task<Array<Discorb::Invite>>] #: ../lib/discorb/channel.rb:424 msgid "The invites in the channel." msgstr "" # Discorb::TextChannel#create_invite #: ../lib/discorb/channel.rb:432 msgid "Create an invite in the channel." msgstr "" # @param [Integer] max_age #: ../lib/discorb/channel.rb:445 msgid "The max age of the invite." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:445 msgid "tag|param|max_uses" msgstr "" # @param [Integer] max_uses #: ../lib/discorb/channel.rb:445 msgid "The max uses of the invite." msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:445 msgid "tag|param|temporary" msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:445 msgid "tag|param|max_age" msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:445 msgid "tag|param|unique" msgstr "" # @param [Boolean] unique #: ../lib/discorb/channel.rb:445 msgid "Whether the invite is unique.\n" "@note if it's `false` it may return existing invite." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:445 msgid "The reason of creating the invite." msgstr "" # @return [Async::Task<Invite>] #: ../lib/discorb/channel.rb:445 msgid "The created invite." msgstr "" # @param [Boolean] temporary #: ../lib/discorb/channel.rb:445 msgid "Whether the invite is temporary." msgstr "" # Discorb::TextChannel#follow_from #: ../lib/discorb/channel.rb:458 msgid "Follow the existing announcement channel." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:465 #: ../lib/discorb/channel.rb:479 msgid "The reason of following the channel." msgstr "" # @param [Discorb::NewsChannel] target #: ../lib/discorb/channel.rb:465 msgid "The channel to follow." msgstr "" # Discorb::TextChannel#follow_to #: ../lib/discorb/channel.rb:472 msgid "Follow the existing announcement channel from self." msgstr "" # @param [Discorb::TextChannel] target #: ../lib/discorb/channel.rb:479 msgid "The channel to follow to." msgstr "" # Discorb::TextChannel#create_thread # Discorb::TextChannel#start_thread #: ../lib/discorb/channel.rb:486 #: ../lib/discorb/channel.rb:522 msgid "Start thread in the channel." msgstr "" # @param [Boolean] public #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "Whether the thread is public." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:828 msgid "tag|param|auto_archive_duration" msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:723 msgid "tag|param|public" msgstr "" # @param [Integer] auto_archive_duration #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "The duration of auto-archiving." msgstr "" # @param [Discorb::Message] message #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "The message to start the thread." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "The reason of starting the thread." msgstr "" # @return [Async::Task<Discorb::ThreadChannel>] #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "The started thread." msgstr "" # @param [Integer] rate_limit_per_user #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 msgid "The rate limit per user." msgstr "" # @param [Discorb::Message] # @param [Discorb::Webhook::Message] #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/modules.rb:167 #: ../lib/discorb/modules.rb:181 #: ../lib/discorb/webhook.rb:145 #: ../lib/discorb/webhook.rb:178 msgid "tag|param|message" msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/channel.rb:500 #: ../lib/discorb/channel.rb:521 #: ../lib/discorb/channel.rb:768 #: ../lib/discorb/channel.rb:828 msgid "The name of the thread." msgstr "" # Discorb::TextChannel#fetch_archived_public_threads #: ../lib/discorb/channel.rb:524 msgid "Fetch archived threads in the channel." msgstr "" # @return [Async::Task<Array<Discorb::ThreadChannel>>] #: ../lib/discorb/channel.rb:530 msgid "The archived threads in the channel." msgstr "" # Discorb::TextChannel#fetch_archived_private_threads #: ../lib/discorb/channel.rb:538 msgid "Fetch archived private threads in the channel." msgstr "" # @return [Async::Task<Array<Discorb::ThreadChannel>>] #: ../lib/discorb/channel.rb:544 msgid "The archived private threads in the channel." msgstr "" # Discorb::TextChannel#fetch_joined_archived_private_threads #: ../lib/discorb/channel.rb:552 msgid "Fetch joined archived private threads in the channel." msgstr "" # @param [#to_s] # @param [Discorb::Snowflake] # @param [Time] #: ../lib/discorb/channel.rb:561 #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 #: ../lib/discorb/modules.rb:132 msgid "tag|param|before" msgstr "" # @param [#to_s] id # @param [Time] before # @return [Async::Task<Discorb::ThreadChannel>] #: ../lib/discorb/channel.rb:561 #: ../lib/discorb/client.rb:211 #: ../lib/discorb/client.rb:247 #: ../lib/discorb/message.rb:479 #: ../lib/discorb/message.rb:485 msgid "<description>" msgstr "" # @param [Integer, nil] # @param [Integer] #: ../lib/discorb/channel.rb:561 #: ../lib/discorb/dictionary.rb:15 #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 #: ../lib/discorb/guild.rb:674 #: ../lib/discorb/message.rb:423 #: ../lib/discorb/modules.rb:132 msgid "tag|param|limit" msgstr "" # @param [Integer] limit #: ../lib/discorb/channel.rb:561 msgid "The limit of threads to fetch." msgstr "" # @return [Async::Task<Array<Discorb::ThreadChannel>>] #: ../lib/discorb/channel.rb:561 msgid "The joined archived private threads in the channel." msgstr "" # Discorb::NewsChannel #: ../lib/discorb/channel.rb:594 msgid "Represents a news channel (announcement channel)." msgstr "" # Discorb::VoiceChannel #: ../lib/discorb/channel.rb:603 msgid "Represents a voice channel." msgstr "" # @param [Integer] bitrate # @return [Integer] #: ../lib/discorb/channel.rb:607 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:662 msgid "The bitrate of the voice channel." msgstr "" # @return [nil] #: ../lib/discorb/channel.rb:610 msgid "If the user limit is not set." msgstr "" # @param [Integer] user_limit # @return [Integer] #: ../lib/discorb/channel.rb:610 #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:664 msgid "The user limit of the voice channel." msgstr "" # Discorb::VoiceChannel#edit # Discorb::VoiceChannel#modify #: ../lib/discorb/channel.rb:616 #: ../lib/discorb/channel.rb:645 msgid "Edit the voice channel." msgstr "" # @param [Symbol] #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "tag|param|rtc_region" msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 msgid "The reason of editing the voice channel." msgstr "" # @param [String] name #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 msgid "The name of the voice channel." msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:527 msgid "tag|param|bitrate" msgstr "" # @param [Integer] #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 #: ../lib/discorb/guild.rb:448 msgid "tag|param|user_limit" msgstr "" # @param [Integer] position #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 msgid "The position of the voice channel." msgstr "" # @param [Symbol] rtc_region #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 msgid "The region of the voice channel." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/channel.rb:630 #: ../lib/discorb/channel.rb:644 msgid "The edited voice channel." msgstr "" # Discorb::StageChannel #: ../lib/discorb/channel.rb:658 msgid "Represents a stage channel." msgstr "" # Discorb::StageChannel#edit # Discorb::StageChannel#modify #: ../lib/discorb/channel.rb:685 #: ../lib/discorb/channel.rb:711 msgid "Edit the stage channel." msgstr "" # @param [Integer] position #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "The position of the stage channel." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "The reason of editing the stage channel." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "The edited stage channel." msgstr "" # @param [String] name #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "The name of the stage channel." msgstr "" # @param [Integer] bitrate #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "The bitrate of the stage channel." msgstr "" # @param [Symbol] rtc_region #: ../lib/discorb/channel.rb:698 #: ../lib/discorb/channel.rb:710 msgid "The region of the stage channel." msgstr "" # Discorb::StageChannel#start #: ../lib/discorb/channel.rb:713 msgid "Start a stage instance." msgstr "" # @param [String] topic # @return [String] #: ../lib/discorb/channel.rb:723 #: ../lib/discorb/voice_state.rb:113 msgid "The topic of the stage instance." msgstr "" # @param [Boolean] public #: ../lib/discorb/channel.rb:723 msgid "Whether the stage instance is public or not." msgstr "" # @return [Async::Task<Discorb::StageInstance>] #: ../lib/discorb/channel.rb:723 msgid "The started stage instance." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:723 msgid "The reason of starting the stage instance." msgstr "" # Discorb::StageChannel#fetch_stage_instance #: ../lib/discorb/channel.rb:731 msgid "Fetch a current stage instance." msgstr "" # @return [Async::Task<StageInstance>] #: ../lib/discorb/channel.rb:738 msgid "The current stage instance." msgstr "" # @return [Async::Task<nil>] #: ../lib/discorb/channel.rb:738 msgid "If there is no current stage instance." msgstr "" # Discorb::ThreadChannel #: ../lib/discorb/channel.rb:760 msgid "Represents a thread." msgstr "" # @note #: ../lib/discorb/channel.rb:766 msgid "This ID is same as the starter message's ID" msgstr "" # @return [Integer] #: ../lib/discorb/channel.rb:771 msgid "The number of messages in the thread." msgstr "" # @note #: ../lib/discorb/channel.rb:771 #: ../lib/discorb/channel.rb:774 #: ../lib/discorb/channel.rb:775 msgid "This will stop counting at 50." msgstr "" # @return [Integer] #: ../lib/discorb/channel.rb:774 #: ../lib/discorb/channel.rb:775 msgid "The number of recipients in the thread." msgstr "" # @return [Integer] #: ../lib/discorb/channel.rb:777 #: ../lib/discorb/channel.rb:778 msgid "The rate limit per user (slowmode) in the thread." msgstr "" # @return [Array<Discorb::ThreadChannel::Member>] #: ../lib/discorb/channel.rb:780 msgid "The members of the thread." msgstr "" # @return [Time] #: ../lib/discorb/channel.rb:783 #: ../lib/discorb/channel.rb:784 msgid "The time the thread was archived." msgstr "" # @return [nil] #: ../lib/discorb/channel.rb:783 #: ../lib/discorb/channel.rb:784 msgid "If the thread is not archived." msgstr "" # @return [Integer] #: ../lib/discorb/channel.rb:786 #: ../lib/discorb/channel.rb:787 msgid "Auto archive duration in seconds." msgstr "" # @param [Boolean] archived # @return [Boolean] #: ../lib/discorb/channel.rb:789 #: ../lib/discorb/channel.rb:790 #: ../lib/discorb/channel.rb:828 msgid "Whether the thread is archived or not." msgstr "" # @return [ThreadChannel] #: ../lib/discorb/channel.rb:800 msgid "a new instance of ThreadChannel" msgstr "" # Discorb::ThreadChannel#edit #: ../lib/discorb/channel.rb:809 msgid "Edit the thread." msgstr "" # @param [Integer] archive_in #: ../lib/discorb/channel.rb:828 msgid "Alias of `auto_archive_duration`." msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:828 msgid "tag|param|locked" msgstr "" # @param [Integer] auto_archive_duration #: ../lib/discorb/channel.rb:828 msgid "The auto archive duration in seconds." msgstr "" # @param [Boolean] #: ../lib/discorb/channel.rb:828 msgid "tag|param|archived" msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:828 msgid "The reason of editing the thread." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/channel.rb:828 msgid "The edited thread." msgstr "" # @see #: ../lib/discorb/channel.rb:828 msgid "tag|see|#archive" msgstr "" # @see #: ../lib/discorb/channel.rb:828 msgid "tag|see|#lock" msgstr "" # @see #: ../lib/discorb/channel.rb:828 msgid "tag|see|#unarchive" msgstr "" # @see #: ../lib/discorb/channel.rb:828 msgid "tag|see|#unlock" msgstr "" # @param [Boolean] locked #: ../lib/discorb/channel.rb:828 msgid "Whether the thread is locked or not." msgstr "" # Discorb::ThreadChannel#archive #: ../lib/discorb/channel.rb:842 msgid "Helper method to archive the thread." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:848 msgid "The reason of archiving the thread." msgstr "" # @return [self] #: ../lib/discorb/channel.rb:848 msgid "The archived thread." msgstr "" # Discorb::ThreadChannel#lock #: ../lib/discorb/channel.rb:853 msgid "Helper method to lock the thread." msgstr "" # @return [self] #: ../lib/discorb/channel.rb:859 msgid "The locked thread." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:859 msgid "The reason of locking the thread." msgstr "" # Discorb::ThreadChannel#unarchive #: ../lib/discorb/channel.rb:864 msgid "Helper method to unarchive the thread." msgstr "" # @return [self] #: ../lib/discorb/channel.rb:870 msgid "The unarchived thread." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:870 msgid "The reason of unarchiving the thread." msgstr "" # Discorb::ThreadChannel#unlock #: ../lib/discorb/channel.rb:875 msgid "Helper method to unlock the thread." msgstr "" # @param [String] reason #: ../lib/discorb/channel.rb:883 msgid "The reason of unlocking the thread." msgstr "" # @return [self] #: ../lib/discorb/channel.rb:883 msgid "The unlocked thread." msgstr "" # @note #: ../lib/discorb/channel.rb:883 msgid "This method won't unarchive the thread. Use {#unarchive} instead." msgstr "" # Discorb::ThreadChannel.channel_type #: ../lib/discorb/channel.rb:960 msgid "Returns the value of attribute channel_type." msgstr "" # Discorb::ThreadChannel::Member#joined_at #: ../lib/discorb/channel.rb:964 msgid "Returns the value of attribute joined_at." msgstr "" # Discorb::CategoryChannel#channels #: ../lib/discorb/channel.rb:1014 msgid "Returns the value of attribute channels." msgstr "" # Discorb::Client #: ../lib/discorb/client.rb:12 msgid "Class for connecting to the Discord server." msgstr "" # @param [Discorb::Intents] intents # @return [Discorb::Intents] #: ../lib/discorb/client.rb:16 #: ../lib/discorb/client.rb:73 msgid "The intents that the client is currently using." msgstr "" # @return [nil] #: ../lib/discorb/client.rb:19 msgid "If never fetched application by {#fetch_application}." msgstr "" # @return [Discorb::Application] #: ../lib/discorb/client.rb:19 msgid "The application that the client is using." msgstr "" # @return [Discorb::HTTP] #: ../lib/discorb/client.rb:21 msgid "The http client." msgstr "" # @return [Integer] #: ../lib/discorb/client.rb:23 msgid "The heartbeat interval." msgstr "" # @return [nil] #: ../lib/discorb/client.rb:26 #: ../lib/discorb/client.rb:50 msgid "If not connected to the gateway." msgstr "" # @return [Integer] #: ../lib/discorb/client.rb:26 msgid "The API version of the Discord gateway." msgstr "" # @return [String] #: ../lib/discorb/client.rb:28 msgid "The token of the client." msgstr "" # @param [Discorb::AllowedMentions] allowed_mentions # @return [Discorb::AllowedMentions] #: ../lib/discorb/client.rb:30 #: ../lib/discorb/client.rb:73 msgid "The allowed mentions that the client is using." msgstr "" # @return [Discorb::ClientUser] #: ../lib/discorb/client.rb:32 msgid "The client user." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::Guild}] #: ../lib/discorb/client.rb:34 msgid "A dictionary of guilds." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::User}] #: ../lib/discorb/client.rb:36 msgid "A dictionary of users." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::Channel}] #: ../lib/discorb/client.rb:38 msgid "A dictionary of channels." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::Emoji}] #: ../lib/discorb/client.rb:40 msgid "A dictionary of emojis." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::Message}] #: ../lib/discorb/client.rb:42 msgid "A dictionary of messages." msgstr "" # @return [Discorb::Logger] #: ../lib/discorb/client.rb:44 msgid "The logger." msgstr "" # @return [Array<Discorb::ApplicationCommand::Command>] #: ../lib/discorb/client.rb:46 msgid "The commands that the client is using." msgstr "" # @return [Float] #: ../lib/discorb/client.rb:50 msgid "The ping of the client.\n" "@note This will be calculated from heartbeat and heartbeat_ack." msgstr "" # @return [:initialized, :running, :closed] #: ../lib/discorb/client.rb:52 msgid "The status of the client." msgstr "" # @return [Integer] #: ../lib/discorb/client.rb:54 msgid "The session ID of connection." msgstr "" # @return [Hash{String => Discorb::Extension}] #: ../lib/discorb/client.rb:56 msgid "The loaded extensions." msgstr "" # Discorb::Client#initialize #: ../lib/discorb/client.rb:61 msgid "Initializes a new client." msgstr "" # @param [String] #: ../lib/discorb/client.rb:73 #: ../lib/discorb/embed.rb:47 msgid "tag|param|title" msgstr "" # @param [Integer] #: ../lib/discorb/client.rb:73 msgid "tag|param|message_caches" msgstr "" # @param [Integer] message_caches #: ../lib/discorb/client.rb:73 msgid "The number of messages to cache." msgstr "" # @param [#puts] #: ../lib/discorb/client.rb:73 msgid "tag|param|log" msgstr "" # @param [:debug, :info, :warn, :error, :critical] #: ../lib/discorb/client.rb:73 msgid "tag|param|log_level" msgstr "" # @param [#puts] log #: ../lib/discorb/client.rb:73 msgid "The IO object to use for logging." msgstr "" # @return [Client] #: ../lib/discorb/client.rb:73 msgid "a new instance of Client" msgstr "" # @param [:debug, :info, :warn, :error, :critical] log_level #: ../lib/discorb/client.rb:73 msgid "The log level." msgstr "" # @param [String] title #: ../lib/discorb/client.rb:73 msgid "The title of the process. `false` to default, `nil` to `discorb: User#0000`. Default to `nil`." msgstr "" # @param [Boolean] fetch_member #: ../lib/discorb/client.rb:73 msgid "Whether to fetch member on ready. This may slow down the client. Default to `false`." msgstr "" # @param [Boolean] #: ../lib/discorb/client.rb:73 msgid "tag|param|colorize_log" msgstr "" # @param [Boolean] #: ../lib/discorb/client.rb:73 msgid "tag|param|wait_until_ready" msgstr "" # @param [Boolean] wait_until_ready #: ../lib/discorb/client.rb:73 msgid "Whether to delay event dispatch until ready." msgstr "" # @param [Boolean] colorize_log #: ../lib/discorb/client.rb:73 msgid "Whether to colorize the log." msgstr "" # @param [Boolean] #: ../lib/discorb/client.rb:73 msgid "tag|param|fetch_member" msgstr "" # @param [Discorb::AllowedMentions] #: ../lib/discorb/client.rb:73 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|allowed_mentions" msgstr "" # @param [Discorb::Intents] #: ../lib/discorb/client.rb:73 msgid "tag|param|intents" msgstr "" # Discorb::Client#on #: ../lib/discorb/client.rb:107 msgid "Registers an event handler." msgstr "" # @param [#to_s] # @param [Discorb::Snowflake] # @param [Symbol] #: ../lib/discorb/client.rb:117 #: ../lib/discorb/client.rb:143 #: ../lib/discorb/client.rb:211 #: ../lib/discorb/client.rb:229 #: ../lib/discorb/client.rb:247 #: ../lib/discorb/dictionary.rb:29 #: ../lib/discorb/dictionary.rb:50 #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:92 #: ../lib/discorb/dictionary.rb:115 #: ../lib/discorb/dictionary.rb:116 #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 #: ../lib/discorb/guild.rb:202 #: ../lib/discorb/guild.rb:316 #: ../lib/discorb/guild.rb:621 #: ../lib/discorb/guild.rb:999 #: ../lib/discorb/modules.rb:113 msgid "tag|param|id" msgstr "" # @param [Hash] metadata # @return [Discorb::ScheduledEvent::Metadata] #: ../lib/discorb/client.rb:117 #: ../lib/discorb/event.rb:61 msgid "The metadata of the event." msgstr "" # @param [String] name # @param [Symbol] event # @param [Symbol] event_name # @return [String] #: ../lib/discorb/client.rb:117 #: ../lib/discorb/client.rb:143 #: ../lib/discorb/client.rb:153 #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 #: ../lib/discorb/event.rb:40 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 #: ../lib/discorb/guild.rb:226 msgid "The name of the event." msgstr "" # @param [Symbol] #: ../lib/discorb/client.rb:117 #: ../lib/discorb/client.rb:143 #: ../lib/discorb/client.rb:153 #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 msgid "tag|param|event_name" msgstr "" # @param [Symbol] id #: ../lib/discorb/client.rb:117 msgid "Custom ID of the event." msgstr "" # @param [Hash] #: ../lib/discorb/client.rb:117 #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 msgid "tag|param|metadata" msgstr "" # @param [Proc] block #: ../lib/discorb/client.rb:117 #: ../lib/discorb/extension.rb:62 msgid "The block to execute when the event is triggered." msgstr "" # @return [Discorb::EventHandler] #: ../lib/discorb/client.rb:117 #: ../lib/discorb/client.rb:132 #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 msgid "The event." msgstr "" # @see #: ../lib/discorb/client.rb:117 msgid "tag|see|file:docs/Events.md" msgstr "" # Discorb::Client#once #: ../lib/discorb/client.rb:126 msgid "Almost same as {#on}, but only triggers the event once." msgstr "" # Discorb::Client#remove_event #: ../lib/discorb/client.rb:138 msgid "Remove event by ID." msgstr "" # @param [Symbol] id # @return [Discorb::Snowflake] #: ../lib/discorb/client.rb:143 #: ../lib/discorb/event.rb:38 msgid "The ID of the event." msgstr "" # Discorb::Client#dispatch #: ../lib/discorb/client.rb:148 msgid "Dispatch an event." msgstr "" # @param [Object] args #: ../lib/discorb/client.rb:153 msgid "The arguments to pass to the event." msgstr "" # @param [Object] #: ../lib/discorb/client.rb:153 msgid "tag|param|args" msgstr "" # Discorb::Client#fetch_user #: ../lib/discorb/client.rb:201 msgid "Fetch user from ID." msgstr "" # @raise [Discorb::NotFoundError] #: ../lib/discorb/client.rb:211 msgid "If the user doesn't exist." msgstr "" # Discorb::Client#fetch_channel #: ../lib/discorb/client.rb:219 msgid "Fetch channel from ID." msgstr "" # @raise [Discorb::NotFoundError] #: ../lib/discorb/client.rb:229 msgid "If the channel doesn't exist." msgstr "" # @param [Discorb::GuildChannel] channel # @return [Async::Task<Discorb::Channel>] # @return [Discorb::Channel] #: ../lib/discorb/client.rb:229 #: ../lib/discorb/guild.rb:1091 #: ../lib/discorb/guild.rb:1108 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 msgid "The channel." msgstr "" # Discorb::Client#fetch_guild #: ../lib/discorb/client.rb:237 msgid "Fetch guild from ID." msgstr "" # @return [Async::Task<Discorb::Guild>] # @return [Discorb::Guild] #: ../lib/discorb/client.rb:247 #: ../lib/discorb/guild.rb:1091 msgid "The guild." msgstr "" # @raise [Discorb::NotFoundError] #: ../lib/discorb/client.rb:247 msgid "If the guild doesn't exist." msgstr "" # Discorb::Client#fetch_invite #: ../lib/discorb/client.rb:255 msgid "Fetch invite from code." msgstr "" # @return [Async::Task<Discorb::Invite>] #: ../lib/discorb/client.rb:265 msgid "The invite." msgstr "" # @param [Boolean] with_expiration #: ../lib/discorb/client.rb:265 msgid "Whether to include the expiration of the invite." msgstr "" # @param [String] #: ../lib/discorb/client.rb:265 msgid "tag|param|code" msgstr "" # @param [String] code #: ../lib/discorb/client.rb:265 msgid "The code of the invite." msgstr "" # @param [Boolean] #: ../lib/discorb/client.rb:265 msgid "tag|param|with_count" msgstr "" # @param [Boolean] with_count #: ../lib/discorb/client.rb:265 msgid "Whether to include the count of the invite." msgstr "" # @param [Boolean] #: ../lib/discorb/client.rb:265 msgid "tag|param|with_expiration" msgstr "" # Discorb::Client#fetch_application #: ../lib/discorb/client.rb:273 msgid "Fetch webhook from ID.\n" "If application was cached, it will be used." msgstr "" # @return [Async::Task<Discorb::Application>] #: ../lib/discorb/client.rb:282 msgid "The application." msgstr "" # @param [Boolean] force #: ../lib/discorb/client.rb:282 msgid "Whether to force the fetch." msgstr "" # Discorb::Client#fetch_nitro_sticker_packs #: ../lib/discorb/client.rb:293 msgid "Fetch nitro sticker pack from ID." msgstr "" # @return [Async::Task<Array<Discorb::Sticker::Pack>>] #: ../lib/discorb/client.rb:299 msgid "The packs." msgstr "" # Discorb::Client#change_presence # Discorb::Client#update_presence #: ../lib/discorb/client.rb:307 #: ../lib/discorb/client.rb:334 msgid "Update presence of the client." msgstr "" # @param [:active, :completed, :canceled] # @param [:online, :idle, :dnd, :invisible] #: ../lib/discorb/client.rb:313 #: ../lib/discorb/client.rb:333 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 msgid "tag|param|status" msgstr "" # @param [Discorb::Activity] activity #: ../lib/discorb/client.rb:313 #: ../lib/discorb/client.rb:333 msgid "The activity to update." msgstr "" # @param [Discorb::Activity] #: ../lib/discorb/client.rb:313 #: ../lib/discorb/client.rb:333 msgid "tag|param|activity" msgstr "" # @param [String] afk #: ../lib/discorb/client.rb:313 #: ../lib/discorb/client.rb:333 msgid "Whether to set the client as AFK." msgstr "" # @param [:online, :idle, :dnd, :invisible] status #: ../lib/discorb/client.rb:313 #: ../lib/discorb/client.rb:333 msgid "The status to update." msgstr "" # @param [String] #: ../lib/discorb/client.rb:313 #: ../lib/discorb/client.rb:333 msgid "tag|param|afk" msgstr "" # Discorb::Client#await # Discorb::Client#event_lock #: ../lib/discorb/client.rb:336 #: ../lib/discorb/client.rb:367 msgid "Method to wait for a event." msgstr "" # @param [Integer] timeout #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "The timeout in seconds." msgstr "" # @param [Integer] #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "tag|param|timeout" msgstr "" # @param [Symbol] #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "tag|param|event" msgstr "" # @param [Proc] #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "tag|param|check" msgstr "" # @return [Object] #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "The result of the event." msgstr "" # @param [Proc] check #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "The check to use." msgstr "" # @raise [Discorb::TimeoutError] #: ../lib/discorb/client.rb:346 #: ../lib/discorb/client.rb:366 msgid "If the event didn't occur in time." msgstr "" # Discorb::Client#run #: ../lib/discorb/client.rb:417 msgid "Starts the client." msgstr "" # @note #: ../lib/discorb/client.rb:425 msgid "If the token is nil, you should use `discorb run` with the `-e` or `--env` option." msgstr "" # @param [String, nil] token #: ../lib/discorb/client.rb:425 msgid "The token to use." msgstr "" # @see #: ../lib/discorb/client.rb:425 msgid "tag|see|file:docs/cli.md" msgstr "" # @note #: ../lib/discorb/client.rb:425 msgid "This method behavior will change by CLI." msgstr "" # Discorb::Client#close! #: ../lib/discorb/client.rb:440 msgid "Stops the client." msgstr "" # Discorb::Color #: ../lib/discorb/color.rb:5 msgid "Represents RGB color." msgstr "" # @param value #: ../lib/discorb/color.rb:8 msgid "the value to set the attribute value to." msgstr "" # @param # @param [Integer] # @param [String] #: ../lib/discorb/color.rb:8 #: ../lib/discorb/color.rb:48 #: ../lib/discorb/components.rb:256 #: ../lib/discorb/embed.rb:157 #: ../lib/discorb/embed.rb:202 #: ../lib/discorb/flag.rb:21 #: ../lib/discorb/intents.rb:122 #: ../lib/discorb/log.rb:6 msgid "tag|param|value" msgstr "" # Discorb::Color#value= #: ../lib/discorb/color.rb:9 msgid "Sets the attribute value" msgstr "" # Discorb::Color#value #: ../lib/discorb/color.rb:9 msgid "Returns the value of attribute value." msgstr "" # Discorb::Color#initialize #: ../lib/discorb/color.rb:44 msgid "Create a color from a Integer." msgstr "" # @return [Color] #: ../lib/discorb/color.rb:48 msgid "a new instance of Color" msgstr "" # @param [Integer] value # @return [Integer] #: ../lib/discorb/color.rb:48 #: ../lib/discorb/color.rb:57 msgid "A color value." msgstr "" # Discorb::Color#to_i #: ../lib/discorb/color.rb:53 msgid "Integerize a color." msgstr "" # Discorb::Color#to_hex #: ../lib/discorb/color.rb:62 msgid "Convert a color to a hexadecimal value." msgstr "" # @return [String] #: ../lib/discorb/color.rb:66 msgid "A hexadecimal value." msgstr "" # Discorb::Color#deconstruct # Discorb::Color#to_a # Discorb::Color#to_rgb #: ../lib/discorb/color.rb:71 #: ../lib/discorb/color.rb:80 #: ../lib/discorb/color.rb:81 msgid "Convert a color to RGB array." msgstr "" # @return [Array(Integer, Integer, Integer)] #: ../lib/discorb/color.rb:75 #: ../lib/discorb/color.rb:79 #: ../lib/discorb/color.rb:80 msgid "A RGB array." msgstr "" # Discorb::Color#deconstruct_keys # Discorb::Color#to_rgb_hash #: ../lib/discorb/color.rb:83 #: ../lib/discorb/color.rb:92 msgid "Convert a color to RGB hash." msgstr "" # @return [Hash{:r, :g, :b => Integer}] #: ../lib/discorb/color.rb:87 #: ../lib/discorb/color.rb:91 msgid "A RGB hash." msgstr "" # Discorb::Color#to_s #: ../lib/discorb/color.rb:94 msgid "Converts a color to a `#000000` string." msgstr "" # @return [String] #: ../lib/discorb/color.rb:98 msgid "Converted string." msgstr "" # Discorb::Color.from_hex #: ../lib/discorb/color.rb:107 msgid "Create a color from a hexadecimal string." msgstr "" # @param [String] #: ../lib/discorb/color.rb:113 msgid "tag|param|hex" msgstr "" # @return [Discorb::Color] #: ../lib/discorb/color.rb:113 #: ../lib/discorb/color.rb:126 #: ../lib/discorb/color.rb:198 msgid "A color object." msgstr "" # @param [String] hex #: ../lib/discorb/color.rb:113 msgid "A hexadecimal string." msgstr "" # Discorb::Color.from_rgb #: ../lib/discorb/color.rb:118 msgid "Create a color from a RGB array." msgstr "" # @param [Integer] #: ../lib/discorb/color.rb:126 msgid "tag|param|red" msgstr "" # @param [Integer] red #: ../lib/discorb/color.rb:126 msgid "A red value." msgstr "" # @param [Integer] #: ../lib/discorb/color.rb:126 msgid "tag|param|green" msgstr "" # @param [Integer] green #: ../lib/discorb/color.rb:126 msgid "A green value." msgstr "" # @param [Integer] #: ../lib/discorb/color.rb:126 msgid "tag|param|blue" msgstr "" # @param [Integer] blue #: ../lib/discorb/color.rb:126 msgid "A blue value." msgstr "" # Discorb::Color.[] #: ../lib/discorb/color.rb:131 msgid "Create a color from a Discord's color.\n" "Currently these colors are supported:" msgstr "" # Discorb::Color.[] #: ../lib/discorb/color.rb:134 msgid "| Color Name | Hexadecimal |\n" "|------------|------------|\n" "| `:teal` | `#1abc9c` |\n" "| `:dark_teal` | `#11806a` |\n" "| `:green` | `#2ecc71` |\n" "| `:dark_green` | `#1f8b4c` |\n" "| `:blue` | `#3498db` |\n" "| `:dark_blue` | `#206694` |\n" "| `:purple` | `#9b59b6` |\n" "| `:dark_purple` | `#71368a` |\n" "| `:magenta` | `#e91e63` |\n" "| `:dark_magenta` | `#ad1457` |\n" "| `:gold` | `#f1c40f` |\n" "| `:dark_gold` | `#c27c0e` |\n" "| `:orange` | `#e67e22` |\n" "| `:dark_orange` | `#a84300` |\n" "| `:red` | `#e74c3c` |\n" "| `:dark_red` | `#992d22` |\n" "| `:lighter_grey` | `#95a5a6` |\n" "| `:lighter_gray` | `#95a5a6` |\n" "| `:dark_grey` | `#607d8b` |\n" "| `:dark_gray` | `#607d8b` |\n" "| `:light_grey` | `#979c9f` |\n" "| `:light_gray` | `#979c9f` |\n" "| `:darker_grey` | `#546e7a` |\n" "| `:darker_gray` | `#546e7a` |\n" "| `:og_blurple` | `#7289da` |\n" "| `:blurple` | `#5865f2` |\n" "| `:greyple` | `#99aab5` |\n" "| `:dark_theme` | `#36393f` |\n" "| `:fuchsia` | `#eb459e` |\n" "| `:dark_teal` | `#11806a` |\n" "| `:green` | `#2ecc71` |\n" "| `:dark_green` | `#1f8b4c` |\n" "| `:blue` | `#3498db` |\n" "| `:dark_blue` | `#206694` |\n" "| `:purple` | `#9b59b6` |\n" "| `:dark_purple` | `#71368a` |\n" "| `:magenta` | `#e91e63` |\n" "| `:dark_magenta` | `#ad1457` |\n" "| `:gold` | `#f1c40f` |\n" "| `:dark_gold` | `#c27c0e` |\n" "| `:orange` | `#e67e22` |\n" "| `:dark_orange` | `#a84300` |\n" "| `:red` | `#e74c3c` |\n" "| `:dark_red` | `#992d22` |\n" "| `:lighter_grey` | `#95a5a6` |\n" "| `:lighter_gray` | `#95a5a6` |\n" "| `:dark_grey` | `#607d8b` |\n" "| `:dark_gray` | `#607d8b` |\n" "| `:light_grey` | `#979c9f` |\n" "| `:light_gray` | `#979c9f` |\n" "| `:darker_grey` | `#546e7a` |\n" "| `:darker_gray` | `#546e7a` |\n" "| `:og_blurple` | `#7289da` |\n" "| `:blurple` | `#5865f2` |\n" "| `:greyple` | `#99aab5` |\n" "| `:dark_theme` | `#36393f` |\n" "| `:fuchsia` | `#eb459e` |" msgstr "" # @param [Discorb::Color] # @param [Symbol] #: ../lib/discorb/color.rb:198 #: ../lib/discorb/embed.rb:47 #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "tag|param|color" msgstr "" # @param [Symbol] color #: ../lib/discorb/color.rb:198 msgid "A Discord color name." msgstr "" # @return [Class] #: ../lib/discorb/color.rb:204 msgid "The alias of `Discorb::Color`." msgstr "" # @return [String] #: ../lib/discorb/common.rb:5 msgid "The API base URL." msgstr "" # @return [String] #: ../lib/discorb/common.rb:7 msgid "The version of discorb." msgstr "" # @return [String] #: ../lib/discorb/common.rb:9 msgid "The user agent for the bot." msgstr "" # Discorb::DiscordModel #: ../lib/discorb/common.rb:12 msgid "Represents Discord model." msgstr "" # Discorb::Snowflake #: ../lib/discorb/common.rb:39 msgid "Represents Snowflake of Discord." msgstr "" # @see https://discord.com/developers/docs/interactions/message-components#button-object-button-structure # @see https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-menu-structure # @see https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure # @see https://discord.com/developers/docs/reference#snowflakes # @see https://discord.com/developers/docs/resources/guild#guild-object-guild-features #: ../lib/discorb/common.rb:42 #: ../lib/discorb/components.rb:127 #: ../lib/discorb/components.rb:217 #: ../lib/discorb/components.rb:270 #: ../lib/discorb/guild.rb:28 msgid "Official Discord API docs" msgstr "" # @see #: ../lib/discorb/common.rb:42 msgid "tag|see|https://discord.com/developers/docs/reference#snowflakes" msgstr "" # @return [Snowflake] #: ../lib/discorb/common.rb:44 msgid "a new instance of Snowflake" msgstr "" # @return [Time] # Discorb::Snowflake#timestamp #: ../lib/discorb/common.rb:49 #: ../lib/discorb/common.rb:50 #: ../lib/discorb/common.rb:97 #: ../lib/discorb/common.rb:98 msgid "Timestamp of snowflake." msgstr "" # @return [String] #: ../lib/discorb/common.rb:49 #: ../lib/discorb/common.rb:117 msgid "The snowflake." msgstr "" # @return [Integer] # Discorb::Snowflake#process_id #: ../lib/discorb/common.rb:49 #: ../lib/discorb/common.rb:50 #: ../lib/discorb/common.rb:105 #: ../lib/discorb/common.rb:106 msgid "Process ID of snowflake." msgstr "" # @return [Integer] # Discorb::Snowflake#worker_id #: ../lib/discorb/common.rb:49 #: ../lib/discorb/common.rb:50 #: ../lib/discorb/common.rb:101 #: ../lib/discorb/common.rb:102 msgid "Worker ID of snowflake." msgstr "" # @return [Integer] # Discorb::Snowflake#increment #: ../lib/discorb/common.rb:49 #: ../lib/discorb/common.rb:50 #: ../lib/discorb/common.rb:109 #: ../lib/discorb/common.rb:110 msgid "Increment of snowflake." msgstr "" # Discorb::Snowflake#id #: ../lib/discorb/common.rb:50 #: ../lib/discorb/common.rb:118 msgid "Alias of to_s." msgstr "" # Discorb::Snowflake#== #: ../lib/discorb/common.rb:73 msgid "Compares snowflake with other object." msgstr "" # @param [#to_s] other #: ../lib/discorb/common.rb:79 msgid "Object to compare with." msgstr "" # @return [Boolean] #: ../lib/discorb/common.rb:79 msgid "True if snowflake is equal to other object." msgstr "" # Discorb::Snowflake#eql? #: ../lib/discorb/common.rb:86 msgid "Alias of {#==}." msgstr "" # Discorb::Snowflake#hash #: ../lib/discorb/common.rb:93 msgid "Return hash of snowflake." msgstr "" # Discorb::Component #: ../lib/discorb/components.rb:5 msgid "Represents a Discord component." msgstr "" # Discorb::Component.from_hash #: ../lib/discorb/components.rb:15 msgid "Create a new component from hash data." msgstr "" # @return [Component] #: ../lib/discorb/components.rb:22 msgid "A new component." msgstr "" # @param [Hash] #: ../lib/discorb/components.rb:22 #: ../lib/discorb/components.rb:306 #: ../lib/discorb/message.rb:574 msgid "tag|param|data" msgstr "" # @see #: ../lib/discorb/components.rb:22 msgid "tag|see|https://discord.com/developers/docs/interactions/message-components" msgstr "" # @see https://discord.com/developers/docs/interactions/message-components #: ../lib/discorb/components.rb:22 msgid "Official Discord API documentation" msgstr "" # @param [Hash] data # @return [Array<Hash>] #: ../lib/discorb/components.rb:22 #: ../lib/discorb/components.rb:51 msgid "Hash data." msgstr "" # Discorb::Component.to_payload #: ../lib/discorb/components.rb:45 msgid "Convert components to a hash." msgstr "" # @param [Array<Discorb::Component>, Array<Array<Discorb::Component>>] #: ../lib/discorb/components.rb:51 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 msgid "tag|param|components" msgstr "" # @param [Array<Discorb::Component>, Array<Array<Discorb::Component>>] components #: ../lib/discorb/components.rb:51 msgid "Components." msgstr "" # Discorb::Button #: ../lib/discorb/components.rb:75 msgid "Represents a button component." msgstr "" # @param [String] label # @return [String] #: ../lib/discorb/components.rb:79 #: ../lib/discorb/components.rb:112 msgid "The label of the button." msgstr "" # @param [:primary, :secondary, :success, :danger, :link] style # @return [:primary, :secondary, :success, :danger, :link] #: ../lib/discorb/components.rb:81 #: ../lib/discorb/components.rb:112 msgid "The style of the button." msgstr "" # @param [Discorb::Emoji] emoji # @return [Discorb::Emoji] #: ../lib/discorb/components.rb:83 #: ../lib/discorb/components.rb:112 msgid "The emoji of the button." msgstr "" # @return [String] #: ../lib/discorb/components.rb:86 msgid "The custom ID of the button.\n" "Won't be used if the style is `:link`." msgstr "" # @return [String] #: ../lib/discorb/components.rb:89 msgid "The URL of the button.\n" "Only used when the style is `:link`." msgstr "" # @param [Boolean] disabled # @return [Boolean] #: ../lib/discorb/components.rb:91 #: ../lib/discorb/components.rb:92 #: ../lib/discorb/components.rb:112 msgid "Whether the button is disabled." msgstr "" # Discorb::Button#initialize #: ../lib/discorb/components.rb:103 msgid "Initialize a new button." msgstr "" # @param [:primary, :secondary, :success, :danger, :link] # @param [:shield, :banner1, :banner2, :banner3, :banner4] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/guild.rb:1184 msgid "tag|param|style" msgstr "" # @param [String] url # @return [String] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/presence.rb:244 msgid "The URL of the button." msgstr "" # @param [String] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/embed.rb:47 #: ../lib/discorb/embed.rb:132 #: ../lib/discorb/embed.rb:244 #: ../lib/discorb/embed.rb:288 #: ../lib/discorb/gateway_requests.rb:23 #: ../lib/discorb/webhook.rb:197 #: ../lib/discorb/webhook.rb:404 msgid "tag|param|url" msgstr "" # @param [Boolean] #: ../lib/discorb/components.rb:112 msgid "tag|param|disabled" msgstr "" # @param [String] custom_id #: ../lib/discorb/components.rb:112 msgid "The custom ID of the button." msgstr "" # @param [String, Symbol] # @param [String] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/components.rb:203 msgid "tag|param|custom_id" msgstr "" # @param [String] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/components.rb:256 msgid "tag|param|label" msgstr "" # @param [Boolean] # @param [Discorb::Emoji] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/components.rb:256 #: ../lib/discorb/guild.rb:1319 #: ../lib/discorb/message.rb:258 #: ../lib/discorb/message.rb:373 #: ../lib/discorb/message.rb:379 #: ../lib/discorb/message.rb:388 #: ../lib/discorb/message.rb:394 #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 #: ../lib/discorb/message.rb:423 msgid "tag|param|emoji" msgstr "" # @return [Button] #: ../lib/discorb/components.rb:112 #: ../lib/discorb/presence.rb:248 msgid "a new instance of Button" msgstr "" # Discorb::Button#to_hash #: ../lib/discorb/components.rb:122 msgid "Converts the button to a hash." msgstr "" # @see #: ../lib/discorb/components.rb:127 msgid "tag|see|https://discord.com/developers/docs/interactions/message-components#button-object-button-structure" msgstr "" # @return [Hash] #: ../lib/discorb/components.rb:127 msgid "A hash representation of the button." msgstr "" # Discorb::SelectMenu #: ../lib/discorb/components.rb:179 msgid "Represents a select menu component." msgstr "" # @return [String] #: ../lib/discorb/components.rb:183 msgid "The custom ID of the select menu." msgstr "" # @param [Array<Discorb::SelectMenu::Option>] options # @return [Array<SelectMenu::Option>] #: ../lib/discorb/components.rb:185 #: ../lib/discorb/components.rb:203 msgid "The options of the select menu." msgstr "" # @param [Integer] min_values # @return [Integer] #: ../lib/discorb/components.rb:187 #: ../lib/discorb/components.rb:203 msgid "The minimum number of values." msgstr "" # @param [Integer] max_values # @return [Integer] #: ../lib/discorb/components.rb:189 #: ../lib/discorb/components.rb:203 msgid "The maximum number of values." msgstr "" # @return [Boolean] #: ../lib/discorb/components.rb:191 #: ../lib/discorb/components.rb:192 msgid "Whether the select menu is disabled." msgstr "" # Discorb::SelectMenu#initialize #: ../lib/discorb/components.rb:195 msgid "Initialize a new select menu." msgstr "" # @param [String] #: ../lib/discorb/components.rb:203 msgid "tag|param|placeholder" msgstr "" # @param [String, Symbol] custom_id #: ../lib/discorb/components.rb:203 msgid "Custom ID of the select menu." msgstr "" # @param [String] placeholder #: ../lib/discorb/components.rb:203 msgid "The placeholder of the select menu." msgstr "" # @param [Integer] #: ../lib/discorb/components.rb:203 msgid "tag|param|min_values" msgstr "" # @return [SelectMenu] #: ../lib/discorb/components.rb:203 msgid "a new instance of SelectMenu" msgstr "" # @param [Integer] #: ../lib/discorb/components.rb:203 msgid "tag|param|max_values" msgstr "" # Discorb::SelectMenu#to_hash #: ../lib/discorb/components.rb:212 msgid "Converts the select menu to a hash." msgstr "" # @return [Hash] #: ../lib/discorb/components.rb:217 msgid "A hash representation of the select menu." msgstr "" # @see #: ../lib/discorb/components.rb:217 msgid "tag|see|https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-menu-structure" msgstr "" # Discorb::SelectMenu::Option #: ../lib/discorb/components.rb:234 msgid "Represents an option of a select menu." msgstr "" # @param [String] label # @return [String] #: ../lib/discorb/components.rb:238 #: ../lib/discorb/components.rb:256 msgid "The label of the option." msgstr "" # @param [String] value # @return [String] #: ../lib/discorb/components.rb:240 #: ../lib/discorb/components.rb:256 msgid "The value of the option." msgstr "" # @param [String] description # @return [String] #: ../lib/discorb/components.rb:242 #: ../lib/discorb/components.rb:256 msgid "The description of the option." msgstr "" # @param [Discorb::Emoji] emoji # @return [Discorb::Emoji] #: ../lib/discorb/components.rb:244 #: ../lib/discorb/components.rb:256 msgid "The emoji of the option." msgstr "" # @param [Boolean] default # @return [Boolean] #: ../lib/discorb/components.rb:246 #: ../lib/discorb/components.rb:256 msgid "Whether the option is default." msgstr "" # Discorb::SelectMenu::Option#initialize #: ../lib/discorb/components.rb:249 msgid "Initialize a new option." msgstr "" # @param [Boolean] #: ../lib/discorb/components.rb:256 msgid "tag|param|default" msgstr "" # @return [Option] #: ../lib/discorb/components.rb:256 msgid "a new instance of Option" msgstr "" # Discorb::SelectMenu::Option#to_hash #: ../lib/discorb/components.rb:265 msgid "Converts the option to a hash." msgstr "" # @see #: ../lib/discorb/components.rb:270 msgid "tag|see|https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure" msgstr "" # @return [Hash] #: ../lib/discorb/components.rb:270 msgid "Hash representation of the option." msgstr "" # Discorb::SelectMenu::Option.from_hash #: ../lib/discorb/components.rb:300 msgid "Creates a new option from a hash." msgstr "" # @return [Discorb::SelectMenu::Option] #: ../lib/discorb/components.rb:306 msgid "A new option." msgstr "" # @param [Hash] data #: ../lib/discorb/components.rb:306 msgid "A hash representing the option." msgstr "" # @param [Integer] limit # @return [Integer] #: ../lib/discorb/dictionary.rb:6 #: ../lib/discorb/dictionary.rb:15 msgid "The maximum number of items in the dictionary." msgstr "" # Discorb::Dictionary#initialize #: ../lib/discorb/dictionary.rb:9 msgid "Initialize a new Dictionary." msgstr "" # @param [false, Proc] sort #: ../lib/discorb/dictionary.rb:15 msgid "Whether to sort the items in the dictionary." msgstr "" # @param [false, Proc] #: ../lib/discorb/dictionary.rb:15 msgid "tag|param|sort" msgstr "" # @return [Dictionary] #: ../lib/discorb/dictionary.rb:15 msgid "a new instance of Dictionary" msgstr "" # @param [Hash] #: ../lib/discorb/dictionary.rb:15 #: ../lib/discorb/permission.rb:265 msgid "tag|param|hash" msgstr "" # @param [Hash] hash #: ../lib/discorb/dictionary.rb:15 msgid "A hash of items to add to the dictionary." msgstr "" # Discorb::Dictionary#[]= # Discorb::Dictionary#register #: ../lib/discorb/dictionary.rb:22 #: ../lib/discorb/dictionary.rb:117 msgid "Registers a new item in the dictionary." msgstr "" # @param [Object] # @param [String, Hash] #: ../lib/discorb/dictionary.rb:29 #: ../lib/discorb/dictionary.rb:116 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 msgid "tag|param|body" msgstr "" # @param [#to_s] id #: ../lib/discorb/dictionary.rb:29 #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 #: ../lib/discorb/dictionary.rb:116 msgid "The ID of the item." msgstr "" # @param [Object] body #: ../lib/discorb/dictionary.rb:29 #: ../lib/discorb/dictionary.rb:116 msgid "The item to register." msgstr "" # @return [self] #: ../lib/discorb/dictionary.rb:29 #: ../lib/discorb/dictionary.rb:116 msgid "The dictionary." msgstr "" # Discorb::Dictionary#merge #: ../lib/discorb/dictionary.rb:37 msgid "Merges another dictionary into this one." msgstr "" # @param [Discorb::Dictionary] other #: ../lib/discorb/dictionary.rb:41 msgid "The dictionary to merge." msgstr "" # Discorb::Dictionary#remove #: ../lib/discorb/dictionary.rb:46 msgid "Removes an item from the dictionary." msgstr "" # @param [#to_s] id #: ../lib/discorb/dictionary.rb:50 msgid "The ID of the item to remove." msgstr "" # Discorb::Dictionary#[] # Discorb::Dictionary#get #: ../lib/discorb/dictionary.rb:55 #: ../lib/discorb/dictionary.rb:116 msgid "Get an item from the dictionary." msgstr "" # @overload #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 msgid "tag|overload|get" msgstr "" # @param [Integer] index #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 msgid "The index of the item." msgstr "" # @return [Object] #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 msgid "The item." msgstr "" # @return [nil] #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 msgid "if the item was not found." msgstr "" # @return [nil] #: ../lib/discorb/dictionary.rb:67 #: ../lib/discorb/dictionary.rb:115 msgid "if the item is not found." msgstr "" # Discorb::Dictionary#values #: ../lib/discorb/dictionary.rb:77 msgid "Returns the values of the dictionary." msgstr "" # @return [Array] #: ../lib/discorb/dictionary.rb:81 msgid "The values of the dictionary." msgstr "" # Discorb::Dictionary#has? #: ../lib/discorb/dictionary.rb:86 msgid "Checks if the dictionary has an ID." msgstr "" # @return [Boolean] #: ../lib/discorb/dictionary.rb:92 msgid "`true` if the dictionary has the ID, `false` otherwise." msgstr "" # @param [#to_s] id #: ../lib/discorb/dictionary.rb:92 msgid "The ID to check." msgstr "" # Discorb::Embed #: ../lib/discorb/embed.rb:5 msgid "Represents an embed of discord." msgstr "" # @param [String] title # @return [String, nil] #: ../lib/discorb/embed.rb:9 #: ../lib/discorb/embed.rb:47 msgid "The title of embed." msgstr "" # @param [String] description # @return [String, nil] #: ../lib/discorb/embed.rb:11 #: ../lib/discorb/embed.rb:47 msgid "The description of embed." msgstr "" # @param [String] url # @return [String, nil] #: ../lib/discorb/embed.rb:13 #: ../lib/discorb/embed.rb:47 msgid "The url of embed." msgstr "" # @param [Time] timestamp # @return [Time, nil] #: ../lib/discorb/embed.rb:15 #: ../lib/discorb/embed.rb:47 msgid "The timestamp of embed." msgstr "" # @param [Discorb::Color] color # @return [Discorb::Color, nil] #: ../lib/discorb/embed.rb:17 #: ../lib/discorb/embed.rb:47 msgid "The color of embed." msgstr "" # @return [Discorb::Embed::Author, nil] #: ../lib/discorb/embed.rb:19 msgid "The author of embed." msgstr "" # @param [Array<Discorb::Embed::Field>] fields # @return [Array<Discorb::Embed::Field>] #: ../lib/discorb/embed.rb:21 #: ../lib/discorb/embed.rb:47 msgid "The fields of embed." msgstr "" # @param [Discorb::Embed::Footer] footer # @return [Discorb::Embed::Footer, nil] #: ../lib/discorb/embed.rb:23 #: ../lib/discorb/embed.rb:47 msgid "The footer of embed." msgstr "" # @return [Symbol] #: ../lib/discorb/embed.rb:25 msgid "The type of embed." msgstr "" # @param [Discorb::Embed::Thumbnail, String] thumbnail # @return [Discorb::Embed::Thumbnail] #: ../lib/discorb/embed.rb:26 #: ../lib/discorb/embed.rb:28 #: ../lib/discorb/embed.rb:47 msgid "The thumbnail of embed." msgstr "" # @param [Discorb::Embed::Image, String] image # @return [Discorb::Embed::Image] #: ../lib/discorb/embed.rb:26 #: ../lib/discorb/embed.rb:28 #: ../lib/discorb/embed.rb:47 msgid "The image of embed." msgstr "" # Discorb::Embed#initialize #: ../lib/discorb/embed.rb:34 msgid "Initialize a new Embed object." msgstr "" # @param [Discorb::Embed::Image, String] # @param [Discorb::Image] #: ../lib/discorb/embed.rb:47 #: ../lib/discorb/guild.rb:332 msgid "tag|param|image" msgstr "" # @param [Discorb::Embed::Author] #: ../lib/discorb/embed.rb:47 msgid "tag|param|author" msgstr "" # @param [Discorb::Embed::Author] author #: ../lib/discorb/embed.rb:47 msgid "The author field of embed." msgstr "" # @param [Array<Discorb::Embed::Field>] #: ../lib/discorb/embed.rb:47 msgid "tag|param|fields" msgstr "" # @param [Discorb::Embed::Footer] #: ../lib/discorb/embed.rb:47 msgid "tag|param|footer" msgstr "" # @param [Time] #: ../lib/discorb/embed.rb:47 msgid "tag|param|timestamp" msgstr "" # @param [Discorb::Embed::Thumbnail, String] #: ../lib/discorb/embed.rb:47 msgid "tag|param|thumbnail" msgstr "" # @return [Embed] #: ../lib/discorb/embed.rb:47 msgid "a new instance of Embed" msgstr "" # Discorb::Embed#to_hash #: ../lib/discorb/embed.rb:94 msgid "Convert embed to hash." msgstr "" # @see #: ../lib/discorb/embed.rb:99 msgid "tag|see|https://discord.com/developers/docs/resources/channel#embed-object-embed-structure" msgstr "" # @see https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure # @see https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure # @see https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure # @see https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure # @see https://discord.com/developers/docs/resources/channel#embed-object-embed-structure # @see https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure #: ../lib/discorb/embed.rb:99 #: ../lib/discorb/embed.rb:144 #: ../lib/discorb/embed.rb:176 #: ../lib/discorb/embed.rb:214 #: ../lib/discorb/embed.rb:262 #: ../lib/discorb/embed.rb:306 msgid "Offical Discord API Docs" msgstr "" # @return [Hash] #: ../lib/discorb/embed.rb:99 msgid "Converted embed." msgstr "" # Discorb::Embed::Author #: ../lib/discorb/embed.rb:115 msgid "Represents an author of embed." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/embed.rb:119 #: ../lib/discorb/embed.rb:132 msgid "The name of author." msgstr "" # @param [String] url # @return [String, nil] #: ../lib/discorb/embed.rb:121 #: ../lib/discorb/embed.rb:132 msgid "The url of author." msgstr "" # @param [String] icon # @return [String, nil] #: ../lib/discorb/embed.rb:123 #: ../lib/discorb/embed.rb:132 msgid "The icon url of author." msgstr "" # Discorb::Embed::Author#initialize #: ../lib/discorb/embed.rb:126 msgid "Initialize a new Author object." msgstr "" # @return [Author] #: ../lib/discorb/embed.rb:132 #: ../lib/discorb/webhook.rb:374 msgid "a new instance of Author" msgstr "" # @param [Discorb::Image, Discorb::UnicodeEmoji] # @param [String] #: ../lib/discorb/embed.rb:132 #: ../lib/discorb/embed.rb:165 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "tag|param|icon" msgstr "" # Discorb::Embed::Author#to_hash #: ../lib/discorb/embed.rb:139 msgid "Convert author to hash." msgstr "" # @see #: ../lib/discorb/embed.rb:144 msgid "tag|see|https://discord.com/developers/docs/resources/channel#embed-object-embed-author-structure" msgstr "" # @return [Hash] #: ../lib/discorb/embed.rb:144 msgid "Converted author." msgstr "" # Discorb::Embed::Footer #: ../lib/discorb/embed.rb:154 msgid "Represemts a footer of embed." msgstr "" # @param value #: ../lib/discorb/embed.rb:157 msgid "the value to set the attribute icon to." msgstr "" # @param value #: ../lib/discorb/embed.rb:157 msgid "the value to set the attribute text to." msgstr "" # Discorb::Embed::Footer#text #: ../lib/discorb/embed.rb:158 msgid "Returns the value of attribute text." msgstr "" # Discorb::Embed::Footer#icon= #: ../lib/discorb/embed.rb:158 msgid "Sets the attribute icon" msgstr "" # Discorb::Embed::Footer#text= #: ../lib/discorb/embed.rb:158 msgid "Sets the attribute text" msgstr "" # Discorb::Embed::Footer#icon #: ../lib/discorb/embed.rb:158 msgid "Returns the value of attribute icon." msgstr "" # Discorb::Embed::Footer#initialize #: ../lib/discorb/embed.rb:160 msgid "Initialize a new Footer object." msgstr "" # @param [String] icon #: ../lib/discorb/embed.rb:165 msgid "The icon url of footer." msgstr "" # @param [String] #: ../lib/discorb/embed.rb:165 msgid "tag|param|text" msgstr "" # @param [String] text #: ../lib/discorb/embed.rb:165 msgid "The text of footer." msgstr "" # @return [Footer] #: ../lib/discorb/embed.rb:165 msgid "a new instance of Footer" msgstr "" # Discorb::Embed::Footer#to_hash #: ../lib/discorb/embed.rb:171 msgid "Convert footer to hash." msgstr "" # @see #: ../lib/discorb/embed.rb:176 msgid "tag|see|https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure" msgstr "" # @return [Hash] #: ../lib/discorb/embed.rb:176 msgid "Converted footer." msgstr "" # Discorb::Embed::Field #: ../lib/discorb/embed.rb:185 msgid "Represents a field of embed." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/embed.rb:189 #: ../lib/discorb/embed.rb:202 msgid "The name of field." msgstr "" # @param [String] value # @return [String] #: ../lib/discorb/embed.rb:191 #: ../lib/discorb/embed.rb:202 msgid "The value of field." msgstr "" # @param [Boolean] inline # @return [Boolean] #: ../lib/discorb/embed.rb:193 #: ../lib/discorb/embed.rb:202 msgid "Whether the field is inline." msgstr "" # Discorb::Embed::Field#initialize #: ../lib/discorb/embed.rb:196 msgid "Initialize a new Field object." msgstr "" # @return [Field] #: ../lib/discorb/embed.rb:202 msgid "a new instance of Field" msgstr "" # @param [Boolean] #: ../lib/discorb/embed.rb:202 msgid "tag|param|inline" msgstr "" # Discorb::Embed::Field#to_hash #: ../lib/discorb/embed.rb:209 msgid "Convert field to hash." msgstr "" # @return [Hash] #: ../lib/discorb/embed.rb:214 msgid "Converted field." msgstr "" # @see #: ../lib/discorb/embed.rb:214 msgid "tag|see|https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure" msgstr "" # Discorb::Embed::Image #: ../lib/discorb/embed.rb:224 msgid "Represents an image of embed." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:228 msgid "The url of image." msgstr "" # @return [nil] #: ../lib/discorb/embed.rb:231 #: ../lib/discorb/embed.rb:234 #: ../lib/discorb/embed.rb:237 msgid "The Image object wasn't created from gateway." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:231 msgid "The proxy url of image." msgstr "" # @return [Integer] #: ../lib/discorb/embed.rb:234 msgid "The height of image." msgstr "" # @return [Integer] #: ../lib/discorb/embed.rb:237 msgid "The width of image." msgstr "" # Discorb::Embed::Image#initialize #: ../lib/discorb/embed.rb:240 msgid "Initialize a new Image object." msgstr "" # @param [String] url #: ../lib/discorb/embed.rb:244 msgid "URL of image." msgstr "" # @return [Image] #: ../lib/discorb/embed.rb:244 #: ../lib/discorb/image.rb:17 msgid "a new instance of Image" msgstr "" # Discorb::Embed::Image#to_hash #: ../lib/discorb/embed.rb:257 msgid "Convert image to hash for sending." msgstr "" # @see #: ../lib/discorb/embed.rb:262 msgid "tag|see|https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure" msgstr "" # @return [Hash] #: ../lib/discorb/embed.rb:262 msgid "Converted image." msgstr "" # Discorb::Embed::Thumbnail #: ../lib/discorb/embed.rb:268 msgid "Represents a thumbnail of embed." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:272 msgid "The url of thumbnail." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:275 msgid "The proxy url of thumbnail." msgstr "" # @return [nil] #: ../lib/discorb/embed.rb:275 #: ../lib/discorb/embed.rb:278 #: ../lib/discorb/embed.rb:281 msgid "The Thumbnail object wasn't created from gateway." msgstr "" # @return [Integer] #: ../lib/discorb/embed.rb:278 msgid "The height of thumbnail." msgstr "" # @return [Integer] #: ../lib/discorb/embed.rb:281 msgid "The width of thumbnail." msgstr "" # Discorb::Embed::Thumbnail#initialize #: ../lib/discorb/embed.rb:284 msgid "Initialize a new Thumbnail object." msgstr "" # @param [String] url #: ../lib/discorb/embed.rb:288 msgid "URL of thumbnail." msgstr "" # @return [Thumbnail] #: ../lib/discorb/embed.rb:288 msgid "a new instance of Thumbnail" msgstr "" # Discorb::Embed::Thumbnail#to_hash #: ../lib/discorb/embed.rb:301 msgid "Convert thumbnail to hash for sending." msgstr "" # @see #: ../lib/discorb/embed.rb:306 msgid "tag|see|https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure" msgstr "" # @return [Hash] #: ../lib/discorb/embed.rb:306 msgid "Converted thumbnail." msgstr "" # Discorb::Embed::Video #: ../lib/discorb/embed.rb:312 msgid "Represents a video of embed." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:316 msgid "The url of video." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:318 msgid "The proxy url of video." msgstr "" # @return [Integer] #: ../lib/discorb/embed.rb:320 msgid "The height of video." msgstr "" # @return [Integer] #: ../lib/discorb/embed.rb:322 msgid "The width of video." msgstr "" # @return [Video] #: ../lib/discorb/embed.rb:325 msgid "a new instance of Video" msgstr "" # Discorb::Embed::Provider #: ../lib/discorb/embed.rb:334 msgid "Represents a provider of embed." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:338 msgid "The name of provider." msgstr "" # @return [String] #: ../lib/discorb/embed.rb:340 msgid "The url of provider." msgstr "" # @return [Provider] #: ../lib/discorb/embed.rb:343 msgid "a new instance of Provider" msgstr "" # Discorb::Emoji #: ../lib/discorb/emoji.rb:7 msgid "Represents a Discord emoji." msgstr "" # Discorb::CustomEmoji #: ../lib/discorb/emoji.rb:23 msgid "Represents a custom emoji in discord." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/emoji.rb:25 #: ../lib/discorb/emoji.rb:147 msgid "The ID of the emoji." msgstr "" # @param [#to_s] name # @return [String] #: ../lib/discorb/emoji.rb:27 #: ../lib/discorb/emoji.rb:149 #: ../lib/discorb/guild.rb:332 msgid "The name of the emoji." msgstr "" # @return [Array<Discorb::Role>] #: ../lib/discorb/emoji.rb:29 msgid "The roles that can use this emoji." msgstr "" # @return [Discorb::User] #: ../lib/discorb/emoji.rb:31 msgid "The user that created this emoji." msgstr "" # @return [Boolean] #: ../lib/discorb/emoji.rb:33 msgid "Whether the emoji requires colons." msgstr "" # @return [Boolean] #: ../lib/discorb/emoji.rb:35 #: ../lib/discorb/emoji.rb:36 msgid "whether the emoji is managed by integration (ex: Twitch)." msgstr "" # @return [Boolean] #: ../lib/discorb/emoji.rb:38 #: ../lib/discorb/emoji.rb:39 msgid "whether the emoji requires colons." msgstr "" # @return [Boolean] #: ../lib/discorb/emoji.rb:41 #: ../lib/discorb/emoji.rb:42 msgid "whether the emoji is available." msgstr "" # @return [Boolean] #: ../lib/discorb/emoji.rb:44 #: ../lib/discorb/emoji.rb:73 #: ../lib/discorb/emoji.rb:77 msgid "whether or not this emoji is restricted to certain roles." msgstr "" # @return [CustomEmoji] #: ../lib/discorb/emoji.rb:48 msgid "a new instance of CustomEmoji" msgstr "" # Discorb::CustomEmoji#to_s # Discorb::PartialEmoji#to_s #: ../lib/discorb/emoji.rb:56 #: ../lib/discorb/emoji.rb:176 msgid "Format the emoji for sending." msgstr "" # @return [String] #: ../lib/discorb/emoji.rb:60 #: ../lib/discorb/emoji.rb:69 #: ../lib/discorb/emoji.rb:167 #: ../lib/discorb/emoji.rb:180 #: ../lib/discorb/emoji.rb:222 msgid "the formatted emoji." msgstr "" # Discorb::CustomEmoji#to_uri # Discorb::PartialEmoji#to_uri # Discorb::UnicodeEmoji#to_uri #: ../lib/discorb/emoji.rb:65 #: ../lib/discorb/emoji.rb:163 #: ../lib/discorb/emoji.rb:218 msgid "Format the emoji for URI." msgstr "" # Discorb::CustomEmoji#edit # Discorb::CustomEmoji#modify #: ../lib/discorb/emoji.rb:84 #: ../lib/discorb/emoji.rb:106 msgid "Edit the emoji." msgstr "" # @param [String] name #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 msgid "The new name of the emoji." msgstr "" # @param [Array<Discorb::Role>] # @param [Boolean, Array<Discorb::Role>] #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 #: ../lib/discorb/guild.rb:332 #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 #: ../lib/discorb/message.rb:25 msgid "tag|param|roles" msgstr "" # @param [Array<Discorb::Role>] roles #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 msgid "The new roles that can use this emoji." msgstr "" # @param [String] reason #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 msgid "The reason for editing the emoji." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/emoji.rb:95 #: ../lib/discorb/emoji.rb:105 msgid "The edited emoji." msgstr "" # Discorb::CustomEmoji#delete! # Discorb::CustomEmoji#destroy! #: ../lib/discorb/emoji.rb:108 #: ../lib/discorb/emoji.rb:125 msgid "Delete the emoji." msgstr "" # @return [Async::Task<self>] #: ../lib/discorb/emoji.rb:116 #: ../lib/discorb/emoji.rb:124 msgid "The deleted emoji." msgstr "" # @param [String] reason #: ../lib/discorb/emoji.rb:116 #: ../lib/discorb/emoji.rb:124 msgid "The reason for deleting the emoji." msgstr "" # Discorb::PartialEmoji #: ../lib/discorb/emoji.rb:143 msgid "Represents a partial custom emoji in discord." msgstr "" # @return [Boolean] #: ../lib/discorb/emoji.rb:151 #: ../lib/discorb/emoji.rb:152 msgid "Whether the emoji is deleted." msgstr "" # @return [PartialEmoji] #: ../lib/discorb/emoji.rb:155 msgid "a new instance of PartialEmoji" msgstr "" # Discorb::UnicodeEmoji #: ../lib/discorb/emoji.rb:186 msgid "Represents a unicode emoji (default emoji) in discord." msgstr "" # @return [String] #: ../lib/discorb/emoji.rb:190 msgid "The name of the emoji. (e.g. :grinning:)" msgstr "" # @return [String] #: ../lib/discorb/emoji.rb:192 msgid "The unicode value of the emoji. (e.g. U+1F600)" msgstr "" # @return [Integer] #: ../lib/discorb/emoji.rb:194 msgid "The skin tone of the emoji." msgstr "" # @return [UnicodeEmoji] #: ../lib/discorb/emoji.rb:197 msgid "a new instance of UnicodeEmoji" msgstr "" # @return [String] #: ../lib/discorb/emoji.rb:213 msgid "The unicode string of the emoji." msgstr "" # Discorb::EmojiTable #: ../lib/discorb/emoji_table.rb:5 msgid "A table of emoji names and their unicode values." msgstr "" # Discorb::EmojiTable::DISCORD_TO_UNICODE #: ../lib/discorb/emoji_table.rb:9 msgid "A hash of Discord's emoji names to their unicode characters." msgstr "" # Discorb::EmojiTable::UNICODE_TO_DISCORD #: ../lib/discorb/emoji_table.rb:2045 msgid "A hash of unicode charcaters to their Discord's emoji names." msgstr "" # Discorb::DiscorbError #: ../lib/discorb/error.rb:5 msgid "Error class for Discorb." msgstr "" # Discorb::HTTPError #: ../lib/discorb/error.rb:37 msgid "Represents a HTTP error." msgstr "" # @see #: ../lib/discorb/error.rb:43 msgid "tag|see|https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes" msgstr "" # @return [String] #: ../lib/discorb/error.rb:43 msgid "the JSON response code." msgstr "" # @return [Net::HTTPResponse] #: ../lib/discorb/error.rb:45 msgid "the HTTP response." msgstr "" # @return [HTTPError] #: ../lib/discorb/error.rb:48 msgid "a new instance of HTTPError" msgstr "" # Discorb::BadRequestError #: ../lib/discorb/error.rb:56 msgid "Represents a 400 error." msgstr "" # @return [BadRequestError] #: ../lib/discorb/error.rb:60 msgid "a new instance of BadRequestError" msgstr "" # Discorb::UnauthorizedError #: ../lib/discorb/error.rb:74 msgid "Represents a 401 error." msgstr "" # Discorb::ForbiddenError #: ../lib/discorb/error.rb:80 msgid "Represents a 403 error." msgstr "" # Discorb::NotFoundError #: ../lib/discorb/error.rb:86 msgid "Represents a 404 error." msgstr "" # Discorb::CloudFlareBanError #: ../lib/discorb/error.rb:92 msgid "Represents a error because of a cloudflare ban." msgstr "" # @return [CloudFlareBanError] #: ../lib/discorb/error.rb:95 msgid "a new instance of CloudFlareBanError" msgstr "" # Discorb::ClientError #: ../lib/discorb/error.rb:108 msgid "Represents a error in client-side." msgstr "" # Discorb::TimeoutError #: ../lib/discorb/error.rb:114 msgid "Represents a timeout error." msgstr "" # Discorb::NotSupportedWarning #: ../lib/discorb/error.rb:120 msgid "Represents a warning." msgstr "" # @return [NotSupportedWarning] #: ../lib/discorb/error.rb:123 msgid "a new instance of NotSupportedWarning" msgstr "" # @return [ScheduledEvent] #: ../lib/discorb/event.rb:19 msgid "a new instance of ScheduledEvent" msgstr "" # Discorb::ScheduledEvent::Metadata #: ../lib/discorb/event.rb:26 msgid "Represents the metadata of the event." msgstr "" # @return [String, nil] #: ../lib/discorb/event.rb:30 msgid "The location of the event. Only present if the event is a external event." msgstr "" # @return [Metadata] #: ../lib/discorb/event.rb:32 msgid "a new instance of Metadata" msgstr "" # @param [String] description # @return [String] #: ../lib/discorb/event.rb:42 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The description of the event." msgstr "" # @return [Time] #: ../lib/discorb/event.rb:45 #: ../lib/discorb/event.rb:46 #: ../lib/discorb/event.rb:47 msgid "The time the event starts." msgstr "" # @return [Time] #: ../lib/discorb/event.rb:49 #: ../lib/discorb/event.rb:50 #: ../lib/discorb/event.rb:51 msgid "The time the event ends." msgstr "" # @return [:guild_only] #: ../lib/discorb/event.rb:53 msgid "The privacy level of the event." msgstr "" # @param [:active, :completed, :canceled] status # @return [:scheduled, :active, :completed, :canceled] #: ../lib/discorb/event.rb:55 #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 msgid "The status of the event." msgstr "" # @return [:stage_instance, :voice, :external] #: ../lib/discorb/event.rb:57 msgid "The type of the event." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/event.rb:59 msgid "The ID of the entity the event is for." msgstr "" # @return [Integer] #: ../lib/discorb/event.rb:63 msgid "The user count of the event." msgstr "" # @return [Discorb::Channel, nil] #: ../lib/discorb/event.rb:75 #: ../lib/discorb/event.rb:79 msgid "The channel of the event.\n" "Only present if the event will do in stage instance or voice channel." msgstr "" # @return [Discorb::User] #: ../lib/discorb/event.rb:75 #: ../lib/discorb/event.rb:83 msgid "The user who created the event.#" msgstr "" # @return [Range<Time>] #: ../lib/discorb/event.rb:75 #: ../lib/discorb/event.rb:87 msgid "The time range of the event." msgstr "" # Discorb::Guild#create_scheduled_event # Discorb::ScheduledEvent#edit # Discorb::ScheduledEvent#modify #: ../lib/discorb/event.rb:92 #: ../lib/discorb/event.rb:171 #: ../lib/discorb/guild.rb:213 msgid "Create a scheduled event for the guild." msgstr "" # @param [Time] start_time #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The start time of the event." msgstr "" # @param [Time] #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "tag|param|start_time" msgstr "" # @param [String, nil] #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "tag|param|location" msgstr "" # @param [:stage_instance, :voice, :external] type #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The type of event to create." msgstr "" # @param [:guild_only] # @param [:public, :guild_only] #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 msgid "tag|param|privacy_level" msgstr "" # @param [String, nil] location #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The location of the event. Defaults to `nil`." msgstr "" # @see #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 msgid "tag|see|Event#complete" msgstr "" # @see #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 msgid "tag|see|Event#cancel" msgstr "" # @param [Time, nil] #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "tag|param|end_time" msgstr "" # @see #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 msgid "tag|see|Event#start" msgstr "" # @param [:guild_only] privacy_level #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The privacy level of the event. This must be `:guild_only`." msgstr "" # @param [Time, nil] end_time #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The end time of the event. Defaults to `nil`." msgstr "" # @param [Boolean] # @param [Discorb::Channel, Discorb::Snowflake, nil] # @param [Discorb::GuildChannel] # @param [Discorb::StageChannel] # @param [Discorb::TextChannel] #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1319 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/message.rb:258 #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 msgid "tag|param|channel" msgstr "" # @param ["f", "F", "d", "D", "t", "T", "R"] # @param [:playing, :streaming, :listening, :watching, :competing] # @param [:stage_instance, :voice, :external] # @param [String] #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/extend.rb:11 #: ../lib/discorb/gateway_requests.rb:23 #: ../lib/discorb/guild.rb:226 #: ../lib/discorb/image.rb:17 msgid "tag|param|type" msgstr "" # @param [Discorb::Channel, Discorb::Snowflake, nil] channel #: ../lib/discorb/event.rb:110 #: ../lib/discorb/event.rb:170 #: ../lib/discorb/guild.rb:226 msgid "The channel to run the event in." msgstr "" # Discorb::ScheduledEvent#start #: ../lib/discorb/event.rb:173 msgid "Starts the event. Shortcut for `edit(status: :active)`." msgstr "" # Discorb::ScheduledEvent#complete # Discorb::ScheduledEvent#finish #: ../lib/discorb/event.rb:180 #: ../lib/discorb/event.rb:187 msgid "Completes the event. Shortcut for `edit(status: :completed)`." msgstr "" # Discorb::ScheduledEvent#cancel #: ../lib/discorb/event.rb:189 msgid "Cancels the event. Shortcut for `edit(status: :canceled)`." msgstr "" # Discorb::ScheduledEvent#delete! # Discorb::ScheduledEvent#destroy! #: ../lib/discorb/event.rb:196 #: ../lib/discorb/event.rb:207 msgid "Deletes the event." msgstr "" # Discorb::ScheduledEvent#fetch_members # Discorb::ScheduledEvent#fetch_users #: ../lib/discorb/event.rb:209 #: ../lib/discorb/event.rb:251 msgid "Fetches the event users." msgstr "" # @param [#to_s] before #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "The ID of the user to stop fetching at. Defaults to `nil`." msgstr "" # @param [Boolean] #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "tag|param|with_member" msgstr "" # @param [Boolean] with_member #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "Whether to include the member object of the event. Defaults to `false`.\n" "This should be used for manual fetching of members." msgstr "" # @param [#to_s] # @param [Discorb::Snowflake, nil] # @param [Discorb::Snowflake] # @param [Integer] #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 #: ../lib/discorb/message.rb:423 #: ../lib/discorb/modules.rb:132 msgid "tag|param|after" msgstr "" # @note #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "You can fetch all of members by not specifying a parameter." msgstr "" # @param [#to_s] after #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "The ID of the user to start fetching from. Defaults to `nil`." msgstr "" # @param [Integer] limit #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "The maximum number of users to fetch. Defaults to `100`." msgstr "" # @return [Array<Discorb::Member>] #: ../lib/discorb/event.rb:223 #: ../lib/discorb/event.rb:250 msgid "The event users." msgstr "" # Discorb::ScheduledEvent.status #: ../lib/discorb/event.rb:274 msgid "Returns the value of attribute status." msgstr "" # Discorb::ScheduledEvent.entity_type #: ../lib/discorb/event.rb:274 msgid "Returns the value of attribute entity_type." msgstr "" # Discorb::ScheduledEvent.privacy_level # Discorb::StageInstance.privacy_level #: ../lib/discorb/event.rb:274 #: ../lib/discorb/voice_state.rb:217 msgid "Returns the value of attribute privacy_level." msgstr "" # Discorb::EventHandler #: ../lib/discorb/event_handler.rb:5 msgid "Represents a event handler.\n" "This class shouldn't be instantiated directly.\n" "Use {Client#on} instead." msgstr "" # @return [Proc] #: ../lib/discorb/event_handler.rb:11 msgid "the block to be called." msgstr "" # @return [Symbol] #: ../lib/discorb/event_handler.rb:13 msgid "the event id." msgstr "" # @return [Hash] #: ../lib/discorb/event_handler.rb:15 msgid "the event metadata." msgstr "" # @return [Boolean] #: ../lib/discorb/event_handler.rb:17 #: ../lib/discorb/event_handler.rb:18 msgid "whether the event is once or not." msgstr "" # @return [EventHandler] #: ../lib/discorb/event_handler.rb:20 msgid "a new instance of EventHandler" msgstr "" # Time#to_df #: ../lib/discorb/extend.rb:5 msgid "Format a time object to a Discord formatted string." msgstr "" # @param ["f", "F", "d", "D", "t", "T", "R"] type #: ../lib/discorb/extend.rb:11 msgid "The format to use." msgstr "" # @return [String] #: ../lib/discorb/extend.rb:11 msgid "The formatted time." msgstr "" # Discorb::Extension #: ../lib/discorb/extension.rb:5 msgid "Abstract class to make extension.\n" "Include from this module to make your own extension." msgstr "" # @see #: ../lib/discorb/extension.rb:10 msgid "tag|see|file:docs/extension.md" msgstr "" # Discorb::Extension::ClassMethods#event #: ../lib/discorb/extension.rb:35 msgid "Define a new event." msgstr "" # @param [Symbol] id #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 msgid "The id of the event. Used to delete the event." msgstr "" # @param [Hash] metadata #: ../lib/discorb/extension.rb:43 #: ../lib/discorb/extension.rb:62 msgid "Other metadata." msgstr "" # Discorb::Extension::ClassMethods#once_event #: ../lib/discorb/extension.rb:53 msgid "Define a new once event." msgstr "" # @return [Hash{Symbol => Array<Discorb::EventHandler>}] #: ../lib/discorb/extension.rb:67 msgid "The events of the extension." msgstr "" # @return [Array<Discorb::ApplicationCommand::Command>] #: ../lib/discorb/extension.rb:69 msgid "The commands of the extension." msgstr "" # Discorb::Attachment #: ../lib/discorb/file.rb:8 msgid "Represents a attachment file." msgstr "" # @return [#read] #: ../lib/discorb/file.rb:12 msgid "The file content." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/file.rb:14 msgid "The attachment id." msgstr "" # @return [String] #: ../lib/discorb/file.rb:16 msgid "The attachment filename." msgstr "" # @return [String] #: ../lib/discorb/file.rb:18 msgid "The attachment content type." msgstr "" # @return [Integer] #: ../lib/discorb/file.rb:20 msgid "The attachment size in bytes." msgstr "" # @return [String] #: ../lib/discorb/file.rb:22 msgid "The attachment url." msgstr "" # @return [String] #: ../lib/discorb/file.rb:24 msgid "The attachment proxy url." msgstr "" # @return [nil] #: ../lib/discorb/file.rb:27 #: ../lib/discorb/file.rb:30 msgid "If the attachment is not an image." msgstr "" # @return [Integer] #: ../lib/discorb/file.rb:27 msgid "The image height." msgstr "" # @return [Integer] #: ../lib/discorb/file.rb:30 msgid "The image width." msgstr "" # @return [Boolean] #: ../lib/discorb/file.rb:32 #: ../lib/discorb/file.rb:47 msgid "whether the file is an image." msgstr "" # @return [Attachment] #: ../lib/discorb/file.rb:36 msgid "a new instance of Attachment" msgstr "" # Discorb::Attachment #: ../lib/discorb/file.rb:53 msgid "Represents a file to send as an attachment." msgstr "" # @param [#read] io # @return [#read] #: ../lib/discorb/file.rb:57 #: ../lib/discorb/file.rb:71 msgid "The IO of the file." msgstr "" # @param [String] filename # @return [String] #: ../lib/discorb/file.rb:59 #: ../lib/discorb/file.rb:71 msgid "The filename of the file. If not set, path or object_id of the IO is used." msgstr "" # @param [String] content_type # @return [String] #: ../lib/discorb/file.rb:61 #: ../lib/discorb/file.rb:87 msgid "The content type of the file. If not set, it is guessed from the filename." msgstr "" # Discorb::Attachment#initialize #: ../lib/discorb/file.rb:64 msgid "Creates a new file from IO." msgstr "" # @param [String] content_type #: ../lib/discorb/file.rb:71 msgid "The content type of the file. If not set, it is guessed from the filename.\n" "If failed to guess, it is set to `application/octet-stream`." msgstr "" # @return [File] #: ../lib/discorb/file.rb:71 msgid "a new instance of File" msgstr "" # @param [#read] #: ../lib/discorb/file.rb:71 msgid "tag|param|io" msgstr "" # @param [String] #: ../lib/discorb/file.rb:71 #: ../lib/discorb/file.rb:87 msgid "tag|param|filename" msgstr "" # @param [String] #: ../lib/discorb/file.rb:71 #: ../lib/discorb/file.rb:87 msgid "tag|param|content_type" msgstr "" # Discorb::Attachment.from_string #: ../lib/discorb/file.rb:79 msgid "Creates a new file from a string." msgstr "" # @param [String] #: ../lib/discorb/file.rb:87 msgid "tag|param|string" msgstr "" # @param [String] string #: ../lib/discorb/file.rb:87 msgid "The string to create the file from." msgstr "" # @param [String] filename #: ../lib/discorb/file.rb:87 msgid "The filename of the file. object_id of the string is used if not set." msgstr "" # @return [File] #: ../lib/discorb/file.rb:87 msgid "The new file." msgstr "" # Discorb::Flag #: ../lib/discorb/flag.rb:5 msgid "Represents a flag." msgstr "" # @return [Hash{Symbol => Boolean}] #: ../lib/discorb/flag.rb:10 #: ../lib/discorb/flag.rb:11 msgid "the values of the flag." msgstr "" # @return [Integer] #: ../lib/discorb/flag.rb:13 msgid "the value of the flag." msgstr "" # Discorb::Flag#initialize #: ../lib/discorb/flag.rb:18 msgid "Initialize the flag." msgstr "" # @return [Flag] #: ../lib/discorb/flag.rb:21 msgid "a new instance of Flag" msgstr "" # @param [Integer] value #: ../lib/discorb/flag.rb:21 msgid "The value of the flag." msgstr "" # @note #: ../lib/discorb/flag.rb:21 msgid "This is usually called by the subclass." msgstr "" # Discorb::Flag#method_missing # Discorb::Intents#method_missing # Discorb::PermissionOverwrite#method_missing #: ../lib/discorb/flag.rb:30 #: ../lib/discorb/intents.rb:83 #: ../lib/discorb/permission.rb:237 msgid "Returns the value of the flag." msgstr "" # Discorb::Flag#+ # Discorb::Flag#| #: ../lib/discorb/flag.rb:45 #: ../lib/discorb/flag.rb:56 msgid "Union of two flags." msgstr "" # @param [Discorb::Flag] other #: ../lib/discorb/flag.rb:51 #: ../lib/discorb/flag.rb:55 #: ../lib/discorb/flag.rb:64 #: ../lib/discorb/flag.rb:75 #: ../lib/discorb/flag.rb:86 msgid "The other flag." msgstr "" # @return [Discorb::Flag] #: ../lib/discorb/flag.rb:51 #: ../lib/discorb/flag.rb:55 msgid "The union of the two flags." msgstr "" # Discorb::Flag#- #: ../lib/discorb/flag.rb:58 msgid "Subtraction of two flags." msgstr "" # @return [Discorb::Flag] #: ../lib/discorb/flag.rb:64 msgid "The subtraction of the two flags." msgstr "" # Discorb::Flag#& #: ../lib/discorb/flag.rb:69 msgid "Intersection of two flags." msgstr "" # @return [Discorb::Flag] #: ../lib/discorb/flag.rb:75 msgid "The intersection of the two flags." msgstr "" # Discorb::Flag#^ #: ../lib/discorb/flag.rb:80 msgid "XOR of two flags." msgstr "" # @return [Discorb::Flag] #: ../lib/discorb/flag.rb:86 msgid "The XOR of the two flags." msgstr "" # Discorb::Flag#~ #: ../lib/discorb/flag.rb:91 msgid "Negation of the flag." msgstr "" # @return [Discorb::Flag] #: ../lib/discorb/flag.rb:95 msgid "The negation of the flag." msgstr "" # @return [Hash{Integer => Symbol}] #: ../lib/discorb/flag.rb:105 msgid "the bits of the flag." msgstr "" # Discorb::Flag.max_value #: ../lib/discorb/flag.rb:108 msgid "Max value of the flag." msgstr "" # @return [Integer] #: ../lib/discorb/flag.rb:112 msgid "the max value of the flag." msgstr "" # Discorb::Gateway #: ../lib/discorb/gateway.rb:11 msgid "A module for Discord Gateway.\n" "This module is internal use only." msgstr "" # Discorb::Gateway::GatewayEvent #: ../lib/discorb/gateway.rb:16 msgid "Represents an event." msgstr "" # @return [GatewayEvent] #: ../lib/discorb/gateway.rb:20 msgid "a new instance of GatewayEvent" msgstr "" # Discorb::Gateway::ReactionEvent #: ../lib/discorb/gateway.rb:26 msgid "Represents a reaction event." msgstr "" # @return [Hash] #: ../lib/discorb/gateway.rb:30 msgid "The raw data of the event." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/gateway.rb:32 #: ../lib/discorb/gateway.rb:33 msgid "The ID of the user who reacted." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/gateway.rb:35 #: ../lib/discorb/gateway.rb:117 #: ../lib/discorb/gateway.rb:166 #: ../lib/discorb/gateway.rb:247 #: ../lib/discorb/message.rb:93 msgid "The ID of the channel the message was sent in." msgstr "" # @param [Discorb::Snowflake] id # @return [Discorb::Snowflake] #: ../lib/discorb/gateway.rb:37 #: ../lib/discorb/gateway.rb:119 #: ../lib/discorb/gateway.rb:168 #: ../lib/discorb/gateway.rb:245 #: ../lib/discorb/gateway.rb:312 #: ../lib/discorb/message.rb:71 #: ../lib/discorb/modules.rb:113 msgid "The ID of the message." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/gateway.rb:39 #: ../lib/discorb/gateway.rb:121 #: ../lib/discorb/gateway.rb:170 #: ../lib/discorb/gateway.rb:249 msgid "The ID of the guild the message was sent in." msgstr "" # @return [Discorb::User] #: ../lib/discorb/gateway.rb:42 msgid "The user who reacted." msgstr "" # @return [Discorb::Channel] #: ../lib/discorb/gateway.rb:45 #: ../lib/discorb/gateway.rb:124 #: ../lib/discorb/gateway.rb:173 #: ../lib/discorb/gateway.rb:271 #: ../lib/discorb/gateway.rb:287 #: ../lib/discorb/gateway.rb:314 #: ../lib/discorb/gateway.rb:330 #: ../lib/discorb/gateway.rb:346 #: ../lib/discorb/gateway.rb:362 #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:226 msgid "The channel the message was sent in." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/gateway.rb:48 #: ../lib/discorb/gateway.rb:127 #: ../lib/discorb/gateway.rb:176 #: ../lib/discorb/gateway.rb:271 #: ../lib/discorb/gateway.rb:291 #: ../lib/discorb/gateway.rb:314 #: ../lib/discorb/gateway.rb:334 #: ../lib/discorb/gateway.rb:346 #: ../lib/discorb/gateway.rb:366 #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:230 msgid "The guild the message was sent in." msgstr "" # @return [Discorb::Message] #: ../lib/discorb/gateway.rb:51 #: ../lib/discorb/gateway.rb:130 #: ../lib/discorb/gateway.rb:179 msgid "The message the reaction was sent in." msgstr "" # @return [Discorb::Member] #: ../lib/discorb/gateway.rb:54 msgid "The member who reacted." msgstr "" # @return [Discorb::Emoji] # @return [Discorb::UnicodeEmoji, Discorb::PartialEmoji] #: ../lib/discorb/gateway.rb:56 #: ../lib/discorb/gateway.rb:181 #: ../lib/discorb/reaction.rb:11 msgid "The emoji that was reacted with." msgstr "" # @return [Discorb::Member, Discorb::User] #: ../lib/discorb/gateway.rb:59 #: ../lib/discorb/gateway.rb:61 #: ../lib/discorb/gateway.rb:62 msgid "The user or member who reacted." msgstr "" # @return [ReactionEvent] #: ../lib/discorb/gateway.rb:65 msgid "a new instance of ReactionEvent" msgstr "" # Discorb::Gateway::ReactionEvent#fetch_message # Discorb::Gateway::ReactionRemoveAllEvent#fetch_message # Discorb::Gateway::ReactionRemoveEmojiEvent#fetch_message #: ../lib/discorb/gateway.rb:96 #: ../lib/discorb/gateway.rb:145 #: ../lib/discorb/gateway.rb:197 msgid "Fetch the message.\n" "If message is cached, it will be returned." msgstr "" # @return [Async::Task<Discorb::Message>] #: ../lib/discorb/gateway.rb:103 #: ../lib/discorb/gateway.rb:152 #: ../lib/discorb/gateway.rb:204 #: ../lib/discorb/gateway.rb:300 #: ../lib/discorb/message.rb:349 #: ../lib/discorb/modules.rb:113 msgid "The message." msgstr "" # @param [Boolean] force #: ../lib/discorb/gateway.rb:103 #: ../lib/discorb/gateway.rb:152 #: ../lib/discorb/gateway.rb:204 msgid "Whether to force fetching the message." msgstr "" # Discorb::Gateway::ReactionRemoveAllEvent #: ../lib/discorb/gateway.rb:113 msgid "Represents a `MESSAGE_REACTION_REMOVE_ALL` event." msgstr "" # @return [ReactionRemoveAllEvent] #: ../lib/discorb/gateway.rb:133 msgid "a new instance of ReactionRemoveAllEvent" msgstr "" # Discorb::Gateway::ReactionRemoveEmojiEvent #: ../lib/discorb/gateway.rb:162 msgid "Represents a `MESSAGE_REACTION_REMOVE_EMOJI` event." msgstr "" # @return [ReactionRemoveEmojiEvent] #: ../lib/discorb/gateway.rb:184 msgid "a new instance of ReactionRemoveEmojiEvent" msgstr "" # Discorb::Gateway::ScheduledEventUserEvent #: ../lib/discorb/gateway.rb:214 msgid "Represents a `GUILD_SCHEDULED_EVENT_USER_ADD` and `GUILD_SCHEDULED_EVENT_USER_REMOVE` event." msgstr "" # @return [Discorb::User] #: ../lib/discorb/gateway.rb:218 msgid "The user that triggered the event." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/gateway.rb:220 msgid "The guild the event was triggered in." msgstr "" # @return [Discorb::ScheduledEvent] #: ../lib/discorb/gateway.rb:222 msgid "The scheduled event." msgstr "" # @return [ScheduledEventUserEvent] #: ../lib/discorb/gateway.rb:224 msgid "a new instance of ScheduledEventUserEvent" msgstr "" # Discorb::Gateway::MessageUpdateEvent #: ../lib/discorb/gateway.rb:236 msgid "Represents a `MESSAGE_UPDATE` event." msgstr "" # @return [Discorb::Message] #: ../lib/discorb/gateway.rb:241 msgid "The message before update." msgstr "" # @return [Discorb::Message] #: ../lib/discorb/gateway.rb:243 msgid "The message after update." msgstr "" # @param [String] content # @return [String] #: ../lib/discorb/gateway.rb:251 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/webhook.rb:145 msgid "The new content of the message." msgstr "" # @return [Time] #: ../lib/discorb/gateway.rb:253 #: ../lib/discorb/message.rb:83 #: ../lib/discorb/message.rb:84 #: ../lib/discorb/message.rb:85 msgid "The time the message was edited." msgstr "" # @return [Boolean] #: ../lib/discorb/gateway.rb:255 msgid "Whether the message pings @everyone." msgstr "" # @return [Array<Discorb::Role>] #: ../lib/discorb/gateway.rb:258 msgid "The roles mentioned in the message." msgstr "" # @return [Array<Discorb::Attachment>] #: ../lib/discorb/gateway.rb:260 msgid "The attachments in the message." msgstr "" # @return [Array<Discorb::Embed>] #: ../lib/discorb/gateway.rb:262 msgid "The embeds in the message." msgstr "" # @return [MessageUpdateEvent] #: ../lib/discorb/gateway.rb:271 msgid "a new instance of MessageUpdateEvent" msgstr "" # Discorb::Gateway::MessageUpdateEvent#fetch_message #: ../lib/discorb/gateway.rb:296 msgid "Fetch the message." msgstr "" # Discorb::Gateway::UnknownDeleteBulkMessage #: ../lib/discorb/gateway.rb:308 msgid "Represents a message but it has only ID." msgstr "" # @return [UnknownDeleteBulkMessage] #: ../lib/discorb/gateway.rb:322 msgid "a new instance of UnknownDeleteBulkMessage" msgstr "" # Discorb::Gateway::InviteDeleteEvent #: ../lib/discorb/gateway.rb:340 msgid "Represents a `INVITE_DELETE` event." msgstr "" # @return [String] #: ../lib/discorb/gateway.rb:344 msgid "The invite code." msgstr "" # @return [InviteDeleteEvent] #: ../lib/discorb/gateway.rb:354 msgid "a new instance of InviteDeleteEvent" msgstr "" # @return [GuildIntegrationsUpdateEvent] #: ../lib/discorb/gateway.rb:372 msgid "a new instance of GuildIntegrationsUpdateEvent" msgstr "" # Discorb::Gateway::TypingStartEvent #: ../lib/discorb/gateway.rb:384 msgid "Represents a `TYPING_START` event." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/gateway.rb:388 msgid "The ID of the channel the user is typing in." msgstr "" # @return [Discorb::Member] #: ../lib/discorb/gateway.rb:391 msgid "The member that is typing." msgstr "" # @return [Discorb::Channel] #: ../lib/discorb/gateway.rb:393 #: ../lib/discorb/gateway.rb:421 msgid "The channel the user is typing in." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/gateway.rb:393 #: ../lib/discorb/gateway.rb:425 msgid "The guild the user is typing in." msgstr "" # @return [Discorb::Member, Discorb::User] #: ../lib/discorb/gateway.rb:393 #: ../lib/discorb/gateway.rb:429 #: ../lib/discorb/gateway.rb:433 msgid "The member or user that started typing." msgstr "" # @return [Discorb::User] #: ../lib/discorb/gateway.rb:393 #: ../lib/discorb/gateway.rb:417 msgid "The user that is typing." msgstr "" # @return [TypingStartEvent] #: ../lib/discorb/gateway.rb:407 msgid "a new instance of TypingStartEvent" msgstr "" # Discorb::Gateway::MessagePinEvent #: ../lib/discorb/gateway.rb:437 msgid "Represents a message pin event." msgstr "" # @return [Discorb::Message] #: ../lib/discorb/gateway.rb:441 msgid "The message that was pinned." msgstr "" # @return [:pinned, :unpinned] #: ../lib/discorb/gateway.rb:443 msgid "The type of event." msgstr "" # @return [Boolean] #: ../lib/discorb/gateway.rb:450 #: ../lib/discorb/gateway.rb:467 msgid "Whether the message was unpinned." msgstr "" # @return [Boolean] #: ../lib/discorb/gateway.rb:450 #: ../lib/discorb/gateway.rb:463 msgid "Whether the message was pinned." msgstr "" # @return [MessagePinEvent] #: ../lib/discorb/gateway.rb:450 msgid "a new instance of MessagePinEvent" msgstr "" # Discorb::Gateway::WebhooksUpdateEvent #: ../lib/discorb/gateway.rb:473 msgid "Represents a `WEBHOOKS_UPDATE` event." msgstr "" # @return [Discorb::Channel] #: ../lib/discorb/gateway.rb:476 #: ../lib/discorb/gateway.rb:495 msgid "The channel where the webhook was updated." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/gateway.rb:476 #: ../lib/discorb/gateway.rb:491 msgid "The guild where the webhook was updated." msgstr "" # @return [WebhooksUpdateEvent] #: ../lib/discorb/gateway.rb:484 msgid "a new instance of WebhooksUpdateEvent" msgstr "" # Discorb::Gateway::Handler #: ../lib/discorb/gateway.rb:501 msgid "A module to handle gateway events." msgstr "" # Discorb::Gateway::RawConnection #: ../lib/discorb/gateway.rb:1130 msgid "A class for connecting websocket with raw bytes data." msgstr "" # @return [RawConnection] #: ../lib/discorb/gateway.rb:1134 msgid "a new instance of RawConnection" msgstr "" # Discorb::Activity #: ../lib/discorb/gateway_requests.rb:5 msgid "Represents an activity for Gateway Command." msgstr "" # Discorb::Activity#initialize #: ../lib/discorb/gateway_requests.rb:17 msgid "Initializes a new Activity." msgstr "" # @return [Activity] #: ../lib/discorb/gateway_requests.rb:23 #: ../lib/discorb/message.rb:677 #: ../lib/discorb/presence.rb:93 msgid "a new instance of Activity" msgstr "" # @param [String] url #: ../lib/discorb/gateway_requests.rb:23 msgid "The URL of the activity." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/gateway_requests.rb:23 #: ../lib/discorb/presence.rb:50 msgid "The name of the activity." msgstr "" # @param [:playing, :streaming, :listening, :watching, :competing] type # @return [Symbol] #: ../lib/discorb/gateway_requests.rb:23 #: ../lib/discorb/message.rb:667 msgid "The type of activity." msgstr "" # Discorb::Activity#to_hash #: ../lib/discorb/gateway_requests.rb:30 msgid "Converts the activity to a hash." msgstr "" # @return [Hash] #: ../lib/discorb/gateway_requests.rb:34 msgid "A hash representation of the activity." msgstr "" # Discorb::Guild #: ../lib/discorb/guild.rb:5 msgid "Represents a guild in the Discord." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/guild.rb:9 msgid "ID of the guild." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:11 #: ../lib/discorb/guild_template.rb:96 #: ../lib/discorb/webhook.rb:255 msgid "The name of the guild." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/guild.rb:13 msgid "The splash of the guild." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/guild.rb:15 msgid "The discovery splash of the guild." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/guild.rb:17 msgid "ID of the guild owner." msgstr "" # @return [Discorb::Permission] #: ../lib/discorb/guild.rb:19 msgid "The bot's permission in the guild." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:21 #: ../lib/discorb/guild_template.rb:98 msgid "The AFK timeout of the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::Role}] #: ../lib/discorb/guild.rb:23 #: ../lib/discorb/guild_template.rb:100 msgid "A dictionary of roles in the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::CustomEmoji}] #: ../lib/discorb/guild.rb:25 msgid "A dictionary of custom emojis in the guild." msgstr "" # @see #: ../lib/discorb/guild.rb:28 msgid "tag|see|https://discord.com/developers/docs/resources/guild#guild-object-guild-features" msgstr "" # @return [Array<Symbol>] #: ../lib/discorb/guild.rb:28 msgid "features that are enabled in the guild." msgstr "" # @return [:none, :elevated] #: ../lib/discorb/guild.rb:30 msgid "The MFA level of the guild." msgstr "" # @return [Discorb::SystemChannelFlag] #: ../lib/discorb/guild.rb:32 #: ../lib/discorb/guild_template.rb:102 msgid "The flag for the system channel." msgstr "" # @return [Time] #: ../lib/discorb/guild.rb:34 msgid "Time that representing when bot has joined the guild." msgstr "" # @return [Boolean] #: ../lib/discorb/guild.rb:36 msgid "Whether the guild is unavailable." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:38 msgid "The amount of members in the guild." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/guild.rb:40 #: ../lib/discorb/webhook.rb:257 msgid "The icon of the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::User => Discorb::VoiceState}] #: ../lib/discorb/guild.rb:42 msgid "A dictionary of voice states in the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::Member}] #: ../lib/discorb/guild.rb:45 msgid "A dictionary of members in the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::GuildChannel}] #: ../lib/discorb/guild.rb:47 #: ../lib/discorb/guild_template.rb:104 msgid "A dictionary of channels in the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::ThreadChannel}] #: ../lib/discorb/guild.rb:49 msgid "A dictionary of threads in the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::User => Discorb::Presence}] #: ../lib/discorb/guild.rb:51 msgid "A dictionary of presence in the guild." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:53 msgid "Number of online members in the guild." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:56 msgid "The vanity invite URL for the guild." msgstr "" # @return [nil] #: ../lib/discorb/guild.rb:56 msgid "If the guild does not have a vanity invite URL." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:58 #: ../lib/discorb/guild_template.rb:106 msgid "The description of the guild." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/guild.rb:61 msgid "The banner of the guild." msgstr "" # @return [nil] #: ../lib/discorb/guild.rb:61 msgid "If the guild does not have a banner." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:63 msgid "The premium tier (Boost Level) of the guild." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:65 msgid "The amount of premium subscriptions (Server Boosts) the guild has." msgstr "" # @return [Symbol] #: ../lib/discorb/guild.rb:68 #: ../lib/discorb/guild_template.rb:109 msgid "The preffered language of the guild." msgstr "" # @note #: ../lib/discorb/guild.rb:68 #: ../lib/discorb/guild_template.rb:109 msgid "This modifies the language code, `-` will be replaced with `_`." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:70 msgid "The maximum amount of users in a video channel." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:72 msgid "The approxmate amount of members in the guild." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:74 msgid "The approxmate amount of non-offline members in the guild." msgstr "" # @return [Discorb::WelcomeScreen] #: ../lib/discorb/guild.rb:76 msgid "The welcome screen of the guild." msgstr "" # @return [:default, :explicit, :safe, :age_restricted] #: ../lib/discorb/guild.rb:78 msgid "The nsfw level of the guild." msgstr "" # @return [Discorb::Dictionary{Discorb::Snowflake => Discorb::StageInstance}] #: ../lib/discorb/guild.rb:80 msgid "A dictionary of stage instances in the guild." msgstr "" # @return [:none, :low, :medium, :high, :very_high] #: ../lib/discorb/guild.rb:82 #: ../lib/discorb/guild_template.rb:111 msgid "The verification level of the guild." msgstr "" # @return [:all_messages, :only_mentions] #: ../lib/discorb/guild.rb:84 #: ../lib/discorb/guild_template.rb:113 msgid "The default message notification level of the guild." msgstr "" # @return [:disabled_in_text, :members_without_roles, :all_members] #: ../lib/discorb/guild.rb:86 #: ../lib/discorb/guild_template.rb:115 msgid "The explict content filter level of the guild." msgstr "" # @return [Boolean] #: ../lib/discorb/guild.rb:88 #: ../lib/discorb/guild.rb:89 msgid "Whether the client is the owner of the guild." msgstr "" # @return [Boolean] #: ../lib/discorb/guild.rb:91 #: ../lib/discorb/guild.rb:92 msgid "Whether the guild is large." msgstr "" # @return [Boolean] #: ../lib/discorb/guild.rb:94 #: ../lib/discorb/guild.rb:95 #: ../lib/discorb/guild_template.rb:117 #: ../lib/discorb/guild_template.rb:118 msgid "Whether the guild enabled the widget." msgstr "" # @return [Boolean] #: ../lib/discorb/guild.rb:97 #: ../lib/discorb/guild.rb:98 msgid "Whether the guild is available." msgstr "" # @return [Dictionary{Discorb::Snowflake => Discorb::ScheduledEvent}] #: ../lib/discorb/guild.rb:100 #: ../lib/discorb/guild.rb:101 msgid "A dictionary of scheduled events in the guild." msgstr "" # @return [Guild] #: ../lib/discorb/guild.rb:125 #: ../lib/discorb/webhook.rb:260 msgid "a new instance of Guild" msgstr "" # Discorb::Guild#leave! #: ../lib/discorb/guild.rb:164 msgid "Leave the guild." msgstr "" # Discorb::Guild#fetch_scheduled_events #: ../lib/discorb/guild.rb:176 msgid "Fetch scheduled events for the guild." msgstr "" # @param [Boolean] with_user_count #: ../lib/discorb/guild.rb:185 msgid "Whether to include the user count in the events.\n" "Defaults to `true`." msgstr "" # @return [Array<Discorb::ScheduledEvent>] #: ../lib/discorb/guild.rb:185 msgid "The events for the guild." msgstr "" # @param [Boolean] #: ../lib/discorb/guild.rb:185 msgid "tag|param|with_user_count" msgstr "" # Discorb::Guild#fetch_scheduled_event #: ../lib/discorb/guild.rb:193 msgid "Fetch the scheduled event by ID." msgstr "" # @param [#to_s] id #: ../lib/discorb/guild.rb:202 msgid "The ID of the scheduled event." msgstr "" # @return [nil] #: ../lib/discorb/guild.rb:202 msgid "If no event with the given ID exists." msgstr "" # @return [Discorb::ScheduledEvent] #: ../lib/discorb/guild.rb:202 msgid "The event with the given ID." msgstr "" # @return [Discorb::ScheduledEvent] #: ../lib/discorb/guild.rb:226 msgid "The created event." msgstr "" # Discorb::Guild#fetch_emoji_list # Discorb::Guild#fetch_emojis #: ../lib/discorb/guild.rb:283 #: ../lib/discorb/guild.rb:305 msgid "Fetch emoji list of the guild." msgstr "" # @return [Async::Task<Discorb::Dictionary{Discorb::Snowflake => Discorb::CustomEmoji}>] #: ../lib/discorb/guild.rb:290 #: ../lib/discorb/guild.rb:304 msgid "A dictionary of emoji in the guild." msgstr "" # @note #: ../lib/discorb/guild.rb:290 #: ../lib/discorb/guild.rb:304 #: ../lib/discorb/guild.rb:316 msgid "This querys the API every time. We recommend using {#emojis} instead." msgstr "" # Discorb::Guild#fetch_emoji #: ../lib/discorb/guild.rb:307 msgid "Fetch emoji id of the guild." msgstr "" # @param [#to_s] id #: ../lib/discorb/guild.rb:316 msgid "The emoji id." msgstr "" # @return [Async::Task<Discorb::CustomEmoji>] #: ../lib/discorb/guild.rb:316 msgid "The emoji with the given id." msgstr "" # Discorb::Guild#create_emoji #: ../lib/discorb/guild.rb:322 msgid "Create a custom emoji." msgstr "" # @return [Async::Task<Discorb::CustomEmoji>] #: ../lib/discorb/guild.rb:332 msgid "The created emoji." msgstr "" # @param [Array<Discorb::Role>] roles #: ../lib/discorb/guild.rb:332 msgid "A list of roles to give the emoji." msgstr "" # @param [Discorb::Image] image #: ../lib/discorb/guild.rb:332 msgid "The image of the emoji." msgstr "" # Discorb::Guild#fetch_webhooks #: ../lib/discorb/guild.rb:345 msgid "Fetch webhooks of the guild." msgstr "" # @return [Async::Task<Array<Discorb::Webhook>>] #: ../lib/discorb/guild.rb:351 msgid "A list of webhooks in the guild." msgstr "" # Discorb::Guild#fetch_audit_log #: ../lib/discorb/guild.rb:359 msgid "Fetch audit log of the guild." msgstr "" # @return [Async::Task<Discorb::AuditLog>] #: ../lib/discorb/guild.rb:365 msgid "The audit log of the guild." msgstr "" # Discorb::Guild#fetch_channels #: ../lib/discorb/guild.rb:373 msgid "Fetch channels of the guild." msgstr "" # @return [Async::Task<Array<Discorb::Channel>>] #: ../lib/discorb/guild.rb:379 msgid "A list of channels in the guild." msgstr "" # Discorb::Guild#create_text_channel #: ../lib/discorb/guild.rb:387 msgid "Create a new text channel." msgstr "" # @param [Integer] rate_limit_per_user #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 msgid "The rate limit per user in the channel." msgstr "" # @param [Integer] slowmode #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:568 msgid "Alias for `rate_limit_per_user`." msgstr "" # @param [Hash{Discorb::Role, Discorb::Member => Discorb::PermissionOverwrite}] #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 msgid "tag|param|permission_overwrites" msgstr "" # @param [Hash{Discorb::Role, Discorb::Member => Discorb::PermissionOverwrite}] permission_overwrites #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 msgid "A list of permission overwrites." msgstr "" # @param [Discorb::CategoryChannel] parent #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 msgid "The parent of the channel." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:403 #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild.rb:568 msgid "The reason for creating the channel." msgstr "" # @return [Async::Task<Discorb::TextChannel>] #: ../lib/discorb/guild.rb:403 msgid "The created text channel." msgstr "" # Discorb::Guild#create_voice_channel #: ../lib/discorb/guild.rb:434 msgid "Create a new voice channel." msgstr "" # @param [Integer] user_limit # @return [Integer] #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild_template.rb:169 msgid "The user limit of the channel." msgstr "" # @return [Async::Task<Discorb::VoiceChannel>] #: ../lib/discorb/guild.rb:448 msgid "The created voice channel." msgstr "" # @param [Integer] bitrate # @return [Integer] #: ../lib/discorb/guild.rb:448 #: ../lib/discorb/guild.rb:527 #: ../lib/discorb/guild_template.rb:167 msgid "The bitrate of the channel." msgstr "" # Discorb::Guild#create_category # Discorb::Guild#create_category_channel #: ../lib/discorb/guild.rb:477 #: ../lib/discorb/guild.rb:512 msgid "Create a new category channel." msgstr "" # @return [Async::Task<Discorb::CategoryChannel>] #: ../lib/discorb/guild.rb:488 #: ../lib/discorb/guild.rb:511 msgid "The created category channel." msgstr "" # Discorb::Guild#create_stage_channel #: ../lib/discorb/guild.rb:514 msgid "Create a new stage channel." msgstr "" # @return [Async::Task<Discorb::StageChannel>] #: ../lib/discorb/guild.rb:527 msgid "The created stage channel." msgstr "" # Discorb::Guild#create_news_channel #: ../lib/discorb/guild.rb:552 msgid "Create a new news channel." msgstr "" # @return [Async::Task<Discorb::NewsChannel>] #: ../lib/discorb/guild.rb:568 msgid "The created news channel." msgstr "" # Discorb::Guild#fetch_active_threads #: ../lib/discorb/guild.rb:598 msgid "Fetch a list of active threads in the guild." msgstr "" # @return [Async::Task<Array<Discorb::ThreadChannel>>] #: ../lib/discorb/guild.rb:604 msgid "The list of threads." msgstr "" # Discorb::Guild#fetch_member #: ../lib/discorb/guild.rb:612 msgid "Fetch a member in the guild." msgstr "" # @return [Async::Task<nil>] #: ../lib/discorb/guild.rb:621 msgid "If the member is not found." msgstr "" # @return [Async::Task<Discorb::Member>] #: ../lib/discorb/guild.rb:621 msgid "The member." msgstr "" # @param [#to_s] id #: ../lib/discorb/guild.rb:621 msgid "The ID of the member to fetch." msgstr "" # Discorb::Guild#fetch_member_list # Discorb::Guild#fetch_members #: ../lib/discorb/guild.rb:632 #: ../lib/discorb/guild.rb:663 msgid "Fetch members in the guild." msgstr "" # @param [Integer] limit #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 msgid "The maximum number of members to fetch, 0 for all." msgstr "" # @return [Async::Task<Array<Discorb::Member>>] #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 #: ../lib/discorb/guild.rb:674 msgid "The list of members." msgstr "" # @param [Integer] after #: ../lib/discorb/guild.rb:641 #: ../lib/discorb/guild.rb:662 msgid "The ID of the member to start fetching after." msgstr "" # Discorb::Guild#fetch_members_named #: ../lib/discorb/guild.rb:665 msgid "Search for members by name in the guild." msgstr "" # @param [Integer] limit #: ../lib/discorb/guild.rb:674 msgid "The maximum number of members to return." msgstr "" # @param [String] name #: ../lib/discorb/guild.rb:674 msgid "The name of the member to search for." msgstr "" # Discorb::Guild#edit_nick # Discorb::Guild#edit_nickname # Discorb::Guild#modify_nick # Discorb::Guild#modify_nickname #: ../lib/discorb/guild.rb:696 #: ../lib/discorb/guild.rb:708 #: ../lib/discorb/guild.rb:709 #: ../lib/discorb/guild.rb:710 msgid "Change nickname of client member." msgstr "" # @param [String] nickname #: ../lib/discorb/guild.rb:701 #: ../lib/discorb/guild.rb:707 #: ../lib/discorb/guild.rb:708 #: ../lib/discorb/guild.rb:709 msgid "The nickname to set." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:701 #: ../lib/discorb/guild.rb:707 #: ../lib/discorb/guild.rb:708 #: ../lib/discorb/guild.rb:709 msgid "The reason for changing the nickname." msgstr "" # @param [String] #: ../lib/discorb/guild.rb:701 #: ../lib/discorb/guild.rb:707 #: ../lib/discorb/guild.rb:708 #: ../lib/discorb/guild.rb:709 msgid "tag|param|nickname" msgstr "" # Discorb::Guild#kick_member #: ../lib/discorb/guild.rb:712 msgid "Kick a member from the guild." msgstr "" # @param [Discorb::Member] member #: ../lib/discorb/guild.rb:719 msgid "The member to kick." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:719 msgid "The reason for kicking the member." msgstr "" # @param [Discorb::Member] #: ../lib/discorb/guild.rb:719 #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 msgid "tag|param|member" msgstr "" # Discorb::Guild#fetch_bans #: ../lib/discorb/guild.rb:726 msgid "Fetch a list of bans in the guild." msgstr "" # @return [Async::Task<Array<Discorb::Guild::Ban>>] #: ../lib/discorb/guild.rb:732 msgid "The list of bans." msgstr "" # Discorb::Guild#fetch_ban #: ../lib/discorb/guild.rb:740 msgid "Fetch a ban in the guild." msgstr "" # @param [Boolean] # @param [Discorb::User] #: ../lib/discorb/guild.rb:749 #: ../lib/discorb/guild.rb:768 #: ../lib/discorb/guild.rb:802 #: ../lib/discorb/message.rb:258 msgid "tag|param|user" msgstr "" # @param [Discorb::User] user #: ../lib/discorb/guild.rb:749 msgid "The user to fetch." msgstr "" # @return [Async::Task<Discorb::Guild::Ban>] #: ../lib/discorb/guild.rb:749 #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/member.rb:218 msgid "The ban." msgstr "" # @return [Async::Task<nil>] #: ../lib/discorb/guild.rb:749 msgid "If the ban is not found." msgstr "" # Discorb::Guild#banned? #: ../lib/discorb/guild.rb:760 msgid "Checks the user was banned from the guild." msgstr "" # @return [Async::Task<Boolean>] #: ../lib/discorb/guild.rb:768 msgid "Whether the user was banned." msgstr "" # @param [Discorb::User] user #: ../lib/discorb/guild.rb:768 msgid "The user to check." msgstr "" # Discorb::Guild#ban_member #: ../lib/discorb/guild.rb:775 msgid "Ban a member from the guild." msgstr "" # @param [Integer] delete_message_days #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/member.rb:218 msgid "The number of days to delete messages." msgstr "" # @param [Integer] #: ../lib/discorb/guild.rb:785 #: ../lib/discorb/member.rb:218 msgid "tag|param|delete_message_days" msgstr "" # @param [Discorb::Member] member #: ../lib/discorb/guild.rb:785 msgid "The member to ban." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:785 msgid "The reason for banning the member." msgstr "" # Discorb::Guild#unban_user #: ../lib/discorb/guild.rb:795 msgid "Unban a user from the guild." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:802 msgid "The reason for unbanning the user." msgstr "" # @param [Discorb::User] user #: ../lib/discorb/guild.rb:802 msgid "The user to unban." msgstr "" # Discorb::Guild#fetch_roles #: ../lib/discorb/guild.rb:809 msgid "Fetch a list of roles in the guild." msgstr "" # @return [Async::Task<Array<Discorb::Role>>] #: ../lib/discorb/guild.rb:815 msgid "The list of roles." msgstr "" # Discorb::Guild#create_role #: ../lib/discorb/guild.rb:823 msgid "Create a role in the guild." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:835 msgid "The reason for creating the role." msgstr "" # @param [Boolean] #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "tag|param|hoist" msgstr "" # @param [Discorb::Color] color # @return [Discorb::Color] #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild_template.rb:144 #: ../lib/discorb/role.rb:13 msgid "The color of the role." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/guild_template.rb:140 #: ../lib/discorb/role.rb:11 msgid "The name of the role." msgstr "" # @param [Boolean] #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "tag|param|mentionable" msgstr "" # @param [Boolean] mentionable #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "Whether the role should be mentionable." msgstr "" # @return [Async::Task<Discorb::Role>] #: ../lib/discorb/guild.rb:835 msgid "The role." msgstr "" # @param [Boolean] hoist #: ../lib/discorb/guild.rb:835 #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "Whether the role should be hoisted." msgstr "" # Discorb::Guild#fetch_prune #: ../lib/discorb/guild.rb:850 msgid "Fetch how many members will be pruned." msgstr "" # @param [Integer] #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 msgid "tag|param|days" msgstr "" # @return [Async::Task<Integer>] #: ../lib/discorb/guild.rb:859 msgid "The number of members that will be pruned." msgstr "" # @param [Array<Discorb::Role>] roles #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 msgid "The roles that include for pruning." msgstr "" # @param [Integer] days #: ../lib/discorb/guild.rb:859 #: ../lib/discorb/guild.rb:882 msgid "The number of days to prune." msgstr "" # Discorb::Guild#prune #: ../lib/discorb/guild.rb:872 msgid "Prune members from the guild." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:882 msgid "The reason for pruning." msgstr "" # @return [Async::Task<Integer>] #: ../lib/discorb/guild.rb:882 msgid "The number of members that were pruned." msgstr "" # Discorb::Guild#fetch_voice_regions #: ../lib/discorb/guild.rb:892 msgid "Fetch voice regions that are available in the guild." msgstr "" # @return [Async::Task<Array<Discorb::VoiceRegion>>] #: ../lib/discorb/guild.rb:898 msgid "The available voice regions." msgstr "" # Discorb::Guild#fetch_invites #: ../lib/discorb/guild.rb:906 msgid "Fetch invites in the guild." msgstr "" # @return [Async::Task<Array<Invite>>] #: ../lib/discorb/guild.rb:912 msgid "The invites." msgstr "" # Discorb::Guild#fetch_integrations #: ../lib/discorb/guild.rb:920 msgid "Fetch integrations in the guild." msgstr "" # @return [Async::Task<Array<Discorb::Integration>>] #: ../lib/discorb/guild.rb:926 msgid "The integrations." msgstr "" # Discorb::Guild#fetch_widget #: ../lib/discorb/guild.rb:934 msgid "Fetch the widget of the guild." msgstr "" # @return [Async::Task<Discorb::Guild::Widget>] #: ../lib/discorb/guild.rb:940 msgid "The widget." msgstr "" # Discorb::Guild#fetch_vanity_invite #: ../lib/discorb/guild.rb:948 msgid "Fetch the vanity URL of the guild." msgstr "" # @return [Async::Task<Discorb::Guild::VanityInvite>] # @return [String] #: ../lib/discorb/guild.rb:954 #: ../lib/discorb/guild.rb:1062 #: ../lib/discorb/guild.rb:1073 msgid "The vanity URL." msgstr "" # Discorb::Guild#fetch_welcome_screen #: ../lib/discorb/guild.rb:962 msgid "Fetch the welcome screen of the guild." msgstr "" # @return [Async::Task<Discorb::WelcomeScreen>] #: ../lib/discorb/guild.rb:968 msgid "The welcome screen." msgstr "" # Discorb::Guild#fetch_stickers #: ../lib/discorb/guild.rb:976 msgid "Fetch stickers in the guild." msgstr "" # @return [Async::Task<Array<Discorb::Sticker::GuildSticker>>] #: ../lib/discorb/guild.rb:982 msgid "The stickers." msgstr "" # Discorb::Guild#fetch_sticker #: ../lib/discorb/guild.rb:990 msgid "Fetch the sticker by ID." msgstr "" # @return [Async::Task<Discorb::Sticker::GuildSticker>] #: ../lib/discorb/guild.rb:999 msgid "The sticker." msgstr "" # @return [Async::Task<nil>] #: ../lib/discorb/guild.rb:999 msgid "If the sticker does not exist." msgstr "" # @param [#to_s] id # @return [Discorb::Snowflake] #: ../lib/discorb/guild.rb:999 #: ../lib/discorb/sticker.rb:9 msgid "The ID of the sticker." msgstr "" # Discorb::Guild#fetch_templates #: ../lib/discorb/guild.rb:1010 msgid "Fetch templates in the guild." msgstr "" # @return [Async::Task<Discorb::GuildTemplate>] #: ../lib/discorb/guild.rb:1016 msgid "The templates." msgstr "" # Discorb::Guild#fetch_template #: ../lib/discorb/guild.rb:1024 msgid "Almost the same as {#fetch_templates}, but returns a single template." msgstr "" # @return [Async::Task<Discorb::GuildTemplate>] # @return [Discorb::GuildTemplate] #: ../lib/discorb/guild.rb:1029 #: ../lib/discorb/guild.rb:1044 msgid "The template." msgstr "" # @return [Async::Task<nil>] #: ../lib/discorb/guild.rb:1029 msgid "If the template does not exist." msgstr "" # Discorb::Guild#create_template #: ../lib/discorb/guild.rb:1036 msgid "Create a new template in the guild." msgstr "" # @param [String] description # @return [String] #: ../lib/discorb/guild.rb:1044 #: ../lib/discorb/guild_template.rb:13 msgid "The description of the template." msgstr "" # @param [String] name # @return [String] #: ../lib/discorb/guild.rb:1044 #: ../lib/discorb/guild_template.rb:11 msgid "The name of the template." msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:1044 msgid "The reason for creating the template." msgstr "" # Discorb::Guild::VanityInvite #: ../lib/discorb/guild.rb:1054 msgid "Represents a vanity invite." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:1058 msgid "The vanity invite code." msgstr "" # @return [Integer] #: ../lib/discorb/guild.rb:1060 msgid "The number of uses." msgstr "" # @return [VanityInvite] #: ../lib/discorb/guild.rb:1066 msgid "a new instance of VanityInvite" msgstr "" # Discorb::Guild::Widget #: ../lib/discorb/guild.rb:1079 msgid "Represents a guild widget." msgstr "" # @param [Discorb::Snowflake] guild_id # @return [Discorb::Snowflake] #: ../lib/discorb/guild.rb:1083 #: ../lib/discorb/message.rb:525 #: ../lib/discorb/message.rb:543 msgid "The guild ID." msgstr "" # @param [Discorb::Snowflake] channel_id # @return [Discorb::Snowflake] #: ../lib/discorb/guild.rb:1085 #: ../lib/discorb/message.rb:527 #: ../lib/discorb/message.rb:543 msgid "The channel ID." msgstr "" # @param [Boolean] enabled # @return [Boolean] #: ../lib/discorb/guild.rb:1087 #: ../lib/discorb/guild.rb:1088 #: ../lib/discorb/guild.rb:1089 #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 msgid "Whether the widget is enabled." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:1091 #: ../lib/discorb/guild.rb:1133 msgid "The JSON URL." msgstr "" # @return [Widget] #: ../lib/discorb/guild.rb:1101 msgid "a new instance of Widget" msgstr "" # Discorb::Guild::Widget#edit # Discorb::Guild::Widget#modify #: ../lib/discorb/guild.rb:1113 #: ../lib/discorb/guild.rb:1132 msgid "Edit the widget." msgstr "" # @param [Boolean] #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 #: ../lib/discorb/guild.rb:1378 msgid "tag|param|enabled" msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:1122 #: ../lib/discorb/guild.rb:1131 msgid "The reason for editing the widget." msgstr "" # Discorb::Guild::Widget#iframe #: ../lib/discorb/guild.rb:1138 msgid "Return iframe HTML of the widget." msgstr "" # @param [Integer] #: ../lib/discorb/guild.rb:1146 msgid "tag|param|width" msgstr "" # @param [Integer] #: ../lib/discorb/guild.rb:1146 msgid "tag|param|height" msgstr "" # @param [Integer] height #: ../lib/discorb/guild.rb:1146 msgid "The height of the widget." msgstr "" # @param ["dark", "light"] #: ../lib/discorb/guild.rb:1146 msgid "tag|param|theme" msgstr "" # @param [Integer] width #: ../lib/discorb/guild.rb:1146 msgid "The width of the widget." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:1146 msgid "The iframe HTML." msgstr "" # @param ["dark", "light"] theme #: ../lib/discorb/guild.rb:1146 msgid "The theme of the widget." msgstr "" # Discorb::Guild::Ban #: ../lib/discorb/guild.rb:1155 msgid "Represents a ban." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:1161 msgid "The reason for the ban." msgstr "" # @return [Ban] #: ../lib/discorb/guild.rb:1164 msgid "a new instance of Ban" msgstr "" # Discorb::Guild.banner #: ../lib/discorb/guild.rb:1177 msgid "Returns a banner url from the guild's ID." msgstr "" # @return [String] #: ../lib/discorb/guild.rb:1184 msgid "The url of the banner." msgstr "" # @param [#to_s] guild_id # @return [Discorb::Snowflake] #: ../lib/discorb/guild.rb:1184 #: ../lib/discorb/webhook.rb:253 #: ../lib/discorb/webhook.rb:299 msgid "The ID of the guild." msgstr "" # @param [#to_s] # @param [Discorb::Snowflake] #: ../lib/discorb/guild.rb:1184 #: ../lib/discorb/message.rb:543 msgid "tag|param|guild_id" msgstr "" # @param [:shield, :banner1, :banner2, :banner3, :banner4] style #: ../lib/discorb/guild.rb:1184 msgid "The style of the banner." msgstr "" # Discorb::SystemChannelFlag #: ../lib/discorb/guild.rb:1262 msgid "Represents a system channel flag.\n" "## Flag fields\n" "|Field|Value|\n" "|-|-|\n" "|`1 << 0`|`:member_join`|\n" "|`1 << 1`|`:server_boost`|\n" "|`1 << 2`|`:setup_tips`|\n" "|`1 << 3`|`:join_stickers`|" msgstr "" # Discorb::WelcomeScreen #: ../lib/discorb/guild.rb:1281 msgid "Represents a welcome screen." msgstr "" # @param [String] description # @return [String] #: ../lib/discorb/guild.rb:1285 #: ../lib/discorb/guild.rb:1378 msgid "The description of the welcome screen." msgstr "" # @param [Array<Discorb::WelcomeScreen::Channel>] channels # @return [Array<Discorb::WelcomeScreen::Channel>] #: ../lib/discorb/guild.rb:1287 #: ../lib/discorb/guild.rb:1378 msgid "The channels to display the welcome screen." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/guild.rb:1289 msgid "The guild the welcome screen belongs to." msgstr "" # @return [WelcomeScreen] #: ../lib/discorb/guild.rb:1292 msgid "a new instance of WelcomeScreen" msgstr "" # Discorb::WelcomeScreen::Channel #: ../lib/discorb/guild.rb:1300 msgid "Represents a channel to display the welcome screen." msgstr "" # @param [String] description # @return [String] #: ../lib/discorb/guild.rb:1304 #: ../lib/discorb/guild.rb:1319 msgid "The channel's name." msgstr "" # @param [Discorb::Emoji] emoji # @return [Discorb::Emoji] #: ../lib/discorb/guild.rb:1306 #: ../lib/discorb/guild.rb:1319 #: ../lib/discorb/guild.rb:1359 msgid "The emoji to display." msgstr "" # @param [Discorb::TextChannel] channel # @return [Discorb::Channel] #: ../lib/discorb/guild.rb:1306 #: ../lib/discorb/guild.rb:1319 #: ../lib/discorb/guild.rb:1355 msgid "The channel to display the welcome screen." msgstr "" # Discorb::WelcomeScreen::Channel#initialize #: ../lib/discorb/guild.rb:1313 msgid "Initialize a new welcome screen channel." msgstr "" # Discorb::WelcomeScreen::Channel#to_hash #: ../lib/discorb/guild.rb:1341 msgid "Converts the channel to a hash." msgstr "" # @param [Hash] data # @return [Hash] #: ../lib/discorb/guild.rb:1346 #: ../lib/discorb/message.rb:555 #: ../lib/discorb/message.rb:564 #: ../lib/discorb/message.rb:574 msgid "The hash." msgstr "" # @see #: ../lib/discorb/guild.rb:1346 msgid "tag|see|https://discord.com/developers/docs/resources/guild#welcome-screen-object" msgstr "" # Discorb::WelcomeScreen::Channel#edit #: ../lib/discorb/guild.rb:1368 msgid "Edits the welcome screen." msgstr "" # @param [Boolean] enabled #: ../lib/discorb/guild.rb:1378 msgid "Whether the welcome screen is enabled." msgstr "" # @param [Array<Discorb::WelcomeScreen::Channel>] #: ../lib/discorb/guild.rb:1378 msgid "tag|param|channels" msgstr "" # @param [String] reason #: ../lib/discorb/guild.rb:1378 msgid "The reason for editing the welcome screen." msgstr "" # Discorb::GuildTemplate #: ../lib/discorb/guild_template.rb:5 msgid "Represents a guild template." msgstr "" # @return [String] #: ../lib/discorb/guild_template.rb:9 msgid "The code of the template." msgstr "" # @return [Integer] #: ../lib/discorb/guild_template.rb:15 msgid "The number of times this template has been used." msgstr "" # @return [Discorb::User] #: ../lib/discorb/guild_template.rb:17 msgid "The user who created this template." msgstr "" # @return [Time] #: ../lib/discorb/guild_template.rb:19 msgid "The time this template was created." msgstr "" # @return [Time] #: ../lib/discorb/guild_template.rb:21 msgid "The time this template was last updated." msgstr "" # @return [Discorb::GuildTemplate::TemplateGuild] # @return [Discorb::Guild] #: ../lib/discorb/guild_template.rb:23 #: ../lib/discorb/guild_template.rb:25 #: ../lib/discorb/guild_template.rb:26 msgid "The guild where the template was created." msgstr "" # @return [Boolean] #: ../lib/discorb/guild_template.rb:28 #: ../lib/discorb/guild_template.rb:29 msgid "Whether this template is dirty." msgstr "" # @return [nil] #: ../lib/discorb/guild_template.rb:31 #: ../lib/discorb/guild_template.rb:42 msgid "Client wasn't able to find the guild this template is based on." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/guild_template.rb:31 #: ../lib/discorb/guild_template.rb:42 msgid "The guild this template is based on." msgstr "" # @return [GuildTemplate] #: ../lib/discorb/guild_template.rb:37 msgid "a new instance of GuildTemplate" msgstr "" # Discorb::GuildTemplate#edit # Discorb::GuildTemplate#modify #: ../lib/discorb/guild_template.rb:47 #: ../lib/discorb/guild_template.rb:65 msgid "Edit the template." msgstr "" # @param [String] description #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 msgid "The new description of the template." msgstr "" # @param [String] name #: ../lib/discorb/guild_template.rb:55 #: ../lib/discorb/guild_template.rb:64 msgid "The new name of the template." msgstr "" # Discorb::GuildTemplate#update #: ../lib/discorb/guild_template.rb:67 msgid "Update the template." msgstr "" # Discorb::GuildTemplate#delete! # Discorb::GuildTemplate#destroy! #: ../lib/discorb/guild_template.rb:79 #: ../lib/discorb/guild_template.rb:90 msgid "Delete the template." msgstr "" # Discorb::GuildTemplate::TemplateGuild #: ../lib/discorb/guild_template.rb:92 msgid "Represents a guild in guild template." msgstr "" # @return [TemplateGuild] #: ../lib/discorb/guild_template.rb:121 msgid "a new instance of TemplateGuild" msgstr "" # Discorb::GuildTemplate::TemplateGuild::Role #: ../lib/discorb/guild_template.rb:136 msgid "Represents a role in guild template." msgstr "" # @return [Discorb::Permission] #: ../lib/discorb/guild_template.rb:142 #: ../lib/discorb/role.rb:15 msgid "The permissions of the role." msgstr "" # @return [Role] #: ../lib/discorb/guild_template.rb:147 #: ../lib/discorb/role.rb:46 msgid "a new instance of Role" msgstr "" # Discorb::GuildTemplate::TemplateGuild::Channel #: ../lib/discorb/guild_template.rb:157 msgid "Represents a channel in guild template." msgstr "" # @return [String] #: ../lib/discorb/guild_template.rb:165 msgid "The type of the channel." msgstr "" # @return [Integer] #: ../lib/discorb/guild_template.rb:173 msgid "The rate limit of the channel." msgstr "" # @return [Class] #: ../lib/discorb/guild_template.rb:175 msgid "The class of the channel." msgstr "" # Discorb::HTTP #: ../lib/discorb/http.rb:7 msgid "A class to handle http requests." msgstr "" # @return [HTTP] #: ../lib/discorb/http.rb:14 msgid "a new instance of HTTP" msgstr "" # Discorb::HTTP#get #: ../lib/discorb/http.rb:20 msgid "Execute a GET request." msgstr "" # @param [Hash] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "tag|param|headers" msgstr "" # @param [String] path #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The path to the resource." msgstr "" # @param [String] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 #: ../lib/discorb/rate_limit.rb:27 #: ../lib/discorb/rate_limit.rb:59 msgid "tag|param|path" msgstr "" # @param [String] audit_log_reason #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The audit log reason to send with the request." msgstr "" # @param [Hash] headers #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The headers to send with the request." msgstr "" # @param [String] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "tag|param|audit_log_reason" msgstr "" # @param [Hash] kwargs #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The keyword arguments." msgstr "" # @raise [Discorb::HTTPError] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The request was failed." msgstr "" # @return [Array(Net::HTTPResponse, Hash)] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The response and as JSON." msgstr "" # @return [Async::Task<Array(Net::HTTPResponse, nil)>] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "The response was 204." msgstr "" # @param [Hash] #: ../lib/discorb/http.rb:33 #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 #: ../lib/discorb/http.rb:132 msgid "tag|param|kwargs" msgstr "" # Discorb::HTTP#post #: ../lib/discorb/http.rb:44 msgid "Execute a POST request." msgstr "" # @param [String, Hash] body #: ../lib/discorb/http.rb:58 #: ../lib/discorb/http.rb:83 #: ../lib/discorb/http.rb:108 msgid "The body of the request." msgstr "" # Discorb::HTTP#patch #: ../lib/discorb/http.rb:69 msgid "Execute a PATCH request." msgstr "" # Discorb::HTTP#put #: ../lib/discorb/http.rb:94 msgid "Execute a PUT request." msgstr "" # Discorb::HTTP#delete #: ../lib/discorb/http.rb:119 msgid "Execute a DELETE request." msgstr "" # Discorb::HTTP.multipart #: ../lib/discorb/http.rb:147 msgid "A helper method to send multipart/form-data requests for creating messages." msgstr "" # @param [Array<Discorb::Attachment>] #: ../lib/discorb/http.rb:154 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|files" msgstr "" # @param [Array<Discorb::Attachment>] files #: ../lib/discorb/http.rb:154 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "The files to send." msgstr "" # @return [Array(String, String)] #: ../lib/discorb/http.rb:154 msgid "The boundary and body." msgstr "" # @param [Hash] payload #: ../lib/discorb/http.rb:154 msgid "The payload to send." msgstr "" # @param [Hash] #: ../lib/discorb/http.rb:154 msgid "tag|param|payload" msgstr "" # Discorb::Image #: ../lib/discorb/image.rb:8 msgid "Represents an image." msgstr "" # Discorb::Image#initialize #: ../lib/discorb/image.rb:12 msgid "Initializes a new Image." msgstr "" # @param [String] type #: ../lib/discorb/image.rb:17 msgid "The MIME type of the image." msgstr "" # @param [#read, String] source #: ../lib/discorb/image.rb:17 msgid "The IO source or path of the image." msgstr "" # @param [#read, String] #: ../lib/discorb/image.rb:17 msgid "tag|param|source" msgstr "" # Discorb::Image#to_s #: ../lib/discorb/image.rb:30 msgid "Formats the image as a Discord style." msgstr "" # @return [String] #: ../lib/discorb/image.rb:34 msgid "The image as a Discord style." msgstr "" # Discorb::Integration #: ../lib/discorb/integration.rb:5 msgid "Represents a integration." msgstr "" # @return [Symbol] #: ../lib/discorb/integration.rb:11 msgid "The type of integration." msgstr "" # @return [Boolean] #: ../lib/discorb/integration.rb:13 #: ../lib/discorb/integration.rb:14 msgid "Whether the integration is enabled." msgstr "" # @return [Boolean] #: ../lib/discorb/integration.rb:16 #: ../lib/discorb/integration.rb:17 msgid "Whether the integration is syncing." msgstr "" # @return [Boolean] #: ../lib/discorb/integration.rb:19 #: ../lib/discorb/integration.rb:20 msgid "Whether the integration is enabled emoticons." msgstr "" # @return [:remove_role, :kick] #: ../lib/discorb/integration.rb:22 msgid "The behavior of the integration when it expires." msgstr "" # @return [Integer] #: ../lib/discorb/integration.rb:24 msgid "The grace period of the integration." msgstr "" # @return [Discorb::User] #: ../lib/discorb/integration.rb:26 msgid "The user for the integration." msgstr "" # @return [Discorb::Integration::Account] #: ../lib/discorb/integration.rb:28 msgid "The account for the integration." msgstr "" # @return [Integer] #: ../lib/discorb/integration.rb:30 msgid "The number of subscribers for the integration." msgstr "" # @return [Boolean] #: ../lib/discorb/integration.rb:32 #: ../lib/discorb/integration.rb:33 msgid "Whether the integration is revoked." msgstr "" # @return [Discorb::Application] #: ../lib/discorb/integration.rb:35 msgid "The application for the integration." msgstr "" # Discorb::Integration#delete! # Discorb::Integration#destroy! #: ../lib/discorb/integration.rb:60 #: ../lib/discorb/integration.rb:71 msgid "Delete the integration." msgstr "" # @param [String] reason #: ../lib/discorb/integration.rb:64 #: ../lib/discorb/integration.rb:70 msgid "The reason for deleting the integration." msgstr "" # Discorb::Integration::Account #: ../lib/discorb/integration.rb:96 msgid "Represents an account for an integration." msgstr "" # @return [String] #: ../lib/discorb/integration.rb:100 msgid "The ID of the account." msgstr "" # @return [String] #: ../lib/discorb/integration.rb:102 msgid "The name of the account." msgstr "" # @return [Account] #: ../lib/discorb/integration.rb:105 msgid "a new instance of Account" msgstr "" # Discorb::Intents #: ../lib/discorb/intents.rb:5 msgid "Represents intents." msgstr "" # Discorb::Intents#initialize #: ../lib/discorb/intents.rb:26 msgid "Create new intents object with default (no members and presence) intents." msgstr "" # @note #: ../lib/discorb/intents.rb:46 msgid "You must enable privileged intents to use `members` and/or `presences` intents." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|guilds" msgstr "" # @param [Boolean] guilds #: ../lib/discorb/intents.rb:46 msgid "Whether guild related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|members" msgstr "" # @param [Boolean] members #: ../lib/discorb/intents.rb:46 msgid "Whether guild members related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|bans" msgstr "" # @param [Boolean] bans #: ../lib/discorb/intents.rb:46 msgid "Whether guild ban related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|emojis" msgstr "" # @param [Boolean] emojis #: ../lib/discorb/intents.rb:46 msgid "Whether guild emojis related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|integrations" msgstr "" # @param [Boolean] integrations #: ../lib/discorb/intents.rb:46 msgid "Whether guild integration related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|webhooks" msgstr "" # @param [Boolean] webhooks #: ../lib/discorb/intents.rb:46 msgid "Whether guild webhooks related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|invites" msgstr "" # @param [Boolean] invites #: ../lib/discorb/intents.rb:46 msgid "Whether guild invite related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|voice_states" msgstr "" # @param [Boolean] voice_states #: ../lib/discorb/intents.rb:46 msgid "Whether guild voice state related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|presences" msgstr "" # @param [Boolean] presences #: ../lib/discorb/intents.rb:46 msgid "Whether guild presences related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|dm_typing" msgstr "" # @param [Boolean] reactions #: ../lib/discorb/intents.rb:46 msgid "Whether guild reaction related events are enabled." msgstr "" # @param [Boolean] dm_reactions #: ../lib/discorb/intents.rb:46 msgid "Whether dm reactions related events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|dm_reactions" msgstr "" # @param [Boolean] dm_messages #: ../lib/discorb/intents.rb:46 msgid "Whether dm messages related events are enabled." msgstr "" # @return [Intents] #: ../lib/discorb/intents.rb:46 msgid "a new instance of Intents" msgstr "" # @param [Boolean] messages #: ../lib/discorb/intents.rb:46 msgid "Whether guild messages related events are enabled." msgstr "" # @param [Boolean] scheduled_events #: ../lib/discorb/intents.rb:46 msgid "Whether events related scheduled events are enabled." msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|reactions" msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|scheduled_events" msgstr "" # @param [Boolean] #: ../lib/discorb/intents.rb:46 msgid "tag|param|dm_messages" msgstr "" # @param [Boolean] dm_typing #: ../lib/discorb/intents.rb:46 msgid "Whether dm typing related events are enabled." msgstr "" # Discorb::Intents#value #: ../lib/discorb/intents.rb:102 msgid "Returns value of the intent." msgstr "" # @param [Integer] value # @return [Integer] #: ../lib/discorb/intents.rb:103 #: ../lib/discorb/intents.rb:122 msgid "The value of the intent." msgstr "" # Discorb::Intents.from_value #: ../lib/discorb/intents.rb:121 msgid "Create new intent object from raw value." msgstr "" # Discorb::Intents.default #: ../lib/discorb/intents.rb:131 msgid "Create new intent object with default values.\n" "This will return intents without members and presence." msgstr "" # Discorb::Intents.all #: ../lib/discorb/intents.rb:137 msgid "Create new intent object with all intents." msgstr "" # Discorb::Intents.none #: ../lib/discorb/intents.rb:142 msgid "Create new intent object with no intents." msgstr "" # Discorb::Intents.intent_bits #: ../lib/discorb/intents.rb:147 msgid "Returns the value of attribute intent_bits." msgstr "" # Discorb::AutoComplete #: ../lib/discorb/interaction/autocomplete.rb:3 msgid "Represents auto complete interaction." msgstr "" # Discorb::CommandInteraction #: ../lib/discorb/interaction/command.rb:3 msgid "Represents a command interaction." msgstr "" # Discorb::CommandInteraction::ChatInputCommand #: ../lib/discorb/interaction/command.rb:11 msgid "Represents a slash command interaction." msgstr "" # Discorb::CommandInteraction::UserMenuCommand #: ../lib/discorb/interaction/command.rb:84 msgid "Represents a user context menu interaction." msgstr "" # @return [Discorb::Member, Discorb::User] #: ../lib/discorb/interaction/command.rb:90 msgid "The target user." msgstr "" # Discorb::CommandInteraction::MessageMenuCommand #: ../lib/discorb/interaction/command.rb:101 msgid "Represents a message context menu interaction." msgstr "" # @return [Discorb::Message] #: ../lib/discorb/interaction/command.rb:107 #: ../lib/discorb/interaction/components.rb:13 msgid "The target message." msgstr "" # Discorb::MessageComponentInteraction #: ../lib/discorb/interaction/components.rb:4 msgid "Represents a message component interaction." msgstr "" # @param [String] content # @return [String] #: ../lib/discorb/interaction/components.rb:11 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 msgid "The content of the response." msgstr "" # @return [MessageComponentInteraction] #: ../lib/discorb/interaction/components.rb:19 msgid "a new instance of MessageComponentInteraction" msgstr "" # Discorb::MessageComponentInteraction::Button #: ../lib/discorb/interaction/components.rb:44 msgid "Represents a button interaction." msgstr "" # @return [String] #: ../lib/discorb/interaction/components.rb:50 msgid "The custom id of the button." msgstr "" # Discorb::MessageComponentInteraction::SelectMenu #: ../lib/discorb/interaction/components.rb:60 msgid "Represents a select menu interaction." msgstr "" # @return [String] #: ../lib/discorb/interaction/components.rb:66 msgid "The custom id of the select menu." msgstr "" # @return [Array<String>] #: ../lib/discorb/interaction/components.rb:68 msgid "The selected options." msgstr "" # Discorb::Interaction #: ../lib/discorb/interaction/response.rb:3 #: ../lib/discorb/interaction/root.rb:3 msgid "Represents a user interaction with the bot." msgstr "" # Discorb::Interaction::SourceResponse #: ../lib/discorb/interaction/response.rb:4 msgid "A module for response with source." msgstr "" # Discorb::Interaction::SourceResponse#defer_source #: ../lib/discorb/interaction/response.rb:8 msgid "Response with `DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE`(`5`)." msgstr "" # @param [Boolean] #: ../lib/discorb/interaction/response.rb:15 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:138 #: ../lib/discorb/interaction/response.rb:163 msgid "tag|param|ephemeral" msgstr "" # @param [Boolean] ephemeral #: ../lib/discorb/interaction/response.rb:15 #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:138 #: ../lib/discorb/interaction/response.rb:163 msgid "Whether to make the response ephemeral." msgstr "" # Discorb::Interaction::SourceResponse#post #: ../lib/discorb/interaction/response.rb:28 msgid "Response with `CHANNEL_MESSAGE_WITH_SOURCE`(`4`)." msgstr "" # @param [Boolean] #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "tag|param|tts" msgstr "" # @param [Array<Discorb::Embed>] embeds #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 msgid "The embeds to send. (max: 10)" msgstr "" # @param [Boolean] tts #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 msgid "Whether to send the message as text-to-speech." msgstr "" # @param [Array<Discorb::Embed>] #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|embeds" msgstr "" # @param [Array<Discorb::Component>, Array<Array<Discorb::Component>>] components #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 msgid "The components to send." msgstr "" # @param [Discorb::AllowedMentions] allowed_mentions #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "The allowed mentions to send." msgstr "" # @param [Discorb::Embed] embed #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "The embed to send." msgstr "" # @param [Discorb::Embed] #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|embed" msgstr "" # @param [String] #: ../lib/discorb/interaction/response.rb:43 #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/interaction/response.rb:163 #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|content" msgstr "" # @return [Discorb::Interaction::SourceResponse::CallbackMessage, Discorb::Webhook::Message] #: ../lib/discorb/interaction/response.rb:43 msgid "The callback message." msgstr "" # @return [CallbackMessage] #: ../lib/discorb/interaction/response.rb:71 msgid "a new instance of CallbackMessage" msgstr "" # Discorb::Interaction::SourceResponse::CallbackMessage#edit # Discorb::Interaction::SourceResponse::CallbackMessage#modify #: ../lib/discorb/interaction/response.rb:79 #: ../lib/discorb/interaction/response.rb:116 msgid "Edits the callback message." msgstr "" # @param [Array<Discorb::Attachment>] attachments #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/webhook.rb:145 msgid "The attachments to remain." msgstr "" # @param [Array<Discorb::Attachment>] #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|attachments" msgstr "" # @param [Discorb::Attachment] #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "tag|param|file" msgstr "" # @param [Array<Discorb::Embed>] embeds #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/webhook.rb:145 msgid "The new embeds of the message." msgstr "" # @param [Discorb::Attachment] file #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 #: ../lib/discorb/webhook.rb:145 msgid "The file to send." msgstr "" # @param [Discorb::Embed] embed #: ../lib/discorb/interaction/response.rb:91 #: ../lib/discorb/interaction/response.rb:115 #: ../lib/discorb/webhook.rb:145 msgid "The new embed of the message." msgstr "" # Discorb::Interaction::SourceResponse::CallbackMessage#delete! #: ../lib/discorb/interaction/response.rb:118 msgid "Deletes the callback message." msgstr "" # @note #: ../lib/discorb/interaction/response.rb:121 msgid "This will fail if the message is ephemeral." msgstr "" # Discorb::Interaction::UpdateResponse #: ../lib/discorb/interaction/response.rb:130 msgid "A module for response with update." msgstr "" # Discorb::Interaction::UpdateResponse#defer_update #: ../lib/discorb/interaction/response.rb:134 msgid "Response with `DEFERRED_UPDATE_MESSAGE`(`6`)." msgstr "" # Discorb::Interaction::UpdateResponse#edit #: ../lib/discorb/interaction/response.rb:150 msgid "Response with `UPDATE_MESSAGE`(`7`)." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/interaction/root.rb:7 msgid "The ID of the interaction." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/interaction/root.rb:9 msgid "The ID of the application that created the interaction." msgstr "" # @return [Class] # @return [Integer] # @return [Symbol] #: ../lib/discorb/interaction/root.rb:11 #: ../lib/discorb/interaction/root.rb:18 #: ../lib/discorb/message.rb:647 msgid "The type of interaction." msgstr "" # @return [Discorb::Member] #: ../lib/discorb/interaction/root.rb:13 msgid "The member that created the interaction." msgstr "" # @return [Discorb::User] #: ../lib/discorb/interaction/root.rb:15 msgid "The user that created the interaction." msgstr "" # @note #: ../lib/discorb/interaction/root.rb:18 msgid "This is always `1` for now." msgstr "" # @return [String] #: ../lib/discorb/interaction/root.rb:20 msgid "The token for the interaction." msgstr "" # @return [Interaction] #: ../lib/discorb/interaction/root.rb:35 #: ../lib/discorb/message.rb:652 msgid "a new instance of Interaction" msgstr "" # Discorb::Invite #: ../lib/discorb/invite.rb:5 msgid "Represents invite of discord." msgstr "" # @return [String] #: ../lib/discorb/invite.rb:9 msgid "The code of invite." msgstr "" # @return [:voice, :stream, :guild] #: ../lib/discorb/invite.rb:12 msgid "The type of invite." msgstr "" # @return [User] #: ../lib/discorb/invite.rb:15 msgid "The user of invite." msgstr "" # @return [Integer] #: ../lib/discorb/invite.rb:18 msgid "The approximate number of online users of invite." msgstr "" # @return [Integer] #: ../lib/discorb/invite.rb:21 msgid "The approximate number of members of invite." msgstr "" # @return [Time] #: ../lib/discorb/invite.rb:27 msgid "The time when invite expires." msgstr "" # @return [nil] #: ../lib/discorb/invite.rb:27 msgid "The invite never expires." msgstr "" # @return [nil] #: ../lib/discorb/invite.rb:27 #: ../lib/discorb/invite.rb:31 #: ../lib/discorb/invite.rb:35 #: ../lib/discorb/invite.rb:39 #: ../lib/discorb/invite.rb:43 msgid "The invite doesn't have metadata." msgstr "" # @return [Integer] #: ../lib/discorb/invite.rb:31 msgid "The number of uses of invite." msgstr "" # @return [Integer] #: ../lib/discorb/invite.rb:35 msgid "The maximum number of uses of invite." msgstr "" # @return [Integer] #: ../lib/discorb/invite.rb:39 msgid "Duration of invite in seconds." msgstr "" # @return [Time] #: ../lib/discorb/invite.rb:43 msgid "The time when invite was created." msgstr "" # @return [Invite] #: ../lib/discorb/invite.rb:76 msgid "a new instance of Invite" msgstr "" # Discorb::Invite#delete! #: ../lib/discorb/invite.rb:103 msgid "Delete the invite." msgstr "" # @param value #: ../lib/discorb/log.rb:6 msgid "the value to set the attribute colorize_log to." msgstr "" # @param value #: ../lib/discorb/log.rb:6 msgid "the value to set the attribute out to." msgstr "" # Discorb::Logger#colorize_log #: ../lib/discorb/log.rb:7 msgid "Returns the value of attribute colorize_log." msgstr "" # Discorb::Logger#out= #: ../lib/discorb/log.rb:7 msgid "Sets the attribute out" msgstr "" # Discorb::Logger#colorize_log= #: ../lib/discorb/log.rb:7 msgid "Sets the attribute colorize_log" msgstr "" # Discorb::Logger#out #: ../lib/discorb/log.rb:7 msgid "Returns the value of attribute out." msgstr "" # @return [Logger] #: ../lib/discorb/log.rb:10 msgid "a new instance of Logger" msgstr "" # Discorb::Logger.levels #: ../lib/discorb/log.rb:61 msgid "Returns the value of attribute levels." msgstr "" # Discorb::Member #: ../lib/discorb/member.rb:5 msgid "Represents a member of a guild." msgstr "" # @return [Time] #: ../lib/discorb/member.rb:9 msgid "The time the member boosted the guild." msgstr "" # @return [nil] #: ../lib/discorb/member.rb:12 msgid "If the member has no nickname." msgstr "" # @param [String] nick # @return [String] #: ../lib/discorb/member.rb:12 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "The nickname of the member." msgstr "" # @return [Time] #: ../lib/discorb/member.rb:14 msgid "The time the member joined the guild." msgstr "" # @return [nil] #: ../lib/discorb/member.rb:17 msgid "If the member has no custom avatar." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/member.rb:17 msgid "The custom avatar of the member." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/member.rb:19 msgid "The display avatar of the member." msgstr "" # @param [Boolean] mute # @return [Boolean] #: ../lib/discorb/member.rb:21 #: ../lib/discorb/member.rb:22 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "Whether the member is muted." msgstr "" # @param [Boolean] deaf # @return [Boolean] #: ../lib/discorb/member.rb:24 #: ../lib/discorb/member.rb:25 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "Whether the member is deafened." msgstr "" # @return [Boolean] #: ../lib/discorb/member.rb:27 #: ../lib/discorb/member.rb:28 msgid "Whether the member is pending (Not passed member screening)." msgstr "" # @return [Boolean] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:120 msgid "Whether the member has a hoisted role." msgstr "" # @param [Discorb::Role] role # @return [Array<Discorb::Role>] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:103 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "The roles of the member." msgstr "" # @return [nil] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:116 msgid "If the member has no hoisted role." msgstr "" # @return [Discorb::Activity] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:128 msgid "The activity of the member. It's from the {#presence}." msgstr "" # @return [Discorb::Role] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:116 msgid "The hoisted role of the member." msgstr "" # @return [String] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:83 msgid "The display name of the member." msgstr "" # @return [Discorb::Presence] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:124 msgid "The presence of the member." msgstr "" # @return [Array<Discorb::Activity>] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:132 msgid "The activities of the member. It's from the {#presence}." msgstr "" # @return [Symbol] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:136 msgid "The status of the member. It's from the {#presence}." msgstr "" # @return [Boolean] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:95 msgid "Whether the member is the owner of the guild." msgstr "" # @return [String] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:87 msgid "The mention of the member." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:99 msgid "The guild the member is in." msgstr "" # @return [Discorb::VoiceState] #: ../lib/discorb/member.rb:30 #: ../lib/discorb/member.rb:91 msgid "The voice state of the member." msgstr "" # Discorb::Member#to_s #: ../lib/discorb/member.rb:75 msgid "Format the member to `Username#Discriminator` style." msgstr "" # @return [String] #: ../lib/discorb/member.rb:79 msgid "The formatted member." msgstr "" # Discorb::Member#add_role #: ../lib/discorb/member.rb:145 msgid "Add a role to the member." msgstr "" # @param [Discorb::Role] role #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 msgid "The role to add." msgstr "" # @param [Boolean] # @param [Discorb::Role] #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/message.rb:258 msgid "tag|param|role" msgstr "" # @param [String] reason #: ../lib/discorb/member.rb:152 #: ../lib/discorb/member.rb:166 #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 #: ../lib/discorb/member.rb:204 #: ../lib/discorb/member.rb:218 msgid "The reason for the action." msgstr "" # Discorb::Member#remove_role #: ../lib/discorb/member.rb:159 msgid "Remove a role to the member." msgstr "" # Discorb::Member#edit # Discorb::Member#modify #: ../lib/discorb/member.rb:173 #: ../lib/discorb/member.rb:198 msgid "Edit the member." msgstr "" # @param [Discorb::StageChannel] channel #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "The channel the member is moved to." msgstr "" # @param [Boolean] #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "tag|param|deaf" msgstr "" # @param [String] #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "tag|param|nick" msgstr "" # @param [Boolean] #: ../lib/discorb/member.rb:185 #: ../lib/discorb/member.rb:197 msgid "tag|param|mute" msgstr "" # Discorb::Member#kick #: ../lib/discorb/member.rb:200 msgid "Kick the member." msgstr "" # Discorb::Member#ban #: ../lib/discorb/member.rb:211 msgid "Ban the member." msgstr "" # Discorb::AllowedMentions #: ../lib/discorb/message.rb:5 msgid "Represents a allowed mentions in a message." msgstr "" # @param [Boolean] everyone # @return [Boolean] #: ../lib/discorb/message.rb:9 #: ../lib/discorb/message.rb:25 msgid "Whether to allow @everyone or @here." msgstr "" # @param [Boolean, Array<Discorb::Role>] roles # @return [Boolean, Array<Discorb::Role>] #: ../lib/discorb/message.rb:11 #: ../lib/discorb/message.rb:25 msgid "The roles to allow, or false to disable." msgstr "" # @param [Boolean, Array<Discorb::User>] users # @return [Boolean, Array<Discorb::User>] #: ../lib/discorb/message.rb:13 #: ../lib/discorb/message.rb:25 msgid "The users to allow, or false to disable." msgstr "" # @param [Boolean] replied_user # @return [Boolean] #: ../lib/discorb/message.rb:15 #: ../lib/discorb/message.rb:25 msgid "Whether to ping the user that sent the message to reply." msgstr "" # Discorb::AllowedMentions#initialize #: ../lib/discorb/message.rb:18 msgid "Initializes a new instance of the AllowedMentions class." msgstr "" # @param [Boolean] #: ../lib/discorb/message.rb:25 msgid "tag|param|replied_user" msgstr "" # @return [AllowedMentions] #: ../lib/discorb/message.rb:25 msgid "a new instance of AllowedMentions" msgstr "" # @param [Boolean] #: ../lib/discorb/message.rb:25 #: ../lib/discorb/message.rb:258 msgid "tag|param|everyone" msgstr "" # @param [Boolean, Array<Discorb::User>] #: ../lib/discorb/message.rb:25 msgid "tag|param|users" msgstr "" # Discorb::Message #: ../lib/discorb/message.rb:67 msgid "Represents a message." msgstr "" # @return [Discorb::User, Discorb::Member] #: ../lib/discorb/message.rb:73 msgid "The user that sent the message." msgstr "" # @param [String] content # @return [String] #: ../lib/discorb/message.rb:75 #: ../lib/discorb/message.rb:76 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "The content of the message." msgstr "" # @return [Time] #: ../lib/discorb/message.rb:78 #: ../lib/discorb/message.rb:79 #: ../lib/discorb/message.rb:80 msgid "The time the message was created." msgstr "" # @return [nil] #: ../lib/discorb/message.rb:83 #: ../lib/discorb/message.rb:84 #: ../lib/discorb/message.rb:85 msgid "If the message was not edited." msgstr "" # @return [Array<Discorb::Attachment>] #: ../lib/discorb/message.rb:87 msgid "The attachments of the message." msgstr "" # @return [Array<Discorb::Embed>] #: ../lib/discorb/message.rb:89 msgid "The embeds of the message." msgstr "" # @return [Array<Discorb::Reaction>] #: ../lib/discorb/message.rb:91 msgid "The reactions of the message." msgstr "" # Discorb::Message#type #: ../lib/discorb/message.rb:95 msgid "Currently, this will be one of:" msgstr "" # Discorb::Message#type #: ../lib/discorb/message.rb:97 msgid "* `:default`\n" "* `:recipient_add`\n" "* `:recipient_remove`\n" "* `:call`\n" "* `:channel_name_change`\n" "* `:channel_icon_change`\n" "* `:channel_pinned_message`\n" "* `:guild_member_join`\n" "* `:user_premium_guild_subscription`\n" "* `:user_premium_guild_subscription_tier_1`\n" "* `:user_premium_guild_subscription_tier_2`\n" "* `:user_premium_guild_subscription_tier_3`\n" "* `:channel_follow_add`\n" "* `:guild_discovery_disqualified`\n" "* `:guild_discovery_requalified`\n" "* `:guild_discovery_grace_period_initial_warning`\n" "* `:guild_discovery_grace_period_final_warning`\n" "* `:thread_created`\n" "* `:reply`\n" "* `:chat_input_command`\n" "* `:thread_starter_message`\n" "* `:guild_invite_reminder`\n" "* `:context_menu_command`" msgstr "" # @return [Symbol] #: ../lib/discorb/message.rb:120 msgid "The type of the message." msgstr "" # @return [Discorb::Message::Activity] #: ../lib/discorb/message.rb:122 msgid "The activity of the message." msgstr "" # @return [Discorb::Application] #: ../lib/discorb/message.rb:124 msgid "The application of the message." msgstr "" # @return [Discorb::Message::Reference] #: ../lib/discorb/message.rb:126 msgid "The reference of the message." msgstr "" # @see #: ../lib/discorb/message.rb:129 msgid "tag|see|Discorb::Message::Flag" msgstr "" # @return [Discorb::Message::Flag] #: ../lib/discorb/message.rb:129 msgid "The flag of the message." msgstr "" # @return [Discorb::Message::Sticker] #: ../lib/discorb/message.rb:131 msgid "The sticker of the message." msgstr "" # @return [Discorb::Message::Interaction] #: ../lib/discorb/message.rb:133 msgid "The interaction of the message." msgstr "" # @return [Discorb::ThreadChannel] #: ../lib/discorb/message.rb:135 msgid "The thread channel of the message." msgstr "" # @return [Array<Array<Discorb::Component>>] #: ../lib/discorb/message.rb:137 msgid "The components of the message." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:139 #: ../lib/discorb/message.rb:140 msgid "Whether the message is deleted." msgstr "" # @param [Boolean] tts # @return [Boolean] #: ../lib/discorb/message.rb:142 #: ../lib/discorb/message.rb:143 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 msgid "Whether the message is tts." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:145 #: ../lib/discorb/message.rb:146 msgid "Whether the message mentions everyone." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:148 #: ../lib/discorb/message.rb:149 msgid "Whether the message is pinned." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:234 msgid "Whether the message was sent by a webhook." msgstr "" # @return [nil] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:230 msgid "If the message was not sent in a guild." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:242 msgid "Whether the message was edited." msgstr "" # @return [String] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:238 msgid "The URL to jump to the message." msgstr "" # @return [Discorb::Embed] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:340 msgid "The embed of the message." msgstr "" # @return [nil] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:340 msgid "If the message has no embed." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:205 msgid "Whether the message is a reply." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:213 msgid "Whether the message was sent in a guild." msgstr "" # @return [Boolean] #: ../lib/discorb/message.rb:201 #: ../lib/discorb/message.rb:209 msgid "Whether the message was sent in a DM." msgstr "" # @return [Message] #: ../lib/discorb/message.rb:218 #: ../lib/discorb/webhook.rb:302 msgid "a new instance of Message" msgstr "" # Discorb::Message#clean_content #: ../lib/discorb/message.rb:247 msgid "Removes the mentions from the message." msgstr "" # @param [Boolean] channel #: ../lib/discorb/message.rb:258 msgid "Whether to clean channel mentions." msgstr "" # @param [Boolean] role #: ../lib/discorb/message.rb:258 msgid "Whether to clean role mentions." msgstr "" # @param [Boolean] emoji #: ../lib/discorb/message.rb:258 msgid "Whether to clean emoji." msgstr "" # @param [Boolean] #: ../lib/discorb/message.rb:258 msgid "tag|param|codeblock" msgstr "" # @param [Boolean] everyone #: ../lib/discorb/message.rb:258 msgid "Whether to clean `@everyone` and `@here`." msgstr "" # @param [Boolean] user #: ../lib/discorb/message.rb:258 msgid "Whether to clean user mentions." msgstr "" # @param [Boolean] codeblock #: ../lib/discorb/message.rb:258 msgid "Whether to clean codeblocks." msgstr "" # @return [String] #: ../lib/discorb/message.rb:258 msgid "The cleaned content of the message." msgstr "" # Discorb::Message#edit #: ../lib/discorb/message.rb:296 msgid "Edit the message." msgstr "" # @param [String] content #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 msgid "The message content." msgstr "" # @param [Array<Discorb::Embed>] embeds #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "The embeds to send." msgstr "" # @param [Boolean] #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:68 msgid "tag|param|supress" msgstr "" # @param [Boolean] supress #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:68 msgid "Whether to supress embeds." msgstr "" # @param [Discorb::AllowedMentions] allowed_mentions #: ../lib/discorb/message.rb:305 #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 #: ../lib/discorb/modules.rb:68 msgid "The allowed mentions." msgstr "" # Discorb::Message#delete! #: ../lib/discorb/message.rb:314 msgid "Delete the message." msgstr "" # @param [String] reason #: ../lib/discorb/message.rb:318 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 msgid "The reason for deleting the message." msgstr "" # Discorb::Message#to_reference #: ../lib/discorb/message.rb:325 msgid "Convert the message to reference object." msgstr "" # @param [Boolean] fail_if_not_exists #: ../lib/discorb/message.rb:331 msgid "Whether to raise an error if the message does not exist." msgstr "" # @return [Hash] #: ../lib/discorb/message.rb:331 msgid "The reference object." msgstr "" # @param [Boolean] #: ../lib/discorb/message.rb:331 #: ../lib/discorb/message.rb:543 msgid "tag|param|fail_if_not_exists" msgstr "" # Discorb::Message#reply #: ../lib/discorb/message.rb:345 msgid "Reply to the message." msgstr "" # Discorb::Message#publish #: ../lib/discorb/message.rb:356 msgid "Publish the message." msgstr "" # Discorb::Message#add_reaction # Discorb::Message#react_with #: ../lib/discorb/message.rb:367 #: ../lib/discorb/message.rb:380 msgid "Add a reaction to the message." msgstr "" # @param [Discorb::Emoji] emoji #: ../lib/discorb/message.rb:373 #: ../lib/discorb/message.rb:379 msgid "The emoji to react with." msgstr "" # Discorb::Message#delete_reaction # Discorb::Message#remove_reaction #: ../lib/discorb/message.rb:382 #: ../lib/discorb/message.rb:395 msgid "Remove a reaction from the message." msgstr "" # @param [Discorb::Emoji] emoji #: ../lib/discorb/message.rb:388 #: ../lib/discorb/message.rb:394 #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 msgid "The emoji to remove." msgstr "" # Discorb::Message#delete_reaction_of # Discorb::Message#remove_reaction_of #: ../lib/discorb/message.rb:397 #: ../lib/discorb/message.rb:411 msgid "Remove other member's reaction from the message." msgstr "" # @param [Discorb::Member] member #: ../lib/discorb/message.rb:404 #: ../lib/discorb/message.rb:410 msgid "The member to remove the reaction from." msgstr "" # Discorb::Message#fetch_reacted_users #: ../lib/discorb/message.rb:413 msgid "Fetch reacted users of reaction." msgstr "" # @param [Discorb::Emoji] emoji #: ../lib/discorb/message.rb:423 msgid "The emoji to fetch." msgstr "" # @param [Integer, nil] limit #: ../lib/discorb/message.rb:423 msgid "The maximum number of users to fetch. `nil` for no limit." msgstr "" # @return [Async::Task<Array<Discorb::User>>] #: ../lib/discorb/message.rb:423 msgid "The users." msgstr "" # @param [Discorb::Snowflake, nil] after #: ../lib/discorb/message.rb:423 msgid "The ID of the user to start fetching from." msgstr "" # Discorb::Message#pin #: ../lib/discorb/message.rb:447 msgid "Pin the message." msgstr "" # @param [String] reason #: ../lib/discorb/message.rb:453 msgid "The reason for pinning the message." msgstr "" # Discorb::Message#unpin #: ../lib/discorb/message.rb:460 msgid "Unpin the message." msgstr "" # @param [String] reason #: ../lib/discorb/message.rb:466 msgid "The reason for unpinning the message." msgstr "" # Discorb::Message#create_thread # Discorb::Message#start_thread #: ../lib/discorb/message.rb:473 #: ../lib/discorb/message.rb:486 msgid "Start thread from the message." msgstr "" # Discorb::Message#inspect #: ../lib/discorb/message.rb:488 msgid "Meta" msgstr "" # Discorb::Message::Flag #: ../lib/discorb/message.rb:494 msgid "Represents message flag.\n" "## Flag fields\n" "|Field|Value|\n" "|-|-|\n" "|`1 << 0`|`:crossposted`|\n" "|`1 << 1`|`:crosspost`|\n" "|`1 << 2`|`:supress_embeds`|\n" "|`1 << 3`|`:source_message_deleted`|\n" "|`1 << 4`|`:urgent`|\n" "|`1 << 5`|`:has_thread`|\n" "|`1 << 6`|`:ephemeral`|\n" "|`1 << 7`|`:loading`|" msgstr "" # Discorb::Message::Reference #: ../lib/discorb/message.rb:521 msgid "Represents reference of message." msgstr "" # @param [Discorb::Snowflake] message_id # @return [Discorb::Snowflake] #: ../lib/discorb/message.rb:529 #: ../lib/discorb/message.rb:543 msgid "The message ID." msgstr "" # @param [Boolean] fail_if_not_exists # @return [Boolean] #: ../lib/discorb/message.rb:531 #: ../lib/discorb/message.rb:533 #: ../lib/discorb/message.rb:543 msgid "Whether fail the request if the message is not found." msgstr "" # Discorb::Message::Reference#initialize #: ../lib/discorb/message.rb:536 msgid "Initialize a new reference." msgstr "" # @param [#to_s] # @param [Discorb::Snowflake] #: ../lib/discorb/message.rb:543 #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 msgid "tag|param|message_id" msgstr "" # @return [Reference] #: ../lib/discorb/message.rb:543 msgid "a new instance of Reference" msgstr "" # @param [Discorb::Snowflake] #: ../lib/discorb/message.rb:543 msgid "tag|param|channel_id" msgstr "" # Discorb::Message::Reference#to_hash # Discorb::Message::Reference#to_reference #: ../lib/discorb/message.rb:551 #: ../lib/discorb/message.rb:565 msgid "Convert the reference to a hash." msgstr "" # Discorb::Message::Reference.from_hash #: ../lib/discorb/message.rb:567 msgid "Initialize a new reference from a hash." msgstr "" # @see #: ../lib/discorb/message.rb:574 msgid "tag|see|https://discord.com/developers/docs/resources/channel#message-reference-object" msgstr "" # @return [Discorb::Message::Reference] #: ../lib/discorb/message.rb:574 msgid "The reference." msgstr "" # Discorb::Message::Sticker#id #: ../lib/discorb/message.rb:581 msgid "Returns the value of attribute id." msgstr "" # Discorb::Message::Sticker#format #: ../lib/discorb/message.rb:581 msgid "Returns the value of attribute format." msgstr "" # Discorb::Message::Sticker#name #: ../lib/discorb/message.rb:581 msgid "Returns the value of attribute name." msgstr "" # @return [Sticker] #: ../lib/discorb/message.rb:582 #: ../lib/discorb/sticker.rb:42 msgid "a new instance of Sticker" msgstr "" # Discorb::Message::Interaction #: ../lib/discorb/message.rb:638 msgid "Represents a interaction of message." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/message.rb:642 msgid "The user ID." msgstr "" # @return [nil] #: ../lib/discorb/message.rb:645 msgid "If the message is not a command." msgstr "" # @return [String] #: ../lib/discorb/message.rb:645 msgid "The name of command." msgstr "" # Discorb::Message::Activity #: ../lib/discorb/message.rb:661 msgid "Represents a activity of message." msgstr "" # @return [String] #: ../lib/discorb/message.rb:665 msgid "The name of activity." msgstr "" # Discorb::Messageable #: ../lib/discorb/modules.rb:5 msgid "Module for sending and reading messages." msgstr "" # Discorb::Messageable#post # Discorb::Messageable#send_message #: ../lib/discorb/modules.rb:9 #: ../lib/discorb/modules.rb:54 msgid "Post a message to the channel." msgstr "" # @param [Discorb::Message, Discorb::Message::Reference] reference #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 msgid "The message to reply to." msgstr "" # @param [Discorb::Message, Discorb::Message::Reference] #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 msgid "tag|param|reference" msgstr "" # @return [Async::Task<Discorb::Message>] #: ../lib/discorb/modules.rb:25 #: ../lib/discorb/modules.rb:53 msgid "The message sent." msgstr "" # Discorb::Messageable#edit_message #: ../lib/discorb/modules.rb:56 msgid "Edit a message." msgstr "" # @param [#to_s] message_id #: ../lib/discorb/modules.rb:68 #: ../lib/discorb/modules.rb:95 #: ../lib/discorb/modules.rb:101 msgid "The message id." msgstr "" # Discorb::Messageable#delete_message! # Discorb::Messageable#destroy_message! #: ../lib/discorb/modules.rb:88 #: ../lib/discorb/modules.rb:102 msgid "Delete a message." msgstr "" # Discorb::Messageable#fetch_message #: ../lib/discorb/modules.rb:104 msgid "Fetch a message from ID." msgstr "" # @raise [Discorb::NotFoundError] #: ../lib/discorb/modules.rb:113 msgid "If the message is not found." msgstr "" # Discorb::Messageable#fetch_messages #: ../lib/discorb/modules.rb:121 msgid "Fetch a message history." msgstr "" # @param [Discorb::Snowflake] before #: ../lib/discorb/modules.rb:132 msgid "The ID of the message to fetch before." msgstr "" # @param [Discorb::Snowflake] around #: ../lib/discorb/modules.rb:132 msgid "The ID of the message to fetch around." msgstr "" # @param [Discorb::Snowflake] #: ../lib/discorb/modules.rb:132 msgid "tag|param|around" msgstr "" # @return [Async::Task<Array<Discorb::Message>>] #: ../lib/discorb/modules.rb:132 msgid "The messages." msgstr "" # @param [Discorb::Snowflake] after #: ../lib/discorb/modules.rb:132 msgid "The ID of the message to fetch after." msgstr "" # @param [Integer] limit #: ../lib/discorb/modules.rb:132 msgid "The number of messages to fetch." msgstr "" # Discorb::Messageable#fetch_pins #: ../lib/discorb/modules.rb:146 msgid "Fetch the pinned messages in the channel." msgstr "" # @return [Async::Task<Array<Discorb::Message>>] #: ../lib/discorb/modules.rb:152 msgid "The pinned messages in the channel." msgstr "" # Discorb::Messageable#pin_message #: ../lib/discorb/modules.rb:160 msgid "Pin a message in the channel." msgstr "" # @param [Discorb::Message] message #: ../lib/discorb/modules.rb:167 msgid "The message to pin." msgstr "" # @param [String] reason #: ../lib/discorb/modules.rb:167 msgid "The reason of pinning the message." msgstr "" # Discorb::Messageable#unpin_message #: ../lib/discorb/modules.rb:174 msgid "Unpin a message in the channel." msgstr "" # @param [Discorb::Message] message #: ../lib/discorb/modules.rb:181 msgid "The message to unpin." msgstr "" # @param [String] reason #: ../lib/discorb/modules.rb:181 msgid "The reason of unpinning the message." msgstr "" # Discorb::Messageable#typing #: ../lib/discorb/modules.rb:188 msgid "Trigger the typing indicator in the channel.\n" "If block is given, trigger typing indicator during executing block." msgstr "" # @example #: ../lib/discorb/modules.rb:200 msgid "channel.typing do\n" " channel.post(\"Waiting for 60 seconds...\")\n" " sleep 60\n" " channel.post(\"Done!\")\n" "end" msgstr "" # Discorb::Connectable #: ../lib/discorb/modules.rb:222 msgid "Module for connecting to a voice channel.\n" "This will be discord-voice gem." msgstr "" # Discorb::Permission #: ../lib/discorb/permission.rb:5 msgid "Represents a permission per guild.\n" "## Flag fields" msgstr "" # Discorb::Permission #: ../lib/discorb/permission.rb:8 msgid "| Field | Value |\n" "|-------|-------|\n" "|`1 << 0`|`:create_instant_invite`|\n" "|`1 << 1`|`:kick_members`|\n" "|`1 << 2`|`:ban_members`|\n" "|`1 << 3`|`:administrator`|\n" "|`1 << 4`|`:manage_channels`|\n" "|`1 << 5`|`:manage_guild`|\n" "|`1 << 6`|`:add_reactions`|\n" "|`1 << 7`|`:view_audit_log`|\n" "|`1 << 8`|`:priority_speaker`|\n" "|`1 << 9`|`:stream`|\n" "|`1 << 10`|`:view_channel`|\n" "|`1 << 11`|`:send_messages`|\n" "|`1 << 12`|`:send_tts_messages`|\n" "|`1 << 13`|`:manage_messages`|\n" "|`1 << 14`|`:embed_links`|\n" "|`1 << 15`|`:attach_files`|\n" "|`1 << 16`|`:read_message_history`|\n" "|`1 << 17`|`:mention_everyone`|\n" "|`1 << 18`|`:use_external_emojis`|\n" "|`1 << 19`|`:view_guild_insights`|\n" "|`1 << 20`|`:connect`|\n" "|`1 << 21`|`:speak`|\n" "|`1 << 22`|`:mute_members`|\n" "|`1 << 23`|`:deafen_members`|\n" "|`1 << 24`|`:move_members`|\n" "|`1 << 25`|`:use_vad`|\n" "|`1 << 26`|`:change_nickname`|\n" "|`1 << 27`|`:manage_nicknames`|\n" "|`1 << 28`|`:manage_roles`|\n" "|`1 << 29`|`:manage_webhooks`|\n" "|`1 << 30`|`:manage_emojis`|\n" "|`1 << 31`|`:use_slash_commands`|\n" "|`1 << 32`|`:request_to_speak`|\n" "|`1 << 34`|`:manage_threads`|\n" "|`1 << 35`|`:use_public_threads`|\n" "|`1 << 36`|`:use_private_threads`|" msgstr "" # Discorb::PermissionOverwrite #: ../lib/discorb/permission.rb:89 msgid "Represents a permission per channel." msgstr "" # @return [PermissionOverwrite] #: ../lib/discorb/permission.rb:142 msgid "a new instance of PermissionOverwrite" msgstr "" # Discorb::PermissionOverwrite#to_hash #: ../lib/discorb/permission.rb:172 msgid "Converts the permission overwrite to a hash." msgstr "" # @return [Hash] #: ../lib/discorb/permission.rb:176 msgid "The permission overwrite as a hash." msgstr "" # Discorb::PermissionOverwrite#+ #: ../lib/discorb/permission.rb:187 msgid "Union of the permission overwrites." msgstr "" # @param [Discorb::PermissionOverwrite] other #: ../lib/discorb/permission.rb:193 msgid "The other permission overwrite." msgstr "" # @return [Discorb::PermissionOverwrite] #: ../lib/discorb/permission.rb:193 msgid "The union of the permission overwrites." msgstr "" # Discorb::PermissionOverwrite#[] #: ../lib/discorb/permission.rb:202 msgid "Returns whether overwrite of the given field." msgstr "" # @param [Symbol] #: ../lib/discorb/permission.rb:208 msgid "tag|param|field" msgstr "" # @param [Symbol] field #: ../lib/discorb/permission.rb:208 msgid "The field to check." msgstr "" # @return [true, false, nil] #: ../lib/discorb/permission.rb:208 msgid "Whether the field is allowed, denied or not set." msgstr "" # Discorb::PermissionOverwrite#[]= #: ../lib/discorb/permission.rb:217 msgid "Sets the given field to the given value." msgstr "" # @param [Symbol] key #: ../lib/discorb/permission.rb:222 msgid "The field to set." msgstr "" # @param [Boolean] #: ../lib/discorb/permission.rb:222 msgid "tag|param|bool" msgstr "" # @param [Boolean] bool #: ../lib/discorb/permission.rb:222 msgid "The value to set." msgstr "" # Discorb::PermissionOverwrite.from_hash #: ../lib/discorb/permission.rb:259 msgid "Initializes a permission overwrite from a hash." msgstr "" # @param [Hash] hash #: ../lib/discorb/permission.rb:265 msgid "The hash to initialize the permission overwrite from." msgstr "" # @return [Discorb::PermissionOverwrite] #: ../lib/discorb/permission.rb:265 msgid "The permission overwrite." msgstr "" # Discorb::Presence #: ../lib/discorb/presence.rb:5 msgid "Represents a presence of user." msgstr "" # @return [:online, :idle, :dnd, :offline] #: ../lib/discorb/presence.rb:9 msgid "The status of the user." msgstr "" # @return [Array<Discorb::Presence::Activity>] #: ../lib/discorb/presence.rb:11 msgid "The activities of the user." msgstr "" # @return [Discorb::Presence::ClientStatus] #: ../lib/discorb/presence.rb:13 msgid "The client status of the user." msgstr "" # @return [Discorb::User] #: ../lib/discorb/presence.rb:15 #: ../lib/discorb/presence.rb:29 msgid "The user of the presence." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/presence.rb:15 #: ../lib/discorb/presence.rb:33 msgid "The guild of the presence." msgstr "" # @return [Discorb::Presence::Activity] #: ../lib/discorb/presence.rb:15 #: ../lib/discorb/presence.rb:37 msgid "The activity of the presence." msgstr "" # @return [Presence] #: ../lib/discorb/presence.rb:23 msgid "a new instance of Presence" msgstr "" # Discorb::Presence::Activity #: ../lib/discorb/presence.rb:46 msgid "Represents an activity of a user." msgstr "" # @return [:game, :streaming, :listening, :watching, :custom, :competing] #: ../lib/discorb/presence.rb:52 msgid "The type of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:54 msgid "The url of the activity." msgstr "" # @return [Time] #: ../lib/discorb/presence.rb:56 #: ../lib/discorb/presence.rb:57 msgid "The time the activity was created." msgstr "" # @return [Discorb::Presence::Activity::Timestamps] #: ../lib/discorb/presence.rb:59 msgid "The timestamps of the activity." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/presence.rb:61 msgid "The application id of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:63 msgid "The details of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:65 msgid "The state of party." msgstr "" # @return [Discorb::Emoji] #: ../lib/discorb/presence.rb:67 msgid "The emoji of the activity." msgstr "" # @return [nil] #: ../lib/discorb/presence.rb:70 msgid "If the activity is not a party activity." msgstr "" # @return [Discorb::Presence::Activity::Party] #: ../lib/discorb/presence.rb:70 msgid "The party of the activity." msgstr "" # @return [nil] #: ../lib/discorb/presence.rb:73 msgid "If the activity has no assets." msgstr "" # @return [Discorb::Presence::Activity::Asset] #: ../lib/discorb/presence.rb:73 msgid "The assets of the activity." msgstr "" # @return [nil] #: ../lib/discorb/presence.rb:76 msgid "If the activity is not a stage activity." msgstr "" # @return [Discorb::StageInstance] #: ../lib/discorb/presence.rb:76 msgid "The instance of the activity." msgstr "" # @return [nil] #: ../lib/discorb/presence.rb:79 msgid "If the activity has no buttons." msgstr "" # @return [Array<Discorb::Presence::Activity::Button>] #: ../lib/discorb/presence.rb:79 msgid "The buttons of the activity." msgstr "" # @return [Discorb::Presence::Activity::Flag] #: ../lib/discorb/presence.rb:81 msgid "The flags of the activity." msgstr "" # Discorb::Presence::Activity#to_s #: ../lib/discorb/presence.rb:113 msgid "Convert the activity to a string." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:117 msgid "The string representation of the activity." msgstr "" # Discorb::Presence::Activity::Timestamps #: ../lib/discorb/presence.rb:135 msgid "Represents the timestamps of an activity." msgstr "" # @return [Time] #: ../lib/discorb/presence.rb:139 msgid "The start time of the activity." msgstr "" # @return [Time] #: ../lib/discorb/presence.rb:141 msgid "The end time of the activity." msgstr "" # @return [Timestamps] #: ../lib/discorb/presence.rb:144 msgid "a new instance of Timestamps" msgstr "" # @return [String] #: ../lib/discorb/presence.rb:152 msgid "The id of the party." msgstr "" # @return [Integer] #: ../lib/discorb/presence.rb:154 #: ../lib/discorb/presence.rb:169 msgid "The max size of the party." msgstr "" # @return [Integer] #: ../lib/discorb/presence.rb:154 #: ../lib/discorb/presence.rb:165 msgid "The current size of the party." msgstr "" # @return [Party] #: ../lib/discorb/presence.rb:160 msgid "a new instance of Party" msgstr "" # Discorb::Presence::Activity::Asset #: ../lib/discorb/presence.rb:175 msgid "Represents the assets of an activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:179 #: ../lib/discorb/presence.rb:180 msgid "The large image ID of the asset." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:182 msgid "The large text of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:184 #: ../lib/discorb/presence.rb:185 msgid "The small image ID of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:187 msgid "The small text of the activity." msgstr "" # Discorb::Presence::Activity::Flag #: ../lib/discorb/presence.rb:198 msgid "Represents the flags of an activity.\n" "## Flag fields\n" "|`1 << 0`|`:instance`|\n" "|`1 << 1`|`:join`|\n" "|`1 << 2`|`:spectate`|\n" "|`1 << 3`|`:join_request`|\n" "|`1 << 4`|`:sync`|\n" "|`1 << 5`|`:play`|" msgstr "" # Discorb::Presence::Activity::Secrets #: ../lib/discorb/presence.rb:219 msgid "Represents a secrets of an activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:223 msgid "The join secret of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:225 msgid "The spectate secret of the activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:227 msgid "The match secret of the activity." msgstr "" # @return [Secrets] #: ../lib/discorb/presence.rb:230 msgid "a new instance of Secrets" msgstr "" # Discorb::Presence::Activity::Button #: ../lib/discorb/presence.rb:238 msgid "Represents a button of an activity." msgstr "" # @return [String] #: ../lib/discorb/presence.rb:242 #: ../lib/discorb/presence.rb:245 msgid "The text of the button." msgstr "" # Discorb::Presence::ClientStatus #: ../lib/discorb/presence.rb:261 msgid "Represents a user's client status." msgstr "" # @return [Symbol] #: ../lib/discorb/presence.rb:265 msgid "The desktop status of the user." msgstr "" # @return [Symbol] #: ../lib/discorb/presence.rb:267 msgid "The mobile status of the user." msgstr "" # @return [Symbol] #: ../lib/discorb/presence.rb:269 msgid "The web status of the user." msgstr "" # @return [Boolean] #: ../lib/discorb/presence.rb:271 #: ../lib/discorb/presence.rb:285 msgid "Whether the user is not offline on desktop." msgstr "" # @return [Boolean] #: ../lib/discorb/presence.rb:271 #: ../lib/discorb/presence.rb:289 msgid "Whether the user is not offline on mobile." msgstr "" # @return [Boolean] #: ../lib/discorb/presence.rb:271 #: ../lib/discorb/presence.rb:293 msgid "Whether the user is not offline on web." msgstr "" # @return [ClientStatus] #: ../lib/discorb/presence.rb:279 msgid "a new instance of ClientStatus" msgstr "" # Discorb::RatelimitHandler #: ../lib/discorb/rate_limit.rb:5 msgid "Class to handle rate limiting." msgstr "" # @return [RatelimitHandler] #: ../lib/discorb/rate_limit.rb:10 msgid "a new instance of RatelimitHandler" msgstr "" # Discorb::RatelimitHandler#wait #: ../lib/discorb/rate_limit.rb:22 msgid "Wait for the rate limit to reset." msgstr "" # @param [String] #: ../lib/discorb/rate_limit.rb:27 #: ../lib/discorb/rate_limit.rb:59 msgid "tag|param|method" msgstr "" # @param [String] method #: ../lib/discorb/rate_limit.rb:27 #: ../lib/discorb/rate_limit.rb:59 msgid "The HTTP method." msgstr "" # @param [String] path #: ../lib/discorb/rate_limit.rb:27 #: ../lib/discorb/rate_limit.rb:59 msgid "The path." msgstr "" # Discorb::RatelimitHandler#save #: ../lib/discorb/rate_limit.rb:53 msgid "Save the rate limit." msgstr "" # @param [Net::HTTPResponse] resp #: ../lib/discorb/rate_limit.rb:59 msgid "The response." msgstr "" # @param [Net::HTTPResponse] #: ../lib/discorb/rate_limit.rb:59 msgid "tag|param|resp" msgstr "" # Discorb::Reaction #: ../lib/discorb/reaction.rb:5 msgid "Represents a reaction to a message." msgstr "" # @return [Integer] #: ../lib/discorb/reaction.rb:9 msgid "The number of users that have reacted with this emoji." msgstr "" # @return [Discorb::Message] #: ../lib/discorb/reaction.rb:13 msgid "The message that this reaction is on." msgstr "" # @return [Boolean] #: ../lib/discorb/reaction.rb:15 #: ../lib/discorb/reaction.rb:16 #: ../lib/discorb/reaction.rb:17 msgid "Whether client user reacted with this emoji." msgstr "" # @return [Reaction] #: ../lib/discorb/reaction.rb:20 msgid "a new instance of Reaction" msgstr "" # Discorb::Role #: ../lib/discorb/role.rb:5 msgid "Represents a role in the guild." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/role.rb:9 msgid "The ID of the role." msgstr "" # @return [Integer] #: ../lib/discorb/role.rb:17 msgid "The position of the role." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/role.rb:19 msgid "The guild this role belongs to." msgstr "" # @return [Boolean] #: ../lib/discorb/role.rb:21 #: ../lib/discorb/role.rb:22 msgid "Whether the role is hoisted." msgstr "" # @return [Boolean] #: ../lib/discorb/role.rb:24 #: ../lib/discorb/role.rb:25 msgid "Whether the role is managed." msgstr "" # @return [Boolean] #: ../lib/discorb/role.rb:27 #: ../lib/discorb/role.rb:28 msgid "Whether the role is a default role." msgstr "" # @return [Discorb::Asset, nil] #: ../lib/discorb/role.rb:30 msgid "The icon of the role." msgstr "" # @return [Discorb::Emoji, nil] #: ../lib/discorb/role.rb:32 msgid "The emoji of the role." msgstr "" # Discorb::Role#<=> #: ../lib/discorb/role.rb:58 msgid "Compares two roles by their position." msgstr "" # @return [Integer] #: ../lib/discorb/role.rb:64 msgid "-1 if the other role is higher, 0 if they are equal, 1 if the other role is lower." msgstr "" # @param [Discorb::Role] other #: ../lib/discorb/role.rb:64 msgid "The role to compare to." msgstr "" # Discorb::Role#to_s #: ../lib/discorb/role.rb:71 msgid "Formats the role as a string." msgstr "" # @return [String] #: ../lib/discorb/role.rb:75 msgid "The formatted string." msgstr "" # Discorb::Role#move #: ../lib/discorb/role.rb:92 msgid "Moves the role to a new position." msgstr "" # @param [Integer] position #: ../lib/discorb/role.rb:99 msgid "The new position." msgstr "" # @param [String] reason #: ../lib/discorb/role.rb:99 msgid "The reason for moving the role." msgstr "" # Discorb::Role#edit # Discorb::Role#modify #: ../lib/discorb/role.rb:106 #: ../lib/discorb/role.rb:139 msgid "Edits the role." msgstr "" # @param [Discorb::Color] color #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "The new color of the role." msgstr "" # @param [Integer] position #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "The new position of the role." msgstr "" # @param [String] name #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "The new name of the role." msgstr "" # @param [String] reason #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "The reason for editing the role." msgstr "" # @param [Discorb::Image, Discorb::UnicodeEmoji] icon #: ../lib/discorb/role.rb:119 #: ../lib/discorb/role.rb:138 msgid "The new icon or emoji of the role." msgstr "" # Discorb::Role#delete! # Discorb::Role#destroy! #: ../lib/discorb/role.rb:141 #: ../lib/discorb/role.rb:152 msgid "Deletes the role." msgstr "" # @param [String] reason #: ../lib/discorb/role.rb:145 #: ../lib/discorb/role.rb:151 msgid "The reason for deleting the role." msgstr "" # Discorb::Role::Tag #: ../lib/discorb/role.rb:160 msgid "Represents a tag of a role." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/role.rb:164 msgid "The ID of the bot that owns the role." msgstr "" # @return [Boolean] #: ../lib/discorb/role.rb:168 #: ../lib/discorb/role.rb:169 msgid "Whether the tag is a premium subscriber role." msgstr "" # @return [Boolean] #: ../lib/discorb/role.rb:170 #: ../lib/discorb/role.rb:186 msgid "Whether the role is an integration role." msgstr "" # @return [Boolean] #: ../lib/discorb/role.rb:170 #: ../lib/discorb/role.rb:182 msgid "Whether the role is a bot role." msgstr "" # @return [Tag] #: ../lib/discorb/role.rb:176 msgid "a new instance of Tag" msgstr "" # Discorb::Sticker #: ../lib/discorb/sticker.rb:5 msgid "Represents a sticker." msgstr "" # @return [String] #: ../lib/discorb/sticker.rb:11 msgid "The name of the sticker." msgstr "" # @return [Array<String>] #: ../lib/discorb/sticker.rb:13 msgid "The tags of the sticker." msgstr "" # @return [:official, :guild] #: ../lib/discorb/sticker.rb:15 msgid "The type of sticker." msgstr "" # @return [:png, :apng, :lottie] #: ../lib/discorb/sticker.rb:17 msgid "The format of the sticker." msgstr "" # @return [String] #: ../lib/discorb/sticker.rb:19 msgid "The URL of the sticker." msgstr "" # @return [Discorb::Snowflake] # @return [Discorb::Sticker] #: ../lib/discorb/sticker.rb:21 #: ../lib/discorb/sticker.rb:112 msgid "The ID of the sticker pack." msgstr "" # @return [Integer] #: ../lib/discorb/sticker.rb:23 msgid "The sort value of the sticker." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/sticker.rb:25 msgid "The ID of the guild the sticker is in." msgstr "" # @return [Discorb::User] #: ../lib/discorb/sticker.rb:27 msgid "The user who created the sticker." msgstr "" # @return [Boolean] #: ../lib/discorb/sticker.rb:29 #: ../lib/discorb/sticker.rb:30 msgid "Whether the sticker is available." msgstr "" # Discorb::Sticker::GuildSticker #: ../lib/discorb/sticker.rb:48 msgid "Represents a sticker of guilds." msgstr "" # Discorb::Sticker::GuildSticker#edit # Discorb::Sticker::GuildSticker#modify #: ../lib/discorb/sticker.rb:69 #: ../lib/discorb/sticker.rb:90 msgid "Edits the sticker." msgstr "" # @param [Discorb::Emoji] #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 msgid "tag|param|tag" msgstr "" # @param [Discorb::Emoji] tag #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 msgid "The new tags of the sticker." msgstr "" # @param [String] reason #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 msgid "The reason for the edit." msgstr "" # @param [String] name #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 msgid "The new name of the sticker." msgstr "" # @param [String] description #: ../lib/discorb/sticker.rb:79 #: ../lib/discorb/sticker.rb:89 msgid "The new description of the sticker." msgstr "" # Discorb::Sticker::GuildSticker#delete! # Discorb::Sticker::GuildSticker#destroy! #: ../lib/discorb/sticker.rb:92 #: ../lib/discorb/sticker.rb:105 msgid "Deletes the sticker." msgstr "" # @param [String] reason #: ../lib/discorb/sticker.rb:98 #: ../lib/discorb/sticker.rb:104 msgid "The reason for the deletion." msgstr "" # Discorb::Sticker::Pack #: ../lib/discorb/sticker.rb:108 msgid "Represents a sticker pack." msgstr "" # @return [String] #: ../lib/discorb/sticker.rb:114 msgid "The name of the sticker pack." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/sticker.rb:116 msgid "The cover sticker of the pack." msgstr "" # @return [String] #: ../lib/discorb/sticker.rb:118 msgid "The description of the pack." msgstr "" # @return [Array<Discorb::Sticker>] #: ../lib/discorb/sticker.rb:120 msgid "The stickers in the pack." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/sticker.rb:122 msgid "The banner of the pack." msgstr "" # @return [Pack] #: ../lib/discorb/sticker.rb:125 msgid "a new instance of Pack" msgstr "" # Discorb::User #: ../lib/discorb/user.rb:5 msgid "Represents a user of discord." msgstr "" # @return [Boolean] #: ../lib/discorb/user.rb:9 msgid "Whether the user is verified." msgstr "" # @return [String] #: ../lib/discorb/user.rb:11 #: ../lib/discorb/user.rb:12 msgid "The user's username." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/user.rb:14 msgid "The user's ID." msgstr "" # @return [Discorb::User::Flag] #: ../lib/discorb/user.rb:16 msgid "The user's flags." msgstr "" # @return [String] #: ../lib/discorb/user.rb:18 msgid "The user's discriminator." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/user.rb:20 msgid "The user's avatar." msgstr "" # @return [Boolean] #: ../lib/discorb/user.rb:22 #: ../lib/discorb/user.rb:23 msgid "Whether the user is a bot." msgstr "" # @return [Time] #: ../lib/discorb/user.rb:25 msgid "The time the user was created." msgstr "" # @return [String] #: ../lib/discorb/user.rb:29 #: ../lib/discorb/user.rb:49 msgid "The user's mention." msgstr "" # @return [User] #: ../lib/discorb/user.rb:33 msgid "a new instance of User" msgstr "" # Discorb::User#to_s # Discorb::User#to_s_user #: ../lib/discorb/user.rb:41 #: ../lib/discorb/user.rb:54 msgid "Format the user as `Username#Discriminator` style." msgstr "" # @return [String] #: ../lib/discorb/user.rb:45 #: ../lib/discorb/user.rb:53 msgid "The formatted username." msgstr "" # @return [Async::Task<Boolean>] # Discorb::User#app_owner? # Discorb::User#bot_owner? #: ../lib/discorb/user.rb:60 #: ../lib/discorb/user.rb:68 #: ../lib/discorb/user.rb:81 #: ../lib/discorb/user.rb:82 msgid "Whether the user is a owner of the client." msgstr "" # @param [Boolean] #: ../lib/discorb/user.rb:68 #: ../lib/discorb/user.rb:81 msgid "tag|param|strict" msgstr "" # @param [Boolean] strict #: ../lib/discorb/user.rb:68 #: ../lib/discorb/user.rb:81 msgid "Whether don't allow if the user is a member of the team." msgstr "" # Discorb::User::Flag #: ../lib/discorb/user.rb:95 msgid "Represents the user's flags.\n" "## Flag fields\n" "|`1 << 0`|`:discord_employee`|\n" "|`1 << 1`|`:partnered_server_owner`|\n" "|`1 << 2`|`:hypesquad_events`|\n" "|`1 << 3`|`:bug_hunter_level_1`|\n" "|`1 << 6`|`:house_bravery`|\n" "|`1 << 7`|`:house_brilliance`|\n" "|`1 << 8`|`:house_balance`|\n" "|`1 << 9`|`:early_supporter`|\n" "|`1 << 10`|`:team_user`|\n" "|`1 << 14`|`:bug_hunter_level_2`|\n" "|`1 << 16`|`:verified_bot`|\n" "|`1 << 17`|`:early_verified_bot_developer`|\n" "|`1 << 18`|`:discord_certified_moderator`|" msgstr "" # Discorb::ClientUser #: ../lib/discorb/user.rb:148 msgid "Represents a client user." msgstr "" # Discorb::ClientUser#edit #: ../lib/discorb/user.rb:152 msgid "Edit the client user." msgstr "" # @param [Discorb::Image] avatar #: ../lib/discorb/user.rb:160 msgid "The new avatar." msgstr "" # @param [String] name #: ../lib/discorb/user.rb:160 msgid "The new username." msgstr "" # @return [Discorb::Member] #: ../lib/discorb/voice_state.rb:6 msgid "The member associated with this voice state." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/voice_state.rb:8 #: ../lib/discorb/voice_state.rb:111 msgid "The ID of the guild this voice state is for." msgstr "" # @return [Time] #: ../lib/discorb/voice_state.rb:10 msgid "The time at which the user requested to speak." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:12 #: ../lib/discorb/voice_state.rb:13 #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:52 msgid "Whether the user is deafened." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:15 #: ../lib/discorb/voice_state.rb:16 #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:56 msgid "Whether the user is muted." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:18 #: ../lib/discorb/voice_state.rb:19 #: ../lib/discorb/voice_state.rb:20 msgid "Whether the user is streaming." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:22 #: ../lib/discorb/voice_state.rb:23 msgid "Whether the user is video-enabled." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:25 #: ../lib/discorb/voice_state.rb:26 msgid "Whether the user is suppressed. (Is at audience)" msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:64 msgid "Whether the user is muted on the server." msgstr "" # @return [Discorb::Guild] #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:68 msgid "The guild this voice state is for." msgstr "" # @return [Discorb::Channel] #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:72 msgid "The channel this voice state is for." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:60 msgid "Whether the user is deafened on the server." msgstr "" # @return [Discorb::User] #: ../lib/discorb/voice_state.rb:28 #: ../lib/discorb/voice_state.rb:76 msgid "The user this voice state is for." msgstr "" # @return [VoiceState] #: ../lib/discorb/voice_state.rb:47 msgid "a new instance of VoiceState" msgstr "" # Discorb::StageInstance #: ../lib/discorb/voice_state.rb:107 msgid "Represents a stage instance of a voice state." msgstr "" # @return [:public, :guild_only] #: ../lib/discorb/voice_state.rb:115 msgid "The privacy level of the stage instance." msgstr "" # @return [StageInstance] #: ../lib/discorb/voice_state.rb:136 msgid "a new instance of StageInstance" msgstr "" # Discorb::StageInstance#edit # Discorb::StageInstance#modify #: ../lib/discorb/voice_state.rb:168 #: ../lib/discorb/voice_state.rb:188 msgid "Edits the stage instance." msgstr "" # @param [String] topic #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 msgid "The new topic of the stage instance." msgstr "" # @param [:public, :guild_only] privacy_level #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 msgid "The new privacy level of the stage instance." msgstr "" # @param [String] reason #: ../lib/discorb/voice_state.rb:177 #: ../lib/discorb/voice_state.rb:187 msgid "The reason for editing the stage instance." msgstr "" # Discorb::StageInstance#delete! # Discorb::StageInstance#destroy! # Discorb::StageInstance#end! #: ../lib/discorb/voice_state.rb:190 #: ../lib/discorb/voice_state.rb:202 #: ../lib/discorb/voice_state.rb:203 msgid "Deletes the stage instance." msgstr "" # @param [String] reason #: ../lib/discorb/voice_state.rb:194 #: ../lib/discorb/voice_state.rb:201 #: ../lib/discorb/voice_state.rb:202 msgid "The reason for deleting the stage instance." msgstr "" # Discorb::VoiceRegion #: ../lib/discorb/voice_state.rb:221 msgid "Represents a voice region." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/voice_state.rb:225 msgid "The ID of the voice region." msgstr "" # @return [String] #: ../lib/discorb/voice_state.rb:227 msgid "The name of the voice region." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:229 #: ../lib/discorb/voice_state.rb:230 msgid "Whether the voice region is VIP." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:232 #: ../lib/discorb/voice_state.rb:233 msgid "Whether the voice region is optimal." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:235 #: ../lib/discorb/voice_state.rb:236 msgid "Whether the voice region is deprecated." msgstr "" # @return [Boolean] #: ../lib/discorb/voice_state.rb:238 #: ../lib/discorb/voice_state.rb:239 msgid "Whether the voice region is custom." msgstr "" # @return [VoiceRegion] #: ../lib/discorb/voice_state.rb:242 msgid "a new instance of VoiceRegion" msgstr "" # Discorb::Webhook #: ../lib/discorb/webhook.rb:5 msgid "Represents a webhook." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/webhook.rb:12 msgid "The ID of the guild this webhook belongs to." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/webhook.rb:14 msgid "The ID of the channel this webhook belongs to." msgstr "" # @return [Discorb::User] #: ../lib/discorb/webhook.rb:16 msgid "The user that created this webhook." msgstr "" # @return [nil] #: ../lib/discorb/webhook.rb:21 msgid "If the webhook is not an application webhook." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/webhook.rb:21 msgid "The application ID of the webhook." msgstr "" # @param [String] url # @return [String] #: ../lib/discorb/webhook.rb:23 #: ../lib/discorb/webhook.rb:190 #: ../lib/discorb/webhook.rb:197 #: ../lib/discorb/webhook.rb:208 #: ../lib/discorb/webhook.rb:217 #: ../lib/discorb/webhook.rb:404 msgid "The URL of the webhook." msgstr "" # @return [Webhook] #: ../lib/discorb/webhook.rb:26 msgid "a new instance of Webhook" msgstr "" # Discorb::Webhook#execute # Discorb::Webhook#post #: ../lib/discorb/webhook.rb:45 #: ../lib/discorb/webhook.rb:93 msgid "Posts a message to the webhook." msgstr "" # @param [Boolean] tts #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "Whether the message should be sent as text-to-speech." msgstr "" # @param [Boolean] wait #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "Whether to wait for the message to be sent." msgstr "" # @param [String] #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "tag|param|avatar_url" msgstr "" # @return [Async::Task<nil>] #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "If `wait` is false." msgstr "" # @param [String] avatar_url #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "The avatar URL of the message." msgstr "" # @return [Discorb::Webhook::Message] #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "The message that was sent." msgstr "" # @param [Boolean] #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "tag|param|wait" msgstr "" # @param [String] username #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "The username of the message." msgstr "" # @param [String] #: ../lib/discorb/webhook.rb:63 #: ../lib/discorb/webhook.rb:92 msgid "tag|param|username" msgstr "" # Discorb::Webhook#edit # Discorb::Webhook#modify #: ../lib/discorb/webhook.rb:95 #: ../lib/discorb/webhook.rb:115 msgid "Edits the webhook." msgstr "" # @param [String] name #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 msgid "The new name of the webhook." msgstr "" # @param [Discorb::Image] avatar #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 msgid "The new avatar of the webhook." msgstr "" # @param [Discorb::GuildChannel] channel #: ../lib/discorb/webhook.rb:104 #: ../lib/discorb/webhook.rb:114 msgid "The new channel of the webhook." msgstr "" # Discorb::Webhook#delete! # Discorb::Webhook#destroy! #: ../lib/discorb/webhook.rb:117 #: ../lib/discorb/webhook.rb:129 msgid "Deletes the webhook." msgstr "" # Discorb::Webhook#edit_message #: ../lib/discorb/webhook.rb:131 msgid "Edits the webhook's message." msgstr "" # @param [Discorb::Webhook::Message] message #: ../lib/discorb/webhook.rb:145 msgid "The message to edit." msgstr "" # Discorb::Webhook#delete_message! #: ../lib/discorb/webhook.rb:174 msgid "Deletes the webhook's message." msgstr "" # @param [Discorb::Webhook::Message] message #: ../lib/discorb/webhook.rb:178 msgid "The message to delete." msgstr "" # Discorb::Webhook::URLWebhook #: ../lib/discorb/webhook.rb:186 msgid "Represents a webhook from URL." msgstr "" # Discorb::Webhook::URLWebhook#initialize #: ../lib/discorb/webhook.rb:193 msgid "Initializes the webhook from URL." msgstr "" # @return [URLWebhook] #: ../lib/discorb/webhook.rb:197 msgid "a new instance of URLWebhook" msgstr "" # Discorb::Webhook::IncomingWebhook #: ../lib/discorb/webhook.rb:205 msgid "Represents a bot created webhook." msgstr "" # @return [IncomingWebhook] #: ../lib/discorb/webhook.rb:212 msgid "a new instance of IncomingWebhook" msgstr "" # Discorb::Webhook::FollowerWebhook #: ../lib/discorb/webhook.rb:223 msgid "Represents a webhook of channel following." msgstr "" # @return [Discorb::Guild, Discorb::Webhook::FollowerWebhook::Guild] #: ../lib/discorb/webhook.rb:226 #: ../lib/discorb/webhook.rb:240 msgid "The source guild of follower webhook." msgstr "" # @return [Discorb::Channel, Discorb::Webhook::FollowerWebhook::Channel] #: ../lib/discorb/webhook.rb:226 #: ../lib/discorb/webhook.rb:244 msgid "The source channel of follower webhook." msgstr "" # Discorb::Webhook::FollowerWebhook#source_channel #: ../lib/discorb/webhook.rb:227 #: ../lib/discorb/webhook.rb:245 msgid "Represents a source channel of follower webhook." msgstr "" # Discorb::Webhook::FollowerWebhook#source_guild #: ../lib/discorb/webhook.rb:227 #: ../lib/discorb/webhook.rb:241 msgid "Represents a source guild of follower webhook." msgstr "" # @return [FollowerWebhook] #: ../lib/discorb/webhook.rb:234 msgid "a new instance of FollowerWebhook" msgstr "" # Discorb::Webhook::FollowerWebhook::Guild #: ../lib/discorb/webhook.rb:249 msgid "Represents a guild of follower webhook." msgstr "" # Discorb::Webhook::FollowerWebhook::Channel #: ../lib/discorb/webhook.rb:268 msgid "Represents a channel of follower webhook." msgstr "" # Discorb::Webhook::ApplicationWebhook #: ../lib/discorb/webhook.rb:285 msgid "Represents a webhook from oauth2." msgstr "" # Discorb::Webhook::Message #: ../lib/discorb/webhook.rb:293 msgid "Represents a webhook message." msgstr "" # Discorb::Webhook::Message#delete! #: ../lib/discorb/webhook.rb:324 msgid "Deletes the message." msgstr "" # Discorb::Webhook::Message::Author #: ../lib/discorb/webhook.rb:356 msgid "Represents an author of webhook message." msgstr "" # @return [Boolean] #: ../lib/discorb/webhook.rb:361 #: ../lib/discorb/webhook.rb:362 msgid "Whether the author is a bot." msgstr "" # @note #: ../lib/discorb/webhook.rb:361 #: ../lib/discorb/webhook.rb:362 msgid "This will be always `true`." msgstr "" # @return [Discorb::Snowflake] #: ../lib/discorb/webhook.rb:364 msgid "The ID of the author." msgstr "" # @return [String] #: ../lib/discorb/webhook.rb:366 #: ../lib/discorb/webhook.rb:367 msgid "The name of the author." msgstr "" # @return [Discorb::Asset] #: ../lib/discorb/webhook.rb:369 msgid "The avatar of the author." msgstr "" # @return [String] #: ../lib/discorb/webhook.rb:371 msgid "The discriminator of the author." msgstr "" # Discorb::Webhook::Message::Author#to_s # Discorb::Webhook::Message::Author#to_s_user #: ../lib/discorb/webhook.rb:384 #: ../lib/discorb/webhook.rb:393 msgid "Format author with `Name#Discriminator` style." msgstr "" # @return [String] #: ../lib/discorb/webhook.rb:388 #: ../lib/discorb/webhook.rb:392 msgid "Formatted author." msgstr "" # Discorb::Webhook.new #: ../lib/discorb/webhook.rb:398 msgid "Creates URLWebhook." msgstr "" # @return [Discorb::Webhook::URLWebhook] #: ../lib/discorb/webhook.rb:404 msgid "The URLWebhook." msgstr ""