This commit is contained in:
Mirco Wittrien 2022-08-29 13:50:54 +02:00
parent 66c86f3cad
commit c4d5c9d925
2 changed files with 0 additions and 2 deletions

View File

@ -141,7 +141,6 @@ module.exports = (_ => {
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.QuerySearchUtils, "queryChannels", {after: e => {
if (!e.methodArguments[0].query) return;
let channelArray = [];
for (let id of BDFDB.LibraryModules.FolderStore.getFlattenedGuildIds().map(id => Object.keys(BDFDB.LibraryModules.ChannelStore.getMutableGuildChannelsForGuild(id))).flat()) {
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(id);
if (channel && !channel.isCategory()) {

View File

@ -129,7 +129,6 @@ module.exports = (_ => {
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.QuerySearchUtils, "queryGuilds", {after: e => {
if (!e.methodArguments[0].query) return;
let guildArray = [];
for (let id in changedGuilds) if (changedGuilds[id] && changedGuilds[id].name && changedGuilds[id].name.toLocaleLowerCase().indexOf(e.methodArguments[0].query.toLocaleLowerCase()) > -1 && !e.returnValue.find(n => n.record && n.record.id == id && n.type == BDFDB.LibraryModules.QueryUtils.AutocompleterResultTypes.GUILD)) {
let guild = BDFDB.LibraryModules.GuildStore.getGuild(id);
if (guild) e.returnValue.push({