Build 533169stable
Module 370876
900 characters · in aca7018765200529.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A3:()=>u,DN:()=>c,_t:()=>h,mR:()=>o,zP:()=>d});var i=n(284009),l=n.n(i),s=n(735438),a=n.n(s),r=n(946116);function o(e){return l()(e.type===r.fx.GUILD,"Directory entries must be connected to a guild!"),{channelId:e.directory_channel_id,guildId:e.entity_id,type:e.type,authorId:e.author_id,createdAt:e.created_at,description:e.description,primaryCategoryId:e.primary_category_id,name:e.guild?.name,icon:e.guild?.icon,splash:e.guild?.splash,features:new Set(e.guild?.features),approximateMemberCount:e.guild?.approximate_member_count,approximatePresenceCount:e.guild?.approximate_presence_count,featurableInDirectory:e.guild?.featurable_in_directory}}let d=5;function c(e){return a().orderBy(e,[e=>e.approximateMemberCount],["desc"])}function u(e){var t;return(t=e.filter(e=>e.featurableInDirectory),a().orderBy(t,[e=>e.createdAt],["desc"])).slice(0,d)}function h(e){return c(e)}}