mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 23:54:45 +12:00
fix(website): don't duplicate overloaded methods (#9462)
This commit is contained in:
parent
2e09cb4c1f
commit
b2e1bb92d0
1 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,7 @@ export function resolveMembers<T extends ApiItem>(
|
|||
) {
|
||||
const seenItems = new Set<string>();
|
||||
const inheritedMembers = parent.findMembersWithInheritance().items.reduce((acc, item) => {
|
||||
if (predicate(item)) {
|
||||
if (predicate(item) && !seenItems.has(item.displayName)) {
|
||||
acc.push({
|
||||
item,
|
||||
inherited:
|
||||
|
@ -20,7 +20,8 @@ export function resolveMembers<T extends ApiItem>(
|
|||
? undefined
|
||||
: (item.parent as ApiItemContainerMixin | undefined),
|
||||
});
|
||||
seenItems.add(item.containerKey);
|
||||
|
||||
seenItems.add(item.displayName);
|
||||
}
|
||||
|
||||
return acc;
|
||||
|
|
Loading…
Reference in a new issue