Update EditUsers.plugin.js
This commit is contained in:
parent
40f06fdb4d
commit
90395cf80d
|
@ -1139,7 +1139,7 @@ module.exports = (_ => {
|
|||
for (let id in changedUsers) if (changedUsers[id] && changedUsers[id].name && changedUsers[id].name.toLocaleLowerCase().indexOf(e.instance.props.query.toLocaleLowerCase()) > -1 && !e.instance.props.results.find(n => n.record && n.record.id == id && n.type == BDFDB.DiscordConstants.AutocompleterResultTypes.USER)) {
|
||||
let user = BDFDB.LibraryStores.UserStore.getUser(id);
|
||||
if (user) e.instance.props.results.splice(1, 0, {
|
||||
comparator: user.discriminator ? `${user.username}#${user.discriminator}` : user.discriminator,
|
||||
comparator: user.discriminator && user.discriminator != "0" ? `${user.username}#${user.discriminator}` : user.discriminator,
|
||||
record: user,
|
||||
score: 30000,
|
||||
type: BDFDB.DiscordConstants.AutocompleterResultTypes.USER
|
||||
|
|
Loading…
Reference in New Issue