MCPcopy Create free account
hub / github.com/MathMan05/Fermi / loadGuild

Method loadGuild

src/webpage/guild.ts:2011–2013  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2009 this.channels = this.channels.sort((a, b) => a.position - b.position);
2010 if (parent !== channel.parent) {
2011 if (parent) parent.children.filter((_) => _ !== channel);
2012 channel.resolveparent();
2013 } else if (parent && !json.parent_id) {
2014 this.headchannels.push(channel);
2015 for (const thing of this.channels) {
2016 thing.children = thing.children.filter((_) => _ !== channel);

Callers 7

memberupdateMethod · 0.95
removePrevChannelMethod · 0.95
unreadsMethod · 0.45
renderMethod · 0.45
joinMethod · 0.45
generateGuildIconMethod · 0.45
getHTMLMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected