Open TetieWasTaken opened 1 year ago
discord.js
At:
CommandInteractionOptionResolver#getChannel()
GuildChannelManager#resolve()
CommandInteractionOptionResolver#getMentionable()
The Returns element does not resolve to a proper Foo|Bar format, instead resorting to FooBar (links do work as expected). I was not able to find any more of these but there is a big chance there are more than just these 3.
Returns
Foo|Bar
FooBar
https://github.com/discordjs/discord.js/blob/950fc47234ed7702a20c90246823a5215c75e84f/packages/discord.js/src/structures/CommandInteractionOptionResolver.js#L146
https://github.com/discordjs/discord.js/blob/950fc47234ed7702a20c90246823a5215c75e84f/packages/discord.js/src/managers/GuildChannelManager.js#L84
https://github.com/discordjs/discord.js/blob/950fc47234ed7702a20c90246823a5215c75e84f/packages/discord.js/src/structures/CommandInteractionOptionResolver.js#L261
Example:
No response
Does not apply
Chrome 111.0.5563.64, also tested on Safari 14.1.2
Low (slightly annoying)
Not applicable (subpackage bug)
Which package is this bug report for?
discord.js
Issue description
At:
CommandInteractionOptionResolver#getChannel()
GuildChannelManager#resolve()
CommandInteractionOptionResolver#getMentionable()
The
Returns
element does not resolve to a properFoo|Bar
format, instead resorting toFooBar
(links do work as expected). I was not able to find any more of these but there is a big chance there are more than just these 3.https://github.com/discordjs/discord.js/blob/950fc47234ed7702a20c90246823a5215c75e84f/packages/discord.js/src/structures/CommandInteractionOptionResolver.js#L146
https://github.com/discordjs/discord.js/blob/950fc47234ed7702a20c90246823a5215c75e84f/packages/discord.js/src/managers/GuildChannelManager.js#L84
https://github.com/discordjs/discord.js/blob/950fc47234ed7702a20c90246823a5215c75e84f/packages/discord.js/src/structures/CommandInteractionOptionResolver.js#L261
Example:
Code sample
No response
Package version
Does not apply
Node.js version
Does not apply
Operating system
Chrome 111.0.5563.64, also tested on Safari 14.1.2
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
Not applicable (subpackage bug)
Which gateway intents are you subscribing to?
Not applicable (subpackage bug)
I have tested this issue on a development release
No response