Which application is this bug report for?
Documentation
Issue description
The documentation example for ContainerBuilder shows a method call:
.addComponents(separator, section)
However, .addComponents() does not exist in the discord.js builders API.
The correct methods are:
- .addSeparatorComponents(separator)
- .addSectionComponents(section)
This incorrect example appears in:
packages/builders/src/components/v2/Container.ts
This can confuse developers and cause TypeErrors when they copy the example.
Steps to Reproduce
- Open the file: packages/builders/src/components/v2/Container.ts
- Scroll to the example block under ContainerBuilder documentation
- Observe that
.addComponents(separator, section) is used
- This method is not present in the actual API
Versions
Issue priority
Low (slightly annoying)
Which application is this bug report for?
Documentation
Issue description
The documentation example for
ContainerBuildershows a method call:.addComponents(separator, section)
However,
.addComponents()does not exist in the discord.js builders API.The correct methods are:
This incorrect example appears in:
packages/builders/src/components/v2/Container.ts
This can confuse developers and cause TypeErrors when they copy the example.
Steps to Reproduce
.addComponents(separator, section)is usedVersions
Issue priority
Low (slightly annoying)