discordjs / website

The discord.js site what else
Other
183 stars 114 forks source link

Various `|` (or) returns do not display correctly on the documentation #146

Open TetieWasTaken opened 1 year ago

TetieWasTaken commented 1 year ago

Which package is this bug report for?

discord.js

Issue description

At:

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.

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:

Schermafbeelding 2023-03-21 om 20 53 15

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