mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(website): don't duplicate overloaded methods (#9462)
This commit is contained in:
@@ -12,7 +12,7 @@ export function resolveMembers<T extends ApiItem>(
|
|||||||
) {
|
) {
|
||||||
const seenItems = new Set<string>();
|
const seenItems = new Set<string>();
|
||||||
const inheritedMembers = parent.findMembersWithInheritance().items.reduce((acc, item) => {
|
const inheritedMembers = parent.findMembersWithInheritance().items.reduce((acc, item) => {
|
||||||
if (predicate(item)) {
|
if (predicate(item) && !seenItems.has(item.displayName)) {
|
||||||
acc.push({
|
acc.push({
|
||||||
item,
|
item,
|
||||||
inherited:
|
inherited:
|
||||||
@@ -20,7 +20,8 @@ export function resolveMembers<T extends ApiItem>(
|
|||||||
? undefined
|
? undefined
|
||||||
: (item.parent as ApiItemContainerMixin | undefined),
|
: (item.parent as ApiItemContainerMixin | undefined),
|
||||||
});
|
});
|
||||||
seenItems.add(item.containerKey);
|
|
||||||
|
seenItems.add(item.displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
|
|||||||
Reference in New Issue
Block a user