function isEnabledIn($guild) {
        if($guild !== null) {
            $guild = $this->client->guilds->resolve($guild);
            return (!\array_key_exists($guild->id, $this->guildEnabled) || $this->guildEnabled[$guild->id]);
        }
        
        return $this->globalEnabled;
    }
function isEnabledIn($guild) {
        if($guild !== null) {
            $guild = $this->client->guilds->resolve($guild);
            return (!\array_key_exists($guild->id, $this->guildEnabled) || $this->guildEnabled[$guild->id]);
        }
        
        return $this->globalEnabled;
    }
function isEnabledIn ( $ guild ) { if ( $ guild !== null ) { $ guild = $ this -> client -> guilds -> resolve ( $ guild ) ; return ( ! \ array_key_exists ( $ guild -> id , $ this -> guildEnabled ) || $ this -> guildEnabled [ $ guild -> id ] ) ; } return $ this -> globalEnabled ; }
Checks if the group is enabled in a guild.
@param string|\CharlotteDunois\Yasmin\Models\Guild|null  $guild  The guild instance or the guild ID.
@return bool
@throws \InvalidArgumentException
Checks if the group is enabled in a guild .