Module 405018

818 characters · in no known chunk
Dependencies
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>l,M:()=>o});var i=n(17928),r=n(71393),a=n(607567),s=n(652215);function l(e){return(0,i.cf)([a.Ay,r.A],()=>{let t=a.Ay.countVoiceStatesForChannel(e.id),n=r.A.getGuild(e.getGuildId());return null==n?{reachedLimit:!1,limit:-1}:e.type===s.rbe.GUILD_STAGE_VOICE?{reachedLimit:t>n.maxStageVideoChannelUsers,limit:n.maxStageVideoChannelUsers}:{reachedLimit:n.maxVideoChannelUsers>0&&t>n.maxVideoChannelUsers,limit:n.maxVideoChannelUsers}},[e])}function o(e){let t=a.Ay.countVoiceStatesForChannel(e.id),n=r.A.getGuild(e.getGuildId());return null==n?{reachedLimit:!1,limit:-1}:e.type===s.rbe.GUILD_STAGE_VOICE?{reachedLimit:t>n.maxStageVideoChannelUsers,limit:n.maxStageVideoChannelUsers}:{reachedLimit:n.maxVideoChannelUsers>0&&t>n.maxVideoChannelUsers,limit:n.maxVideoChannelUsers}}}