# 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 , 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 \n" "Language-Team: LANGUAGE \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` 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 "
\"discorb\"
" msgstr "" #: ../README.md:3 msgid "
\"Document\"\n" "\"Gem\"\n" "\"Gem\"\n" "\"Discord\"\n" "\"GitHub\"\n" "\"Code
" 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>` | 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 ...\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::File} class." msgstr "" #: ../docs/faq.md:67 msgid "```ruby\n" "# Send a file\n" "message.channel.post file: Discorb::File.new(File.open(\"./README.md\"))" msgstr "" #: ../docs/faq.md:71 msgid "# Send some files with text\n" "message.channel.post \"File!\", files: [Discorb::File.new(File.open(\"./README.md\")), Discorb::File.new(File.open(\"./License.txt\"))]" msgstr "" #: ../docs/faq.md:74 msgid "# Send a string as a file\n" "message.channel.post file: Discorb::File.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" "![](./assets/01_new_app.png)" msgstr "" #: ../docs/tutorial.md:39 msgid "And then type a name for your bot, and click `Create`. \n" "![](./assets/02_bot_name.png)" 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" "![](./assets/03_add_bot.png)" msgstr "" #: ../docs/tutorial.md:46 msgid "You will see bot information, and click `Copy` button in TOKEN section. \n" "![](./assets/04_token_copy.png)" 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" "![](./assets/05_oauth.png)\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" "![](./assets/06_online.png)" 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 "![](./assets/07_hello_infinite.png)" 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 "![](./assets/08_hello_once.png)" 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] # @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>` | 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] # @return [Array] #: ../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] # @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] # @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] #: ../lib/discorb/audit_logs.rb:9 msgid "The webhooks in this audit log." msgstr "" # @return [Array] #: ../lib/discorb/audit_logs.rb:11 msgid "The users in this audit log." msgstr "" # @return [Array] #: ../lib/discorb/audit_logs.rb:13 msgid "The threads in this audit log." msgstr "" # @return [Array] #: ../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] #: ../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] #: ../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] #: ../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] #: ../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] #: ../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] #: ../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>] #: ../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>] #: ../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] #: ../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] #: ../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>] #: ../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>] #: ../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] #: ../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 "" 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>] #: ../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] #: ../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] #: ../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] #: ../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] #: ../lib/discorb/channel.rb:738 msgid "The current stage instance." msgstr "" # @return [Async::Task] #: ../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] #: ../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] #: ../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] #: ../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] # @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] # @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] #: ../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] #: ../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>] #: ../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] #: ../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, Array>] #: ../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, Array>] 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] options # @return [Array] #: ../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] fields # @return [Array] #: ../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] #: ../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] #: ../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] # @param [Boolean, Array] #: ../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] 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] #: ../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] #: ../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