docs: Correct wrong interaction links (#6274)

* docs: Correct wrong interaction links

* docs: fix errors and apply single option

* Update src/structures/CommandInteraction.js

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Jiralite
2021-08-10 21:32:28 +01:00
committed by GitHub
parent 3c17939fd5
commit 49d3c0bf87
4 changed files with 16 additions and 8 deletions

View File

@@ -134,7 +134,7 @@ class CommandInteractionOptionResolver {
* Gets a channel option.
* @param {string} name The name of the option.
* @param {boolean} [required=false] Whether to throw an error if the option is not found.
* @returns {?(GuildChannel|APIInteractionDataResolvedChannel)}
* @returns {?(GuildChannel|APIInteractionDataResolvedOption)}
* The value of the option, or null if not set and not required.
*/
getChannel(name, required = false) {
@@ -190,7 +190,7 @@ class CommandInteractionOptionResolver {
* Gets a member option.
* @param {string} name The name of the option.
* @param {boolean} [required=false] Whether to throw an error if the option is not found.
* @returns {?(GuildMember|APIInteractionDataResolvedGuildMember)}
* @returns {?(GuildMember|APIInteractionDataResolvedOption)}
* The value of the option, or null if not set and not required.
*/
getMember(name, required = false) {
@@ -213,7 +213,7 @@ class CommandInteractionOptionResolver {
* Gets a mentionable option.
* @param {string} name The name of the option.
* @param {boolean} [required=false] Whether to throw an error if the option is not found.
* @returns {?(User|GuildMember|APIInteractionDataResolvedGuildMember|Role|APIRole)}
* @returns {?(User|GuildMember|APIInteractionDataResolvedOption|Role|APIRole)}
* The value of the option, or null if not set and not required.
*/
getMentionable(name, required = false) {