Module 958340

585 characters · in no known chunk
Dependencies
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(311907),i=n(73153);let s=0,a={};function o(e){return a[e.guildId]={type:"loading"},!1}function l(e){a[e.guildId]=e.guildInfo,s++}function u(e){return a[e.guildId]={type:"failed"},!1}class c extends r.Ay.Store{static displayName="BasicGuildStore";getGuild(e){let t=a[e];if(null!=t&&!("type"in t))return t}isGuildFetching(e){let t=a[e];return null!=t&&"type"in t&&"loading"===t.type}getGuildOrStatus(e){return a[e]}getVersion(){return s}}let d=new c(i.h,{BASIC_GUILD_FETCH:o,BASIC_GUILD_FETCH_SUCCESS:l,BASIC_GUILD_FETCH_FAILURE:u})}