forked from PluralFlux/PluralFlux
changed getAllMembersInfo map to say index not name as it actually gets the index of a member and then the member object
This commit is contained in:
@@ -462,7 +462,7 @@ mh.getMemberInfo = function (member) {
|
|||||||
mh.getAllMembersInfo = async function (authorId, authorName) {
|
mh.getAllMembersInfo = async function (authorId, authorName) {
|
||||||
const members = await mh.getMembersByAuthor(authorId);
|
const members = await mh.getMembersByAuthor(authorId);
|
||||||
if (members.length === 0) throw Error(enums.err.USER_NO_MEMBERS);
|
if (members.length === 0) throw Error(enums.err.USER_NO_MEMBERS);
|
||||||
const fields = [...members.entries()].map(([name, member]) => ({
|
const fields = [...members.entries()].map(([index, member]) => ({
|
||||||
name: member.name, value: `(Proxy: \`${member.proxy ?? "unset"}\`)`, inline: true,
|
name: member.name, value: `(Proxy: \`${member.proxy ?? "unset"}\`)`, inline: true,
|
||||||
}));
|
}));
|
||||||
return new EmbedBuilder()
|
return new EmbedBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user